OOFEM 3.0
Loading...
Searching...
No Matches
latticelink3d.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 program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (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
28 * GNU General Public License for more details.
29 *
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33 */
34
35#ifndef latticelink3d_h
36#define latticelink3d_h
37
39
41
42#define _IFT_LatticeLink3d_Name "latticelink3d"
43#define _IFT_LatticeLink3d_length "length"
44#define _IFT_LatticeLink3d_diameter "diameter"
45#define _IFT_LatticeLink3d_dirvector "dirvector"
46#define _IFT_LatticeLink3d_l_end "l_end"
48
49namespace oofem {
50
54
56{
57protected:
58 double bondLength;
59
67
72
73public:
74 LatticeLink3d(int n, Domain *);
75 virtual ~LatticeLink3d();
76
77 double computeVolumeAround(GaussPoint *aGaussPoint) override;
78
79 double giveLength() override;
80
81 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
82
83 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
84
85 double giveBondLength() override;
86
87 double giveBondDiameter() override;
88
89 double giveBondEndLength() override;
90
91 int computeNumberOfDofs() override { return 12; }
92
93 void giveDofManDofIDMask(int inode, IntArray &) const override;
94
95 virtual void giveGPCoordinates(FloatArray &coords);
96
97 virtual void computeGeometryProperties();
98
99 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override;
100
101 const char *giveInputRecordName() const override { return _IFT_LatticeLink3d_Name; }
102 const char *giveClassName() const override { return "LatticeLink3d"; }
103 void initializeFrom(InputRecord &ir, int priority) override;
104 void postInitialize() override;
105
106 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
107
108 void saveContext(DataStream &stream, ContextMode mode) override;
109
110 void restoreContext(DataStream &stream, ContextMode mode) override;
111
112#ifdef __OOFEG
113 void drawYourself(oofegGraphicContext &context, TimeStep *tStep) override;
114 void drawRawGeometry(oofegGraphicContext &, TimeStep *tStep) override;
116#endif
117
118
119protected:
120 void computeBmatrixAt(GaussPoint *, FloatMatrix &, int = 1, int = ALL_STRAINS) override;
121 bool computeGtoLRotationMatrix(FloatMatrix &) override;
122 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
123 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
124 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
125
126
131
132 void computeGaussPoints() override;
133 integrationDomain giveIntegrationDomain() const override { return _Line; }
134};
135} // end namespace oofem
136#endif
void initializeFrom(InputRecord &ir, int priority) override
void computePropertiesOfCrossSection()
double giveBondLength() override
bool computeGtoLRotationMatrix(FloatMatrix &) override
int computeNumberOfDofs() override
int giveLocalCoordinateSystem(FloatMatrix &answer) override
static ParamKey IPK_LatticeLink3d_l_end
double giveBondDiameter() override
integrationDomain giveIntegrationDomain() const override
double giveLength() override
static ParamKey IPK_LatticeLink3d_length
void saveContext(DataStream &stream, ContextMode mode) override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
void drawDeformedGeometry(oofegGraphicContext &, TimeStep *tStep, UnknownType) override
void postInitialize() override
Performs post initialization steps.
FloatArray directionVector
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
void drawRawGeometry(oofegGraphicContext &, TimeStep *tStep) override
FloatArray globalCentroid
virtual void giveGPCoordinates(FloatArray &coords)
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
double computeVolumeAround(GaussPoint *aGaussPoint) override
void giveDofManDofIDMask(int inode, IntArray &) const override
Element_Geometry_Type giveGeometryType() const override
static ParamKey IPK_LatticeLink3d_dirvector
const char * giveClassName() const override
static ParamKey IPK_LatticeLink3d_diameter
double giveBondEndLength() override
void drawYourself(oofegGraphicContext &context, TimeStep *tStep) override
void computeBmatrixAt(GaussPoint *, FloatMatrix &, int=1, int=ALL_STRAINS) override
FloatMatrix localCoordinateSystem
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
virtual void computeGeometryProperties()
void computeGaussPoints() override
LatticeLink3d(int n, Domain *)
const char * giveInputRecordName() const override
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
void restoreContext(DataStream &stream, ContextMode mode) override
#define _IFT_LatticeLink3d_Name
long ContextMode
Definition contextmode.h:43
#define ALL_STRAINS

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