OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
libeam2d.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 libeam2d_h
36 #define libeam2d_h
37 
38 #include "../sm/Elements/structuralelement.h"
39 #include "../sm/CrossSections/layeredcrosssection.h"
40 
41 #define _IFT_LIBeam2d_Name "libeam2d"
42 
43 namespace oofem {
44 class FEI2dLineLin;
45 
51 {
52 protected:
55 
56 public:
57  double pitch, length;
58 
59  LIBeam2d(int n, Domain * aDomain);
60  virtual ~LIBeam2d() { }
61 
62  virtual FEInterpolation *giveInterpolation() const;
63 
64  virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep);
65  virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) { computeLumpedMassMatrix(answer, tStep); }
66  virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
67  virtual bool computeGtoLRotationMatrix(FloatMatrix &answer);
68 
69  // layered cross section support functions
70  virtual void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain,
71  GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep);
72 
73  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
74 
75  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
76 
78 
79  virtual int computeNumberOfDofs() { return 6; }
80  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
81  virtual double computeVolumeAround(GaussPoint *gp);
82 
83 
84  // definition & identification
85  virtual const char *giveInputRecordName() const { return _IFT_LIBeam2d_Name; }
86  virtual const char *giveClassName() const { return "LIBeam2d"; }
88 
89  virtual MaterialMode giveMaterialMode() { return _2dBeam; }
90 
91 protected:
92  // edge load support
93  virtual void giveEdgeDofMapping(IntArray &answer, int) const;
94  virtual double computeEdgeVolumeAround(GaussPoint *, int);
96  virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer);
97  virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode);
98  virtual void computeBmatrixAt(GaussPoint *, FloatMatrix &, int = 1, int = ALL_STRAINS);
99  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &);
100  virtual void computeGaussPoints();
101  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
102  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
103 
104  virtual double computeLength();
105  double givePitch();
106 };
107 } // end namespace oofem
108 #endif // libeam2d_h
#define _IFT_LIBeam2d_Name
Definition: libeam2d.h:41
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: libeam2d.h:89
virtual void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain, GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep)
Computes full 3D strain vector in element layer.
Definition: libeam2d.C:237
double givePitch()
Definition: libeam2d.C:299
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: libeam2d.C:67
double length
Definition: libeam2d.h:57
virtual int computeLoadLEToLRotationMatrix(FloatMatrix &, int, GaussPoint *)
Returns transformation matrix from local edge c.s to element local coordinate system of load vector c...
Definition: libeam2d.C:400
Class and object Domain.
Definition: domain.h:115
LIBeam2d(int n, Domain *aDomain)
Definition: libeam2d.C:55
virtual void computeBmatrixAt(GaussPoint *, FloatMatrix &, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
Definition: libeam2d.C:78
virtual double computeLength()
Computes the length (zero for all but 1D geometries)
Definition: libeam2d.C:280
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: libeam2d.C:227
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes numerically stiffness matrix of receiver.
Definition: libeam2d.C:192
virtual FEInterpolation * giveInterpolation() const
Definition: libeam2d.C:63
virtual ~LIBeam2d()
Definition: libeam2d.h:60
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: libeam2d.C:121
A 2-dimensional Linear Isoparametric Mindlin theory beam element, with reduced integration.
Definition: libeam2d.h:50
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes mass matrix of receiver.
Definition: libeam2d.h:65
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual double computeEdgeVolumeAround(GaussPoint *, int)
Computes volume related to integration point on local edge.
Definition: libeam2d.C:350
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &)
Computes interpolation matrix for element unknowns.
Definition: libeam2d.C:169
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer)
Returns transformation matrix from global coordinate system to local element coordinate system for el...
Definition: libeam2d.C:371
Abstract base class for all "structural" finite elements.
virtual bool computeGtoLRotationMatrix(FloatMatrix &answer)
Returns transformation matrix from global c.s.
Definition: libeam2d.C:201
virtual void giveEdgeDofMapping(IntArray &answer, int) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: libeam2d.C:328
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in full form.
Definition: libeam2d.C:258
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: libeam2d.C:109
Class representing a 2d line with linear interpolation.
Definition: fei2dlinelin.h:46
#define ALL_STRAINS
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual const char * giveClassName() const
Definition: libeam2d.h:86
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 int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: libeam2d.h:79
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
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: libeam2d.C:128
static FEI2dLineLin interpolation
Interpolation.
Definition: libeam2d.h:54
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
double pitch
Definition: libeam2d.h:57
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: libeam2d.C:362
Load is base abstract class for all loads.
Definition: load.h:61
The element interface required by LayeredCrossSection.
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
Definition: libeam2d.C:273
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: libeam2d.C:320
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: libeam2d.C:135
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: libeam2d.h:85
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
Definition: libeam2d.C:152

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