OOFEM 3.0
Loading...
Searching...
No Matches
libeam3d.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 libeam3d_h
36#define libeam3d_h
37
41#include "node.h"
42
44
45#define _IFT_LIBeam3d_Name "libeam3d"
46#define _IFT_LIBeam3d_refnode "refnode"
48
49namespace oofem {
50class ParamKey;
56{
57private:
58 double length;
60
62
63public:
64 LIBeam3d(int n, Domain * d);
65 virtual ~LIBeam3d() { }
66
67 void initializeFrom(InputRecord &ir, int prio) override;
68 void postInitialize() override;
69
70 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
71 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
72 { computeLumpedMassMatrix(answer, tStep); }
73 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
74 bool computeGtoLRotationMatrix(FloatMatrix &answer) override;
75
76 int testElementExtension(ElementExtension ext) override;
77
78 int computeNumberOfDofs() override { return 12; }
79 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
80 double computeVolumeAround(GaussPoint *gp) override;
81 int giveLocalCoordinateSystem(FloatMatrix &answer) override;
82 Node* giveReferenceNode(int refNode);
83 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
84 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
85
86 bool isCast(TimeStep *tStep) override {return true;}
87 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
88
89 // Fibered cross section support functions
91 GaussPoint *slaveGp, TimeStep *tStep) override;
92
94 InternalStateType type, TimeStep *tStep) override;
95
97
98 // definition & identification
99 const char *giveInputRecordName() const override { return _IFT_LIBeam3d_Name; }
100 const char *giveClassName() const override { return "LIBeam3d"; }
101
102#ifdef __OOFEG
103 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
105#endif
106
107 integrationDomain giveIntegrationDomain() const override { return _Line; }
108 MaterialMode giveMaterialMode() override { return _3dBeam; }
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, GaussPoint *gp) override;
115 int computeLoadGToLRotationMtrx(FloatMatrix &answer) override;
116 void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override;
117
118 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
119 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
120 void computeGaussPoints() override;
121 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
122 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
123
124 double computeLength() override;
125};
126} // end namespace oofem
127#endif // libeam3d_h
double computeVolumeAround(GaussPoint *gp) override
Definition libeam3d.C:210
static ParamKey IPK_LIBeam3d_refnode
Definition libeam3d.h:61
double computeLength() override
Definition libeam3d.C:269
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition libeam3d.C:129
int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp) override
Definition libeam3d.C:365
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
Definition libeam3d.C:508
void initializeFrom(InputRecord &ir, int prio) override
Definition libeam3d.C:289
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
Definition libeam3d.C:68
virtual ~LIBeam3d()
Definition libeam3d.h:65
MaterialMode giveMaterialMode() override
Definition libeam3d.h:108
Element_Geometry_Type giveGeometryType() const override
Definition libeam3d.h:87
int testElementExtension(ElementExtension ext) override
Definition libeam3d.C:262
bool computeGtoLRotationMatrix(FloatMatrix &answer) override
Definition libeam3d.C:189
int giveLocalCoordinateSystem(FloatMatrix &answer) override
Definition libeam3d.C:407
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
Definition libeam3d.C:180
int computeNumberOfDofs() override
Definition libeam3d.h:78
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition libeam3d.C:122
double length
Definition libeam3d.h:58
bool isCast(TimeStep *tStep) override
Definition libeam3d.h:86
void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override
Definition libeam3d.C:379
void FiberedCrossSectionInterface_computeStrainVectorInFiber(FloatArray &answer, const FloatArray &masterGpStrain, GaussPoint *slaveGp, TimeStep *tStep) override
Definition libeam3d.C:443
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Definition libeam3d.C:220
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition libeam3d.h:71
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition libeam3d.C:459
void computeGaussPoints() override
Definition libeam3d.C:110
void postInitialize() override
Performs post initialization steps.
Definition libeam3d.C:297
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition libeam3d.C:481
Node * giveReferenceNode(int refNode)
Definition libeam3d.C:386
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
Definition libeam3d.C:244
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition libeam3d.C:327
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
Definition libeam3d.C:309
int computeLoadGToLRotationMtrx(FloatMatrix &answer) override
Definition libeam3d.C:338
integrationDomain giveIntegrationDomain() const override
Definition libeam3d.h:107
void giveDofManDofIDMask(int inode, IntArray &answer) const override
Definition libeam3d.C:237
Interface * giveInterface(InterfaceType it) override
Definition libeam3d.C:467
const char * giveInputRecordName() const override
Definition libeam3d.h:99
const char * giveClassName() const override
Definition libeam3d.h:100
LIBeam3d(int n, Domain *d)
Definition libeam3d.C:58
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition libeam3d.C:136
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition libeam3d.C:151
StructuralElement(int n, Domain *d)
#define _IFT_LIBeam3d_Name
Definition libeam3d.h:45
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