OOFEM 3.0
Loading...
Searching...
No Matches
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 - 2025 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
42
43#define _IFT_Truss3d_Name "truss3d"
44
45namespace oofem {
46class FEI3dLineLin;
47
55{
56protected:
58
59public:
60 Truss3d(int n, Domain *d);
61 virtual ~Truss3d() { }
62
63 FEInterpolation *giveInterpolation() const override;
64
65 double computeLength() override;
66
67 void computeInitialStressMatrix(FloatMatrix &answer, TimeStep *tStep) override;
68 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
69 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
70 { this->computeLumpedMassMatrix(answer, tStep); }
71 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
72
73 int computeNumberOfDofs() override { return 6; }
74 void giveDofManDofIDMask(int inode, IntArray &) const override;
75
76
77 // characteristic length (for crack band approach)
78 double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override
79 { return this->computeLength(); }
80
81 double computeVolumeAround(GaussPoint *gp) override;
82
83 int testElementExtension(ElementExtension ext) override { return ( ext == Element_EdgeLoadSupport ); }
84
86
87 void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override;
88
89#ifdef __OOFEG
90 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
92#endif
93
94 // definition & identification
95 const char *giveInputRecordName() const override { return _IFT_Truss3d_Name; }
96 const char *giveClassName() const override { return "Truss3d"; }
97 void initializeFrom(InputRecord &ir, int priority) override;
98 MaterialMode giveMaterialMode() override { return _1dMat; }
99 Element_Geometry_Type giveGeometryType() const override {return EGT_line_1;}
100
101 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
102 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
103 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
104 void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
105
106protected:
107 // edge load support
108 void giveEdgeDofMapping(IntArray &answer, int iEdge) const override;
109 double computeEdgeVolumeAround(GaussPoint *gp, int) override;
110 int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp) override;
111 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
112 void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) override;
113 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
114 void computeGaussPoints() override;
115};
116} // end namespace oofem
117#endif // truss3d_h
NLStructuralElement(int n, Domain *d)
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition truss3d.C:181
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss3d.h:69
const char * giveInputRecordName() const override
Definition truss3d.h:95
double computeVolumeAround(GaussPoint *gp) override
Definition truss3d.C:192
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
Definition truss3d.C:286
void computeInitialStressMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss3d.C:136
int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp) override
Definition truss3d.C:320
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
Definition truss3d.C:363
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition truss3d.C:82
double computeEdgeVolumeAround(GaussPoint *gp, int) override
Definition truss3d.C:308
void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss3d.C:273
FEInterpolation * giveInterpolation() const override
Definition truss3d.C:64
void initializeFrom(InputRecord &ir, int priority) override
Definition truss3d.C:236
double computeLength() override
Definition truss3d.C:129
int testElementExtension(ElementExtension ext) override
Definition truss3d.h:83
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
Definition truss3d.C:90
int giveLocalCoordinateSystem(FloatMatrix &answer) override
Definition truss3d.C:203
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Definition truss3d.C:249
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition truss3d.C:243
double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override
Definition truss3d.h:78
Element_Geometry_Type giveGeometryType() const override
Definition truss3d.h:99
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss3d.C:158
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition truss3d.C:279
MaterialMode giveMaterialMode() override
Definition truss3d.h:98
void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) override
Definition truss3d.C:110
int computeNumberOfDofs() override
Definition truss3d.h:73
static FEI3dLineLin interp
Definition truss3d.h:57
Truss3d(int n, Domain *d)
Definition truss3d.C:57
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss3d.C:267
const char * giveClassName() const override
Definition truss3d.h:96
Interface * giveInterface(InterfaceType it) override
Definition truss3d.C:68
virtual ~Truss3d()
Definition truss3d.h:61
void computeGaussPoints() override
Definition truss3d.C:117
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition truss3d.C:338
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
@ Element_EdgeLoadSupport
Element extension for edge loads.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define ALL_STRAINS
#define _IFT_Truss3d_Name
Definition truss3d.h:43

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011