OOFEM 3.0
Loading...
Searching...
No Matches
dkt.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 dkt_h
36#define dkt_h
37
41#include "mathfem.h"
45
46#define _IFT_DKTPlate_Name "dktplate"
47
48// enable or disable element vertex moment cache; enabling will speed up postprocessing
49#define DKT_EnableVertexMomentsCache
50
51namespace oofem {
52class FEI2dTrLin;
53
71{
72protected:
75 double area;
76#ifdef DKT_EnableVertexMomentsCache
79#endif
80
81public:
82 DKTPlate(int n, Domain *d);
83 virtual ~DKTPlate() { }
84
85 FEInterpolation *giveInterpolation() const override;
87
88 MaterialMode giveMaterialMode() override { return _2dPlate; }
89 Element_Geometry_Type giveGeometryType() const override {return EGT_triangle_1;}
90
91 int testElementExtension(ElementExtension ext) override { return ( ( ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ) ) ? 1 : 0 ); }
92
93 void computeEdgeNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override;
94
95protected:
96
97 void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override;
98 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
99 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
100
101 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
102 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
103
104
105 virtual void giveNodeCoordinates(double &x1, double &x2, double &x3,
106 double &y1, double &y2, double &y3,
107 double &z1, double &z2, double &z3);
108
109
114 void giveEdgeDofMapping(IntArray &answer, int iEdge) const override;
115 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
116 int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override;
118
122 void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp);
123 void giveSurfaceDofMapping(IntArray &answer, int iSurf) const override;
124 double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf) override;
125 int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int iSurf, GaussPoint *gp) override;
127
128public:
129 // definition & identification
130 const char *giveClassName() const override { return "DKTPlate"; }
131 const char *giveInputRecordName() const override { return _IFT_DKTPlate_Name; }
132 void initializeFrom(InputRecord &ir, int priority) override;
133
134 void computeGaussPoints() override;
135 int computeNumberOfDofs() override { return 9; }
136 void giveDofManDofIDMask(int inode, IntArray &) const override;
137
138 void computeMidPlaneNormal(FloatArray &answer, const GaussPoint *gp) override;
139
140 double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override;
141 double computeVolumeAround(GaussPoint *gp) override;
142
143 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
144 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
145 { computeLumpedMassMatrix(answer, tStep); }
146
148
149 bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override;
150 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
151
153 InternalStateType type, TimeStep *tStep) override;
154
156 void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override;
159
160 // layered cross section support functions
161 void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain,
162 GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep) override;
163
165 // postproccess the shear forces on the element
166 void computeShearForces(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
167
168#ifdef __OOFEG
169 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
170 void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type) override;
171 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
172#endif
173};
174} // end namespace oofem
175#endif // dkt_h
SPRPatchType SPRNodalRecoveryMI_givePatchType() override
Definition dkt.C:568
bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override
Definition dkt.C:444
double computeVolumeAround(GaussPoint *gp) override
Definition dkt.C:387
FEInterpolation * giveInterpolation() const override
Definition dkt.C:72
MaterialMode giveMaterialMode() override
Definition dkt.h:88
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition dkt.C:858
StateCounterType stateCounter
Definition dkt.h:78
virtual ~DKTPlate()
Definition dkt.h:83
DKTPlate(int n, Domain *d)
Definition dkt.C:60
int testElementExtension(ElementExtension ext) override
Definition dkt.h:91
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition dkt.C:319
void giveSurfaceDofMapping(IntArray &answer, int iSurf) const override
Definition dkt.C:697
void computeShearForces(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Definition dkt.C:768
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition dkt.h:144
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type) override
Definition dkt.C:823
void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override
Definition dkt.C:95
const char * giveClassName() const override
Definition dkt.h:130
Interface * giveInterface(InterfaceType it) override
Definition dkt.C:422
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition dkt.C:293
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition dkt.C:651
void computeEdgeNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override
computes edge interpolation matrix
Definition dkt.C:575
const char * giveInputRecordName() const override
Definition dkt.h:131
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition dkt.C:356
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition dkt.C:403
void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap) override
Definition dkt.C:544
FloatMatrix vertexMoments
Definition dkt.h:77
int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int iSurf, GaussPoint *gp) override
Definition dkt.C:719
int SPRNodalRecoveryMI_giveNumberOfIP() override
Definition dkt.h:157
double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override
Definition dkt.C:376
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
Definition dkt.C:139
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition dkt.C:526
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
Definition dkt.C:616
void initializeFrom(InputRecord &ir, int priority) override
Definition dkt.C:349
double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf) override
Definition dkt.C:712
double area
Definition dkt.h:75
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Definition dkt.C:486
virtual void giveNodeCoordinates(double &x1, double &x2, double &x3, double &y1, double &y2, double &y3, double &z1, double &z2, double &z3)
Definition dkt.C:326
void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain, GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep) override
Definition dkt.C:594
static FEI2dTrLin interp_lin
Element geometry approximation.
Definition dkt.h:74
Element_Geometry_Type giveGeometryType() const override
Definition dkt.h:89
void computeMidPlaneNormal(FloatArray &answer, const GaussPoint *gp) override
Definition dkt.C:363
void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override
Definition dkt.C:554
int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override
Definition dkt.C:659
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition dkt.C:312
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition dkt.C:788
int computeNumberOfDofs() override
Definition dkt.h:135
void computeGaussPoints() override
Definition dkt.C:83
void computeVertexBendingMoments(FloatMatrix &answer, TimeStep *tStep)
Definition dkt.C:725
void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp)
Definition dkt.C:691
int numberOfGaussPoints
Definition element.h:175
StructuralElement(int n, Domain *d)
ZZErrorEstimatorInterface(Element *element)
Constructor.
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_DKTPlate_Name
Definition dkt.h:46
long StateCounterType
StateCounterType type used to indicate solution state.
@ Element_EdgeLoadSupport
Element extension for edge loads.
@ Element_SurfaceLoadSupport
Element extension for surface loads.
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