OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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 libeam3dnl2_h
36#define libeam3dnl2_h
37
39
41
42#define _IFT_LIBeam3dNL2_Name "libeam3dnl2"
43#define _IFT_LIBeam3dNL2_refnode "refnode"
45
46namespace oofem {
47class ParamKey;
57{
58private:
60 double l0;
65 // curvature at the centre
66 // FloatArray kappa;
71
73
74public:
75 LIBeam3dNL2(int n, Domain *d);
76 virtual ~LIBeam3dNL2() { }
77
78 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
79 void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity = NULL) override
80 { computeLumpedMassMatrix(answer, tStep); }
81 void computeStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override;
82
83 int computeNumberOfDofs() override { return 12; }
84 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
85 double computeVolumeAround(GaussPoint *gp) override;
86
87 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
88
89 // definition & identification
90 const char *giveInputRecordName() const override { return _IFT_LIBeam3dNL2_Name; }
91 const char *giveClassName() const override { return "LIBeam3dNL2"; }
92 void initializeFrom(InputRecord &ir, int prio) override;
93 void postInitialize() override;
94 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
95
96#ifdef __OOFEG
97 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
99#endif
100
101 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
102 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override;
103
104 integrationDomain giveIntegrationDomain() const override { return _Line; }
105 MaterialMode giveMaterialMode() override { return _3dBeam; }
106
107 void saveContext(DataStream &stream, ContextMode mode) override;
108 void restoreContext(DataStream &stream, ContextMode mode) override;
109
110protected:
111 // edge load support
112 void giveEdgeDofMapping(IntArray &answer, int iEdge) const override;
113 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
114 int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override;
115 int computeLoadGToLRotationMtrx(FloatMatrix &answer) override;
116 void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override;
117
118 void updateYourself(TimeStep *tStep) override;
119 void initForNewStep() override;
120 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int, int) override
121 { OOFEM_ERROR("not implemented"); }
122 //int computeGtoLRotationMatrix(FloatMatrix& answer);
123
124 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
125 void computeGaussPoints() override;
126 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
127 void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
128 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
129
130 double computeLength() override;
131 //double givePitch ();
132 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
133
140 void updateTempQuaternion(TimeStep *tStep);
146 void computeTempCurv(FloatArray &answer, TimeStep *tStep);
152 void computeSMtrx(FloatMatrix &answer, FloatArray &vec);
159 void computeRotMtrx(FloatMatrix &answer, FloatArray &psi);
165 void computeXMtrx(FloatMatrix &answer, TimeStep *tStep);
183 void computeXdVector(FloatArray &answer, TimeStep *tStep);
184};
185} // end namespace oofem
186#endif // libeam3dnl2_h
FloatArray tempQ
Temporary quaternion at the center.
Definition libeam3dnl2.h:64
integrationDomain giveIntegrationDomain() const override
double computeLength() override
int referenceNode
Reference node.
Definition libeam3dnl2.h:70
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
void postInitialize() override
Performs post initialization steps.
void updateYourself(TimeStep *tStep) override
double l0
Initial length.
Definition libeam3dnl2.h:60
MaterialMode giveMaterialMode() override
LIBeam3dNL2(int n, Domain *d)
Definition libeam3dnl2.C:60
FloatArray q
Quaternion at the center (last equilibrated).
Definition libeam3dnl2.h:62
void initializeFrom(InputRecord &ir, int prio) override
Element_Geometry_Type giveGeometryType() const override
Definition libeam3dnl2.h:94
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
void computeXdVector(FloatArray &answer, TimeStep *tStep)
void saveContext(DataStream &stream, ContextMode mode) override
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
void computeSMtrx(FloatMatrix &answer, FloatArray &vec)
Definition libeam3dnl2.C:72
void updateTempQuaternion(TimeStep *tStep)
void restoreContext(DataStream &stream, ContextMode mode) override
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
void computeRotMtrxFromQuaternion(FloatMatrix &answer, FloatArray &q)
int giveLocalCoordinateSystem(FloatMatrix &answer) override
void computeQuaternionFromRotMtrx(FloatArray &answer, FloatMatrix &R)
int computeNumberOfDofs() override
Definition libeam3dnl2.h:83
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
void initForNewStep() override
void computeTempCurv(FloatArray &answer, TimeStep *tStep)
void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity=NULL) override
Definition libeam3dnl2.h:79
void computeRotMtrx(FloatMatrix &answer, FloatArray &psi)
Definition libeam3dnl2.C:91
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override
void computeXMtrx(FloatMatrix &answer, TimeStep *tStep)
int computeLoadGToLRotationMtrx(FloatMatrix &answer) override
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int, int) override
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
double computeVolumeAround(GaussPoint *gp) override
const char * giveClassName() const override
Definition libeam3dnl2.h:91
static ParamKey IPK_LIBeam3dNL2_refnode
Definition libeam3dnl2.h:72
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
void computeGaussPoints() override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
virtual ~LIBeam3dNL2()
Definition libeam3dnl2.h:76
void computeStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override
void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override
const char * giveInputRecordName() const override
Definition libeam3dnl2.h:90
StateCounterType tempQCounter
Time stamp of temporary centre quaternion.
Definition libeam3dnl2.h:68
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
NLStructuralElement(int n, Domain *d)
#define OOFEM_ERROR(...)
Definition error.h:79
#define _IFT_LIBeam3dNL2_Name
Definition libeam3dnl2.h:42
long ContextMode
Definition contextmode.h:43
long StateCounterType
StateCounterType type used to indicate solution state.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]

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