OOFEM 3.0
Loading...
Searching...
No Matches
truss1d.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 truss1d_h
36#define truss1d_h
37
44#include "spatiallocalizer.h"
46
47#define _IFT_Truss1d_Name "truss1d"
48
49namespace oofem {
50class FEI1dLin;
51
60{
61protected:
63
64public:
65 Truss1d(int n, Domain *d);
66 virtual ~Truss1d() { }
67
68 FEInterpolation *giveInterpolation() const override;
69
70 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
71 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
72 { computeLumpedMassMatrix(answer, tStep); }
73
74 int computeNumberOfDofs() override { return 2; }
75 void giveDofManDofIDMask(int inode, IntArray &) const override;
76
77 // characteristic length (for crack band approach)
78 double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override
79 { return this->computeLength(); }
80
81 double computeVolumeAround(GaussPoint *gp) override;
82
83 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
84 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
85 void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
86
87 int testElementExtension(ElementExtension ext) override { return 0; }
88
90
91#ifdef __OOFEG
92 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
94 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
95#endif
96
97 // definition & identification
98 const char *giveInputRecordName() const override { return _IFT_Truss1d_Name; }
99 const char *giveClassName() const override { return "Truss1d"; }
100 MaterialMode giveMaterialMode() override { return _1dMat; }
101 Element_Geometry_Type giveGeometryType() const override {return EGT_line_1;}
102
103
104 // NodalAveragingRecoveryMInterface
106 InternalStateType type, TimeStep *tStep) override;
107
108 // HuertaErrorEstimatorInterface
109 void HuertaErrorEstimatorI_setupRefinedElementProblem(RefinedElement *refinedElement, int level, int nodeId,
110 IntArray &localNodeIdArray, IntArray &globalNodeIdArray,
112 int &localNodeId, int &localElemId, int &localBcId,
113 IntArray &controlNode, IntArray &controlDof,
116
117protected:
118 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
119 void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) override;
120 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
121 void computeGaussPoints() override;
122};
123} // end namespace oofem
124#endif // truss1d_h
virtual double computeLength()
Definition element.C:1149
NLStructuralElement(int n, Domain *d)
SpatialLocalizerInterface(Element *element)
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
Definition truss1d.C:247
const char * giveInputRecordName() const override
Definition truss1d.h:98
void computeGaussPoints() override
Definition truss1d.C:69
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss1d.C:83
MaterialMode giveMaterialMode() override
Definition truss1d.h:100
Truss1d(int n, Domain *d)
Definition truss1d.C:58
void HuertaErrorEstimatorI_setupRefinedElementProblem(RefinedElement *refinedElement, int level, int nodeId, IntArray &localNodeIdArray, IntArray &globalNodeIdArray, HuertaErrorEstimatorInterface::SetupMode sMode, TimeStep *tStep, int &localNodeId, int &localElemId, int &localBcId, IntArray &controlNode, IntArray &controlDof, HuertaErrorEstimator::AnalysisMode aMode) override
Definition truss1d.C:174
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition truss1d.C:402
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition truss1d.h:71
void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) override
Definition truss1d.C:111
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition truss1d.C:165
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition truss1d.C:222
double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override
Definition truss1d.h:78
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition truss1d.C:123
void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss1d.C:159
FEInterpolation * giveInterpolation() const override
Definition truss1d.C:80
const char * giveClassName() const override
Definition truss1d.h:99
virtual ~Truss1d()
Definition truss1d.h:66
static FEI1dLin interp
Definition truss1d.h:62
double computeVolumeAround(GaussPoint *gp) override
Definition truss1d.C:137
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition truss1d.C:153
Interface * giveInterface(InterfaceType it) override
Definition truss1d.C:383
Element_Geometry_Type giveGeometryType() const override
Definition truss1d.h:101
int testElementExtension(ElementExtension ext) override
Definition truss1d.h:87
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition truss1d.C:147
void HuertaErrorEstimatorI_computeNmatrixAt(GaussPoint *gp, FloatMatrix &answer) override
Definition truss1d.C:215
int computeNumberOfDofs() override
Definition truss1d.h:74
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
Definition truss1d.C:98
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition truss1d.C:273
ZZErrorEstimatorInterface(Element *element)
Constructor.
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define ALL_STRAINS
#define _IFT_Truss1d_Name
Definition truss1d.h:47

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