OOFEM 3.0
Loading...
Searching...
No Matches
truss3dnl2.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 truss3dnl2_h
36#define truss3dnl2_h
37
39#include "fei3dlinelin.h"
40
41#define _IFT_Truss3dnl2_Name "truss3dnl2"
42
43
44namespace oofem {
49class Truss3dnl2 : public Truss3d
50{
51protected:
53 // vector of reference coordinates;
55 // undeformed length
56 double L;
57 // init stress factor
58 double initStressFactor = 0;
59
60
61public:
62 Truss3dnl2(int n, Domain * d);
63 virtual ~Truss3dnl2() { }
64
65 // definition & identification
66 const char *giveInputRecordName() const override { return _IFT_Truss3dnl2_Name; }
67 const char *giveClassName() const override { return "Truss3dnl2"; }
68
69 void postInitialize() override;
70 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
71 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override;
72
73 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
74
75
76protected:
78 void _computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, TimeStep *tStep, const FloatArray &u);
79 void computeInitialStressStiffness(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep, const FloatMatrix &B, const FloatArray &d);
80
81 std::pair<double,double> computeDeformedLengthAt(GaussPoint *gp, const FloatArray &d);
83
84 void computeGaussPoints() override;
85
86
87 double computeLength() override;
88 double computeDeformedLength(const FloatArray &d);
91
92};
93} // end namespace oofem
94#endif // truss3dnl_h
Truss3d(int n, Domain *d)
Definition truss3d.C:57
FloatMatrixF< 3, 6 > givePmatrix()
Definition truss3dnl2.C:232
virtual ~Truss3dnl2()
Definition truss3dnl2.h:63
FloatMatrixF< 6, 6 > giveAmatrix()
Definition truss3dnl2.C:224
double computeDeformedLength(const FloatArray &d)
Definition truss3dnl2.C:139
Truss3dnl2(int n, Domain *d)
Definition truss3dnl2.C:53
const char * giveClassName() const override
Definition truss3dnl2.h:67
virtual FEICellGeometry * giveCellGeometryWrapper()
Definition truss3dnl2.C:290
const char * giveInputRecordName() const override
Definition truss3dnl2.h:66
std::pair< double, double > computeDeformedLengthAt(GaussPoint *gp, const FloatArray &d)
FEICellGeometry * cellGeometryWrapper
Definition truss3dnl2.h:52
void computeGaussPoints() override
Definition truss3dnl2.C:278
void postInitialize() override
Performs post initialization steps.
Definition truss3dnl2.C:59
double initStressFactor
Definition truss3dnl2.h:58
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss3dnl2.C:203
double computeLength() override
Definition truss3dnl2.C:131
void _computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, TimeStep *tStep, const FloatArray &u)
Definition truss3dnl2.C:211
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
Definition truss3dnl2.C:69
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
Definition truss3dnl2.C:162
FloatArray _computeStrainVector(GaussPoint *gp, const FloatArray &u)
Definition truss3dnl2.C:152
void computeInitialStressStiffness(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep, const FloatMatrix &B, const FloatArray &d)
Definition truss3dnl2.C:244
#define _IFT_Truss3dnl2_Name
Definition truss3dnl2.h:41

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