OOFEM 3.0
Loading...
Searching...
No Matches
bondlink3d.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 bondlink3d_h
36#define bondlink3d_h
37
39
41
42#define _IFT_BondLink3d_Name "bondlink3d"
43#define _IFT_BondLink3d_length "length"
44#define _IFT_BondLink3d_diameter "diameter"
45#define _IFT_BondLink3d_dirvector "dirvector"
46#define _IFT_BondLink3d_length_end "length_end"
48
49namespace oofem {
50class ParamKey;
61
63{
64protected:
65 double bondLength = 0.;
66
68 double bondDiameter = 0.;
70 int geometryFlag = 0;
71 double bondEndLength = 0.;
74
79
80public:
81 BondLink3d(int n, Domain *);
82
83 double computeVolumeAround(GaussPoint *aGaussPoint) override;
84
85 double giveLength();
86
87 MaterialMode giveMaterialMode() override { return _3dInterface; }
88
89 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
90
96 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
97
98 virtual double giveBondLength();
99
100 virtual double giveBondDiameter();
101
102 virtual double giveBondEndLength();
103
104 int computeNumberOfDofs() override { return 9; }
105
106 void giveDofManDofIDMask(int inode, IntArray &) const override;
107
108 virtual void giveGPCoordinates(FloatArray &coords);
109
110 virtual void computeGeometryProperties();
111
113 TimeStep *tStep, int useUpdatedGpRecord) override;
114
115 const char *giveInputRecordName() const override { return _IFT_BondLink3d_Name; }
116 const char *giveClassName() const override { return "BondLink3d"; }
117 void initializeFrom(InputRecord &ir, int priority) override;
118 void postInitialize() override;
119
120 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
121
122 void saveContext(DataStream &stream, ContextMode mode) override;
123
124 void restoreContext(DataStream &stream, ContextMode mode) override;
125
126#ifdef __OOFEG
127 void drawYourself(oofegGraphicContext &context, TimeStep *tStep) override;
128 void drawRawGeometry(oofegGraphicContext &, TimeStep *tStep) override;
130#endif
131
132
133protected:
134 void computeBmatrixAt(GaussPoint *, FloatMatrix &, int = 1, int = ALL_STRAINS) override;
135 bool computeGtoLRotationMatrix(FloatMatrix &) override;
136 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
137 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
138 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
139
140
145
146 void computeGaussPoints() override;
147 integrationDomain giveIntegrationDomain() const override { return _Line; }
148};
149} // end namespace oofem
150#endif
#define _IFT_BondLink3d_Name
Definition bondlink3d.h:42
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
Definition bondlink3d.C:139
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
Definition bondlink3d.C:287
void saveContext(DataStream &stream, ContextMode mode) override
Definition bondlink3d.C:384
void postInitialize() override
Performs post initialization steps. Called after all components are created and initialized.
Definition bondlink3d.C:272
static ParamKey IPK_BondLink3d_dirvector
Definition bondlink3d.h:77
virtual double giveBondDiameter()
Definition bondlink3d.C:241
void drawYourself(oofegGraphicContext &context, TimeStep *tStep) override
Definition bondlink3d.C:499
const char * giveInputRecordName() const override
Definition bondlink3d.h:115
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition bondlink3d.C:483
int computeNumberOfDofs() override
Definition bondlink3d.h:104
FloatArray directionVector
Definition bondlink3d.h:69
virtual double giveBondEndLength()
Definition bondlink3d.C:234
static ParamKey IPK_BondLink3d_length
Definition bondlink3d.h:75
FloatArray rigid
Definition bondlink3d.h:72
void drawDeformedGeometry(oofegGraphicContext &, TimeStep *tStep, UnknownType) override
Definition bondlink3d.C:546
virtual void computeGeometryProperties()
Definition bondlink3d.C:301
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition bondlink3d.C:250
bool computeGtoLRotationMatrix(FloatMatrix &) override
Definition bondlink3d.C:193
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override
Definition bondlink3d.C:398
double giveLength()
Definition bondlink3d.C:476
integrationDomain giveIntegrationDomain() const override
Definition bondlink3d.h:147
void drawRawGeometry(oofegGraphicContext &, TimeStep *tStep) override
Definition bondlink3d.C:520
virtual double giveBondLength()
Definition bondlink3d.C:228
void computeGaussPoints() override
Definition bondlink3d.C:181
double computeVolumeAround(GaussPoint *aGaussPoint) override
Definition bondlink3d.C:76
static ParamKey IPK_BondLink3d_length_end
Definition bondlink3d.h:78
void initializeFrom(InputRecord &ir, int priority) override
Definition bondlink3d.C:260
BondLink3d(int n, Domain *)
Definition bondlink3d.C:69
FloatArray globalCentroid
Definition bondlink3d.h:73
void restoreContext(DataStream &stream, ContextMode mode) override
Definition bondlink3d.C:391
FloatMatrix localCoordinateSystem
Definition bondlink3d.h:67
virtual void giveGPCoordinates(FloatArray &coords)
Definition bondlink3d.C:127
const char * giveClassName() const override
Definition bondlink3d.h:116
static ParamKey IPK_BondLink3d_diameter
Definition bondlink3d.h:76
MaterialMode giveMaterialMode() override
Definition bondlink3d.h:87
Element_Geometry_Type giveGeometryType() const override
Definition bondlink3d.h:120
void computePropertiesOfCrossSection()
void computeBmatrixAt(GaussPoint *, FloatMatrix &, int=1, int=ALL_STRAINS) override
Definition bondlink3d.C:85
int giveLocalCoordinateSystem(FloatMatrix &answer) override
Definition bondlink3d.C:216
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition bondlink3d.C:489
StructuralElement(int n, Domain *d)
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