OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
libeam3dnl2.h
Go to the documentation of this file.
1 /*
2  *
3  * ##### ##### ###### ###### ### ###
4  * ## ## ## ## ## ## ## ### ##
5  * ## ## ## ## #### #### ## # ##
6  * ## ## ## ## ## ## ## ##
7  * ## ## ## ## ## ## ## ##
8  * ##### ##### ## ###### ## ##
9  *
10  *
11  * OOFEM : Object Oriented Finite Element Code
12  *
13  * Copyright (C) 1993 - 2013 Borek Patzak
14  *
15  *
16  *
17  * Czech Technical University, Faculty of Civil Engineering,
18  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Lesser General Public
22  * License as published by the Free Software Foundation; either
23  * version 2.1 of the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28  * Lesser General Public License for more details.
29  *
30  * You should have received a copy of the GNU Lesser General Public
31  * License along with this library; if not, write to the Free Software
32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33  */
34 
35 #ifndef libeam3dnl2_h
36 #define libeam3dnl2_h
37 
38 #include "../sm/Elements/nlstructuralelement.h"
39 
41 
42 #define _IFT_LIBeam3dNL2_Name "libeam3dnl2"
43 #define _IFT_LIBeam3dNL2_refnode "refnode"
44 
45 
46 namespace oofem {
56 {
57 private:
59  double l0;
64  // curvature at the centre
65  // FloatArray kappa;
70 
71 public:
72  LIBeam3dNL2(int n, Domain * d);
73  virtual ~LIBeam3dNL2() { }
74 
75  virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep);
76  virtual void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity = NULL)
77  { computeLumpedMassMatrix(answer, tStep); }
78  virtual void computeStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
79 
80  virtual int computeNumberOfDofs() { return 12; }
81  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
82  virtual double computeVolumeAround(GaussPoint *gp);
83 
84  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
85 
86  // definition & identification
87  virtual const char *giveInputRecordName() const { return _IFT_LIBeam3dNL2_Name; }
88  virtual const char *giveClassName() const { return "LIBeam3dNL2"; }
90  virtual Element_Geometry_Type giveGeometryType() const { return EGT_line_1; }
91 
92 #ifdef __OOFEG
93  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
95 #endif
96 
97  virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
98  virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0);
99 
100  virtual integrationDomain giveIntegrationDomain() const { return _Line; }
101  virtual MaterialMode giveMaterialMode() { return _3dBeam; }
102 
103  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj);
104  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj);
105 
106 protected:
107  // edge load support
108  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
109  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
110  virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp);
111  virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer);
112  virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode);
113 
114  virtual void updateYourself(TimeStep *tStep);
115  virtual void initForNewStep();
116  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int, int)
117  { OOFEM_ERROR("not implemented"); }
118  //int computeGtoLRotationMatrix(FloatMatrix& answer);
119 
120  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer);
121  virtual void computeGaussPoints();
122  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
123  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
124 
125  virtual double computeLength();
126  //double givePitch ();
127  virtual int giveLocalCoordinateSystem(FloatMatrix &answer);
128 
135  void updateTempQuaternion(TimeStep *tStep);
141  void computeTempCurv(FloatArray &answer, TimeStep *tStep);
147  void computeSMtrx(FloatMatrix &answer, FloatArray &vec);
154  void computeRotMtrx(FloatMatrix &answer, FloatArray &psi);
160  void computeXMtrx(FloatMatrix &answer, TimeStep *tStep);
178  void computeXdVector(FloatArray &answer, TimeStep *tStep);
179 };
180 } // end namespace oofem
181 #endif // libeam3dnl2_h
integrationDomain
Used by integrator class to supply integration points for proper domain to be integrated (Area...
virtual void computeStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Compute strain vector of receiver evaluated at given integration point at given time step from elemen...
Definition: libeam3dnl2.C:227
Class and object Domain.
Definition: domain.h:115
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
Definition: libeam3dnl2.C:520
Element_Geometry_Type
Enumerative type used to classify element geometry Possible values are: EGT_point - point in space EG...
int referenceNode
Reference node.
Definition: libeam3dnl2.h:69
void computeQuaternionFromRotMtrx(FloatArray &answer, FloatMatrix &R)
Computes the normalized quaternion from the given rotation matrix.
Definition: libeam3dnl2.C:179
Abstract base class for "structural" finite elements with geometrical nonlinearities.
virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the stress vector of receiver at given integration point, at time step tStep.
Definition: libeam3dnl2.C:441
virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer)
Returns transformation matrix from global coordinate system to local element coordinate system for el...
Definition: libeam3dnl2.C:656
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
StateCounterType tempQCounter
Time stamp of temporary centre quaternion.
Definition: libeam3dnl2.h:67
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
long StateCounterType
StateCounterType type used to indicate solution state.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
Definition: libeam3dnl2.C:908
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: libeam3dnl2.C:571
FloatArray tempQ
Temporary quaternion at the center.
Definition: libeam3dnl2.h:63
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode)
Computes the load vector due to body load acting on receiver, at given time step. ...
Definition: libeam3dnl2.C:700
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: libeam3dnl2.C:555
virtual integrationDomain giveIntegrationDomain() const
Returns integration domain for receiver, used to initialize integration point over receiver volume...
Definition: libeam3dnl2.h:100
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
Evaluates nodal representation of real internal forces.
Definition: libeam3dnl2.C:282
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
Definition: libeam3dnl2.C:505
void computeSMtrx(FloatMatrix &answer, FloatArray &vec)
Evaluates the S matrix from given vector vec.
Definition: libeam3dnl2.C:69
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes the stiffness matrix of receiver.
Definition: libeam3dnl2.C:335
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: libeam3dnl2.C:565
#define _IFT_LIBeam3dNL2_Name
Definition: libeam3dnl2.h:42
void updateTempQuaternion(TimeStep *tStep)
Updates the temporary triad at the centre to the state identified by given solution step...
Definition: libeam3dnl2.C:118
virtual double computeLength()
Computes the length (zero for all but 1D geometries)
Definition: libeam3dnl2.C:485
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual ~LIBeam3dNL2()
Definition: libeam3dnl2.h:73
void computeRotMtrx(FloatMatrix &answer, FloatArray &psi)
Evaluates the rotation matrix for large rotations according to Rodrigues formula for given pseudovect...
Definition: libeam3dnl2.C:88
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
FloatArray q
Quaternion at the center (last equilibrated).
Definition: libeam3dnl2.h:61
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj)
Restores the receiver state previously written in stream.
Definition: libeam3dnl2.C:862
void computeTempCurv(FloatArray &answer, TimeStep *tStep)
Compute the temporary curvature at the centre to the state identified by given solution step...
Definition: libeam3dnl2.C:735
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: libeam3dnl2.C:434
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: libeam3dnl2.C:709
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes volume related to integration point on local edge.
Definition: libeam3dnl2.C:607
virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp)
Returns transformation matrix from local edge c.s to element local coordinate system of load vector c...
Definition: libeam3dnl2.C:685
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
Definition: libeam3dnl2.h:90
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: libeam3dnl2.h:80
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj)
Stores receiver state to output stream.
Definition: libeam3dnl2.C:842
virtual int giveLocalCoordinateSystem(FloatMatrix &answer)
Returns local coordinate system of receiver Required by material models with ortho- and anisotrophy...
Definition: libeam3dnl2.C:619
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: libeam3dnl2.C:882
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: libeam3dnl2.C:589
void computeRotMtrxFromQuaternion(FloatMatrix &answer, FloatArray &q)
Computes rotation matrix from given quaternion.
Definition: libeam3dnl2.C:158
LIBeam3dNL2(int n, Domain *d)
Definition: libeam3dnl2.C:57
virtual const char * giveClassName() const
Definition: libeam3dnl2.h:88
Class representing the general Input Record.
Definition: inputrecord.h:101
double l0
Initial length.
Definition: libeam3dnl2.h:59
void computeXdVector(FloatArray &answer, TimeStep *tStep)
Computes x_21' vector for given solution state.
Definition: libeam3dnl2.C:317
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: libeam3dnl2.h:101
virtual void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity=NULL)
Computes consistent mass matrix of receiver using numerical integration over element volume...
Definition: libeam3dnl2.h:76
virtual void initForNewStep()
Initializes receivers state to new time step.
Definition: libeam3dnl2.C:725
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: libeam3dnl2.C:448
void computeXMtrx(FloatMatrix &answer, TimeStep *tStep)
Computes X matrix at given solution state.
Definition: libeam3dnl2.C:257
Load is base abstract class for all loads.
Definition: load.h:61
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int, int)
Computes the geometrical matrix of receiver in given integration point.
Definition: libeam3dnl2.h:116
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: libeam3dnl2.C:422
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveInputRecordName() const
Definition: libeam3dnl2.h:87
This class implements a 3-dimensional Linear Isoparametric Mindlin theory beam element, with reduced integration.
Definition: libeam3dnl2.h:55

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011