OOFEM 3.0
Loading...
Searching...
No Matches
truss2d.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 truss2d_h
36#define truss2d_h
37
39
41
42#define _IFT_Truss2d_Name "truss2d"
44
45namespace oofem {
46class FEI2dLineLin;
47class ParamKey;
61{
62protected:
63 double length;
64 double pitch;
66 // array for diffrent cs_modes
67 static FEI2dLineLin interp[ 3 ]; // only defined it so far...
69
70public:
71 Truss2d(int n, Domain *d);
72 virtual ~Truss2d() { }
73
74 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
75 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
76 { computeLumpedMassMatrix(answer, tStep); }
77 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
78
79 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
80
81 int computeNumberOfDofs() override { return 4; }
82 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
83
84 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
85 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
86 void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
87
88 // characteristic length (for crack band approach)
89 double giveCharacteristicLength(const FloatArray &) override
90 { return this->computeLength(); }
91
92 double computeVolumeAround(GaussPoint *gp) override;
93
94 int testElementExtension(ElementExtension ext) override { return ( ( ext == Element_EdgeLoadSupport ) ? 1 : 0 ); }
95
96#ifdef __OOFEG
97 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
99#endif
100
101 // definition & identification
102 const char *giveInputRecordName() const override { return _IFT_Truss2d_Name; }
103 const char *giveClassName() const override { return "Truss2d"; }
104 void initializeFrom(InputRecord &ir, int priority) override;
105 void postInitialize() override;
107 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
108 integrationDomain giveIntegrationDomain() const override { return _Line; }
109 MaterialMode giveMaterialMode() override { return _1dMat; }
110 FEInterpolation *giveInterpolation() const override;
111
112protected:
113 // edge load support
114 void resolveCoordIndices(int &c1, int &c2);
115 void giveEdgeDofMapping(IntArray &answer, int) const override;
116 double computeEdgeVolumeAround(GaussPoint *gp, int) override;
117 int computeLoadLEToLRotationMatrix(FloatMatrix &, int, GaussPoint *gp) override;
118 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &, int = 1, int = ALL_STRAINS) override;
119 void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &) override;
120 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &) override;
121 void computeGaussPoints() override;
122
123 double computeLength() override;
124 double givePitch();
125};
126} // end namespace oofem
127#endif // truss2d_h
NLStructuralElement(int n, Domain *d)
double computeVolumeAround(GaussPoint *gp) override
Definition truss2d.C:189
void computeGaussPoints() override
Definition truss2d.C:115
virtual ~Truss2d()
Definition truss2d.h:72
double pitch
Definition truss2d.h:64
void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss2d.C:333
int computeNumberOfDofs() override
Definition truss2d.h:81
FEInterpolation * giveInterpolation() const override
Definition truss2d.C:398
void giveEdgeDofMapping(IntArray &answer, int) const override
Definition truss2d.C:340
int computeLoadLEToLRotationMatrix(FloatMatrix &, int, GaussPoint *gp) override
Definition truss2d.C:371
int giveLocalCoordinateSystem(FloatMatrix &answer) override
Definition truss2d.C:244
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition truss2d.C:406
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition truss2d.C:319
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss2d.C:326
double computeLength() override
Definition truss2d.C:198
void postInitialize() override
Performs post initialization steps.
Definition truss2d.C:297
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss2d.C:127
double givePitch()
Definition truss2d.C:220
Truss2d(int n, Domain *d)
Definition truss2d.C:63
const char * giveClassName() const override
Definition truss2d.h:103
integrationDomain giveIntegrationDomain() const override
Definition truss2d.h:108
double computeEdgeVolumeAround(GaussPoint *gp, int) override
Definition truss2d.C:360
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss2d.h:75
double length
Definition truss2d.h:63
static FEI2dLineLin interp[3]
Definition truss2d.h:67
void initializeFrom(InputRecord &ir, int priority) override
Definition truss2d.C:289
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
Definition truss2d.C:451
int testElementExtension(ElementExtension ext) override
Definition truss2d.h:94
void resolveCoordIndices(int &c1, int &c2)
Definition truss2d.C:269
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
Definition truss2d.C:168
void giveDofManDofIDMask(int inode, IntArray &answer) const override
Definition truss2d.C:306
void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &) override
Definition truss2d.C:107
MaterialMode giveMaterialMode() override
Definition truss2d.h:109
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &, int=1, int=ALL_STRAINS) override
Definition truss2d.C:74
Element_Geometry_Type giveGeometryType() const override
Definition truss2d.h:107
double giveCharacteristicLength(const FloatArray &) override
Definition truss2d.h:89
const char * giveInputRecordName() const override
Definition truss2d.h:102
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &) override
Definition truss2d.C:148
static ParamKey IPK_Truss2d_cs
Definition truss2d.h:68
@ Element_EdgeLoadSupport
Element extension for edge loads.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define ALL_STRAINS
#define _IFT_Truss2d_Name
Definition truss2d.h:42

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