OOFEM 3.0
Loading...
Searching...
No Matches
mitc4.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 mitc4_h
36#define mitc4_h
37
42#include "spatiallocalizer.h"
43#include "load.h"
44#include "floatmatrixf.h"
45//#include "eleminterpmapperinterface.h"//
46
47#define _IFT_MITC4Shell_Name "mitc4shell"
48#define _IFT_MITC4Shell_nipZ "nipz"
49#define _IFT_MITC4Shell_directorType "directortype"
50
51namespace oofem {
52class FEI2dQuadLin;
53class ParamKey;
54#ifndef __CHARTENSOR
55 #define __CHARTENSOR
62#endif
63
72
76{
77protected:
85 int nPointsXY = 0, nPointsZ = 0, directorType = 0;
86 double drillCoeff = 0.;
87
90
91public:
92 MITC4Shell(int n, Domain *d);
93
94 FEInterpolation *giveInterpolation() const override;
96 int testElementExtension(ElementExtension ext) override { return ( ( ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ) ) ? 1 : 0 ); }
97
98 Interface *giveInterface(InterfaceType interface) override;
99 // definition & identification
100 const char *giveClassName() const override { return "MITC4Shell"; }
101 const char *giveInputRecordName() const override { return _IFT_MITC4Shell_Name; }
103 MaterialMode giveMaterialMode() override { return _3dDegeneratedShell; }
104 void initializeFrom(InputRecord &ir, int priority) override;
105 void postInitialize() override;
106 int computeNumberOfDofs() override { return 24; }
107 int computeNumberOfGlobalDofs() override { return 24; }
108 Element_Geometry_Type giveGeometryType() const override {return EGT_quad_1;}
109
110
112 void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override;
115 void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override;
116 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override;
117
118 // transformation
119 bool computeGtoLRotationMatrix(FloatMatrix &answer) override;
120 int computeLoadGToLRotationMtrx(FloatMatrix &answer) override;
121 std::array< FloatMatrixF< 3, 3 >, 4 >computeLToDirectorRotationMatrix();
122 int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override;
123#ifdef __OOFEG
124 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
125 void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type) override;
126 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
127#endif
128
129protected:
130 void computeGaussPoints() override;
131 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
132 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
133 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
134 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
135 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
136
137
138private:
139 std::array< FloatArrayF< 3 >, 4 >giveNodeCoordinates();
140 std::array< FloatArrayF< 3 >, 4 >giveDirectorVectors();
141 std::array< FloatArrayF< 3 >, 4 >giveLocalDirectorVectors();
142 std::array< double, 4 >giveThickness();
145 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
147 void printOutputAt(FILE *file, TimeStep *tStep) override;
148 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
149 bool computeLocalCoordinates(FloatArray &answer, const FloatArray &coords) override;
150 double computeVolumeAround(GaussPoint *gp) override;
151 std::array< FloatArrayF< 3 >, 3 >computeLocalBaseVectors();
152 std::array< FloatArrayF< 4 >, 2 >givedNdx(const FloatArrayF< 3 > &coords);
153
155
156 // edge & body load
157 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
158 void giveEdgeDofMapping(IntArray &answer, int iEdge) const override;
159 void giveDofManDofIDMask(int inode, IntArray &) const override;
160 double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf) override;
161 void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *sgp);
162 void giveSurfaceDofMapping(IntArray &answer, int iSurf) const override;
163
164 void computeSurfaceNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override;
165 void computeEdgeNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override;
167};
168} // end namespace oofem
169#endif // mitc4_h
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type) override
Definition mitc4.C:1231
Interface * giveInterface(InterfaceType interface) override
Definition mitc4.C:98
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition mitc4.C:1076
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override
Definition mitc4.C:423
void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap) override
Definition mitc4.C:115
std::array< FloatArrayF< 3 >, 4 > giveLocalDirectorVectors()
Definition mitc4.C:219
MaterialMode giveMaterialMode() override
Definition mitc4.h:103
void printOutputAt(FILE *file, TimeStep *tStep) override
Definition mitc4.C:767
double computeVolumeAround(GaussPoint *gp) override
Definition mitc4.C:305
int computeNumberOfDofs() override
Definition mitc4.h:106
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
Definition mitc4.C:372
FEInterpolation * giveInterpolation() const override
Definition mitc4.C:87
std::array< FloatArrayF< 4 >, 2 > givedNdx(const FloatArrayF< 3 > &coords)
Definition mitc4.C:879
void postInitialize() override
Performs post initialization steps.
Definition mitc4.C:641
std::array< double, 4 > giveThickness()
Definition mitc4.C:624
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition mitc4.C:1202
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Definition mitc4.C:899
FloatMatrixF< 3, 3 > giveJacobian(const FloatArrayF< 3 > &lcoords)
Definition mitc4.C:319
void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *sgp)
Definition mitc4.C:1136
void giveSurfaceDofMapping(IntArray &answer, int iSurf) const override
Definition mitc4.C:1144
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition mitc4.C:739
void initializeFrom(InputRecord &ir, int priority) override
Definition mitc4.C:286
std::array< FloatArrayF< 3 >, 3 > computeLocalBaseVectors()
Definition mitc4.C:655
static ParamKey IPK_MITC4Shell_nipZ
Definition mitc4.h:88
bool computeLocalCoordinates(FloatArray &answer, const FloatArray &coords) override
Definition mitc4.C:921
void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override
Definition mitc4.C:125
FloatArray giveMidplaneIPValue(int gpXY, InternalStateType type, TimeStep *tStep)
Definition mitc4.C:817
std::array< FloatMatrixF< 3, 3 >, 4 > computeLToDirectorRotationMatrix()
Definition mitc4.C:679
integrationDomain giveIntegrationDomain() const override
Definition mitc4.h:102
Element_Geometry_Type giveGeometryType() const override
Definition mitc4.h:108
int SPRNodalRecoveryMI_giveNumberOfIP() override
Definition mitc4.C:145
int testElementExtension(ElementExtension ext) override
Definition mitc4.h:96
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition mitc4.C:297
FloatMatrix giveCharacteristicTensor(CharTensor type, GaussPoint *gp, TimeStep *tStep)
Definition mitc4.C:746
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
Definition mitc4.C:471
std::array< FloatArrayF< 3 >, 4 > giveDirectorVectors()
Definition mitc4.C:170
SPRPatchType SPRNodalRecoveryMI_givePatchType() override
Definition mitc4.C:152
std::array< FloatArrayF< 3 >, 4 > giveNodeCoordinates()
Definition mitc4.C:269
static ParamKey IPK_MITC4Shell_directorType
Definition mitc4.h:89
int computeLoadGToLRotationMtrx(FloatMatrix &answer) override
Definition mitc4.C:961
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition mitc4.C:979
double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf) override
Definition mitc4.C:1154
MITC4Shell(int n, Domain *d)
Definition mitc4.C:74
void computeEdgeNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override
computes edge interpolation matrix
Definition mitc4.C:1179
FloatMatrixF< 3, 3 > GtoLRotationMatrix
Definition mitc4.h:84
void setupIRForMassMtrxIntegration(IntegrationRule &iRule) override
Definition mitc4.C:893
FloatArrayF< 3 > giveLocalCoordinates(const FloatArrayF< 3 > &global)
Definition mitc4.C:279
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition mitc4.C:260
int computeNumberOfGlobalDofs() override
Definition mitc4.h:107
const char * giveInputRecordName() const override
Definition mitc4.h:101
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition mitc4.C:232
void computeSurfaceNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override
Definition mitc4.C:1188
double drillCoeff
Definition mitc4.h:86
int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override
Definition mitc4.C:1105
const char * giveClassName() const override
Definition mitc4.h:100
bool computeGtoLRotationMatrix(FloatMatrix &answer) override
Definition mitc4.C:718
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
Definition mitc4.C:1051
void computeGaussPoints() override
Definition mitc4.C:159
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition mitc4.C:1260
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
Definition mitc4.C:947
static FEI2dQuadLin interp_lin
Element geometry approximation.
Definition mitc4.h:79
SpatialLocalizerInterface(Element *element)
StructuralElement(int n, Domain *d)
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_MITC4Shell_Name
Definition mitc4.h:47
@ 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