OOFEM 3.0
Loading...
Searching...
No Matches
lattice2d.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 lattice2d_h
36#define lattice2d_h
37
39
41
42#define _IFT_Lattice2d_Name "lattice2d"
43#define _IFT_Lattice2d_thick "thick"
44#define _IFT_Lattice2d_width "width"
45#define _IFT_Lattice2d_gpcoords "gpcoords"
46#define _IFT_Lattice2d_couplingflag "couplingflag"
47#define _IFT_Lattice2d_couplingnumber "couplingnumber"
49
50namespace oofem {
51class ParamKey;
56{
57protected:
58 double kappa, pitch, length;
59
64
70
71public:
72 Lattice2d(int n, Domain *d);
73 virtual ~Lattice2d();
74
75 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
76
82 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
83
84 double giveLength() override;
85
86 double giveNormalStress() override;
87
88 int hasBeenUpdated() override;
89
90 double giveArea() override { return this->width * this->thickness; }
91
92 int computeNumberOfDofs() override { return 6; }
93 void giveDofManDofIDMask(int inode, IntArray &) const override;
94 double computeVolumeAround(GaussPoint *gp) override;
95
96 int giveCrackFlag() override;
97
98 double giveCrackWidth() override;
99 //double giveOldCrackWidth() override;
100
101 double giveDissipation() override;
102 double giveDeltaDissipation() override;
103
104 int giveCouplingFlag() override { return couplingFlag; }
105
106 void giveCouplingNumbers(IntArray &numbers) override { numbers = this->couplingNumbers; }
107 //
108 // definition & identification
109 //
110 const char *giveInputRecordName() const override { return _IFT_Lattice2d_Name; }
111 const char *giveClassName() const override { return "Lattice2d"; }
112 void initializeFrom(InputRecord &ir, int priority) override;
113
114 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
115
116#ifdef __OOFEG
117 void drawYourself(oofegGraphicContext &gc, TimeStep *tStep) override;
118 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
120 void drawSpecial(oofegGraphicContext &gc, TimeStep *tStep) override;
122 void giveCrossSectionCoordinates(FloatArray &coords) override;
123#endif
124
125protected:
126 void saveContext(DataStream &stream, ContextMode mode) override;
127 void restoreContext(DataStream &stream, ContextMode mode) override;
128
129 void computeBmatrixAt(GaussPoint *, FloatMatrix &, int = 1, int = ALL_STRAINS) override;
130 bool computeGtoLRotationMatrix(FloatMatrix &) override;
131 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
132 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
133 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
134
135 int giveNumberOfCrossSectionNodes() override { return 2; }
136 double givePitch();
137 void computeGaussPoints() override;
138 integrationDomain giveIntegrationDomain() const override { return _Line; }
139 void giveGpCoordinates(FloatArray &coords) override;
140};
141} // end namespace oofem
142#endif
const char * giveInputRecordName() const override
Definition lattice2d.h:110
double giveCrackWidth() override
Definition lattice2d.C:92
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition lattice2d.C:454
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition lattice2d.C:168
double giveLength() override
Definition lattice2d.C:248
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition lattice2d.C:174
double computeVolumeAround(GaussPoint *gp) override
Definition lattice2d.C:231
static ParamKey IPK_Lattice2d_thick
Definition lattice2d.h:65
void drawRawCrossSections(oofegGraphicContext &gc, TimeStep *tStep)
Definition lattice2d.C:559
Element_Geometry_Type giveGeometryType() const override
Definition lattice2d.h:114
double giveDissipation() override
Definition lattice2d.C:102
int giveCrackFlag() override
Definition lattice2d.C:83
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
Definition lattice2d.C:354
void computeGaussPoints() override
Definition lattice2d.C:196
virtual ~Lattice2d()
Definition lattice2d.C:78
bool computeGtoLRotationMatrix(FloatMatrix &) override
Definition lattice2d.C:208
static ParamKey IPK_Lattice2d_width
Definition lattice2d.h:66
void giveCouplingNumbers(IntArray &numbers) override
Definition lattice2d.h:106
int giveLocalCoordinateSystem(FloatMatrix &answer) override
Definition lattice2d.C:316
IntArray couplingNumbers
Definition lattice2d.h:63
double giveArea() override
Definition lattice2d.h:90
int giveCouplingFlag() override
Definition lattice2d.h:104
void initializeFrom(InputRecord &ir, int priority) override
Definition lattice2d.C:340
const char * giveClassName() const override
Definition lattice2d.h:111
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
Definition lattice2d.C:180
int giveNumberOfCrossSectionNodes() override
Definition lattice2d.h:135
double givePitch()
Definition lattice2d.C:266
int computeNumberOfDofs() override
Definition lattice2d.h:92
void giveCrossSectionCoordinates(FloatArray &coords) override
Definition lattice2d.C:590
void computeBmatrixAt(GaussPoint *, FloatMatrix &, int=1, int=ALL_STRAINS) override
Definition lattice2d.C:119
integrationDomain giveIntegrationDomain() const override
Definition lattice2d.h:138
int hasBeenUpdated() override
Definition lattice2d.C:301
double giveDeltaDissipation() override
Definition lattice2d.C:111
void restoreContext(DataStream &stream, ContextMode mode) override
Definition lattice2d.C:402
FloatArray gpCoords
Definition lattice2d.h:61
void drawYourself(oofegGraphicContext &gc, TimeStep *tStep) override
Definition lattice2d.C:433
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition lattice2d.C:240
void giveGpCoordinates(FloatArray &coords) override
Definition lattice2d.C:365
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
Definition lattice2d.C:481
double giveNormalStress() override
Definition lattice2d.C:287
static ParamKey IPK_Lattice2d_gpcoords
Definition lattice2d.h:67
static ParamKey IPK_Lattice2d_couplingnumber
Definition lattice2d.h:69
Lattice2d(int n, Domain *d)
Definition lattice2d.C:69
void drawSpecial(oofegGraphicContext &gc, TimeStep *tStep) override
Definition lattice2d.C:511
static ParamKey IPK_Lattice2d_couplingflag
Definition lattice2d.h:68
void saveContext(DataStream &stream, ContextMode mode) override
Definition lattice2d.C:373
#define _IFT_Lattice2d_Name
Definition lattice2d.h:42
long ContextMode
Definition contextmode.h:43
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#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