OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
truss3d.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 truss3d_h
36 #define truss3d_h
37 
38 #include "../sm/Elements/nlstructuralelement.h"
39 #include "../sm/ErrorEstimators/directerrorindicatorrc.h"
40 #include "zznodalrecoverymodel.h"
42 
43 #define _IFT_Truss3d_Name "truss3d"
44 
45 namespace oofem {
46 class FEI3dLineLin;
47 
55 {
56 protected:
58 
59 public:
60  Truss3d(int n, Domain * d);
61  virtual ~Truss3d() { }
62 
63  virtual FEInterpolation *giveInterpolation() const;
64 
65  virtual double computeLength();
66 
67  virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep);
68  virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
69  { this->computeLumpedMassMatrix(answer, tStep); }
70  virtual int giveLocalCoordinateSystem(FloatMatrix &answer);
71 
72  virtual int computeNumberOfDofs() { return 6; }
73  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
74 
75 
76  // characteristic length (for crack band approach)
77  virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
78  { return this->computeLength(); }
79 
80  virtual double computeVolumeAround(GaussPoint *gp);
81 
82  virtual int testElementExtension(ElementExtension ext) { return ( ext == Element_EdgeLoadSupport ); }
83 
85 
87 
88 #ifdef __OOFEG
89  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
91 #endif
92 
93  // definition & identification
94  virtual const char *giveInputRecordName() const { return _IFT_Truss3d_Name; }
95  virtual const char *giveClassName() const { return "Truss3d"; }
97  virtual MaterialMode giveMaterialMode() { return _1dMat; }
98  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
99  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
100 
101 protected:
102  // edge load support
103  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
104  virtual double computeEdgeVolumeAround(GaussPoint *gp, int);
105  virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp);
106  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS);
107  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer);
108  virtual void computeGaussPoints();
109 
110 };
111 } // end namespace oofem
112 #endif // truss3d_h
virtual double computeEdgeVolumeAround(GaussPoint *gp, int)
Computes volume related to integration point on local edge.
Definition: truss3d.C:255
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
Definition: truss3d.C:129
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
virtual const char * giveClassName() const
Definition: truss3d.h:95
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: truss3d.C:207
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: truss3d.h:82
Class and object Domain.
Definition: domain.h:115
The element interface required by ZZNodalRecoveryModel.
Abstract base class for "structural" finite elements with geometrical nonlinearities.
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: truss3d.C:220
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual FEInterpolation * giveInterpolation() const
Definition: truss3d.C:64
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
Definition: truss3d.C:310
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp)
Returns transformation matrix from local edge c.s to element local coordinate system of load vector c...
Definition: truss3d.C:267
static FEI3dLineLin interp
Definition: truss3d.h:57
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
This class implements a two-node truss bar element for three-dimensional analysis.
Definition: truss3d.h:52
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: truss3d.h:97
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: truss3d.C:214
virtual double computeLength()
Computes the length (zero for all but 1D geometries)
Definition: truss3d.C:122
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
Definition: truss3d.C:152
ElementExtension
Type representing element extension.
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: truss3d.C:68
virtual ~Truss3d()
Definition: truss3d.h:61
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
virtual int giveLocalCoordinateSystem(FloatMatrix &answer)
Returns local coordinate system of receiver Required by material models with ortho- and anisotrophy...
Definition: truss3d.C:174
Truss3d(int n, Domain *d)
Definition: truss3d.C:57
Class representing a linear line interpolation in 3D.
Definition: fei3dlinelin.h:44
#define _IFT_Truss3d_Name
Definition: truss3d.h:43
virtual const char * giveInputRecordName() const
Definition: truss3d.h:94
#define ALL_STRAINS
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: truss3d.C:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: truss3d.C:163
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: truss3d.C:233
virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes mass matrix of receiver.
Definition: truss3d.h:68
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: truss3d.C:110
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: truss3d.h:72
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: truss3d.C:285
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
Definition: truss3d.C:90
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
Definition: truss3d.C:226
virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
Returns the size of element in the given direction, in some cases adjusted (e.g.
Definition: truss3d.h:77
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
Element extension for edge loads.

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:32 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011