OOFEM 3.0
Loading...
Searching...
No Matches
cct.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 cct_h
36#define cct_h
37
41#include "mathfem.h"
45
46#define _IFT_CCTPlate_Name "cctplate"
47
48namespace oofem {
49class FEI2dTrLin;
50
62{
63protected:
65 //static FEI2dTrRot interp_rot;
66
67 double area;
68
69public:
70 CCTPlate(int n, Domain *d);
71 virtual ~CCTPlate() { }
72
73 FEInterpolation *giveInterpolation() const override;
75
76 MaterialMode giveMaterialMode() override { return _2dPlate; }
77 int testElementExtension(ElementExtension ext) override { return ( ( ext == Element_EdgeLoadSupport ) ? 1 : 0 ); }
78 // overloaded to take into account possible element local cs (in derived cct3d)
79 double computeArea() override;
80 Element_Geometry_Type giveGeometryType() const override {return EGT_triangle_1;}
81
82
83protected:
84 void computeGaussPoints() override;
85 void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override;
86 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
87 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
88
89 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
90 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
91
92
93 virtual void giveNodeCoordinates(double &x1, double &x2, double &x3,
94 double &y1, double &y2, double &y3,
95 double &z1, double &z2, double &z3);
96
97
98 //virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, GaussPoint *gp) { answer.clear(); }
99 void giveEdgeDofMapping(IntArray &answer, int iEdge) const override;
100 //virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const { answer.clear(); }
101 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
102 //virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf) { return 0.; }
103 int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override;
104
105public:
106 // definition & identification
107 const char *giveClassName() const override { return "CCTPlate"; }
108 const char *giveInputRecordName() const override { return _IFT_CCTPlate_Name; }
109 void initializeFrom(InputRecord &ir, int priority) override;
110
111 int computeNumberOfDofs() override { return 9; }
112 void giveDofManDofIDMask(int inode, IntArray &) const override;
113
114 void computeMidPlaneNormal(FloatArray &answer, const GaussPoint *gp) override;
115
116 double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override;
117 double computeVolumeAround(GaussPoint *gp) override;
118
119 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
120 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
121 { computeLumpedMassMatrix(answer, tStep); }
122
124
125 bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override;
126 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
127
129 InternalStateType type, TimeStep *tStep) override;
130
132 void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override;
133 int SPRNodalRecoveryMI_giveNumberOfIP() override { return 1; }
135
136 // layered cross section support functions
137 void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain,
138 GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep) override;
139 // boundary load support
140 void computeSurfaceNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override;
141
142#ifdef __OOFEG
143 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
144 void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type) override;
145 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
146#endif
147};
148} // end namespace oofem
149#endif // cct_h
#define _IFT_CCTPlate_Name
Definition cct.h:46
MaterialMode giveMaterialMode() override
Definition cct.h:76
FEInterpolation * giveInterpolation() const override
Definition cct.C:73
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition cct.C:677
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
Definition cct.C:145
double computeArea() override
Definition cct.C:297
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
Definition cct.C:587
bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override
Definition cct.C:408
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition cct.C:364
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition cct.C:318
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Definition cct.h:120
void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain, GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep) override
Definition cct.C:535
void computeSurfaceNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords) override
Definition cct.C:661
Interface * giveInterface(InterfaceType it) override
Definition cct.C:386
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type) override
Definition cct.C:712
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Definition cct.C:450
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition cct.C:268
virtual ~CCTPlate()
Definition cct.h:71
double area
Definition cct.h:67
void computeMidPlaneNormal(FloatArray &answer, const GaussPoint *gp) override
Definition cct.C:325
CCTPlate(int n, Domain *d)
Definition cct.C:61
const char * giveClassName() const override
Definition cct.h:107
int SPRNodalRecoveryMI_giveNumberOfIP() override
Definition cct.h:133
static FEI2dTrLin interp_lin
Definition cct.h:64
int testElementExtension(ElementExtension ext) override
Definition cct.h:77
void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override
Definition cct.C:100
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition cct.C:261
double giveCharacteristicLength(const FloatArray &normalToCrackPlane) override
Definition cct.C:338
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition cct.C:622
Element_Geometry_Type giveGeometryType() const override
Definition cct.h:80
void initializeFrom(InputRecord &ir, int priority) override
Definition cct.C:311
int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp) override
Definition cct.C:630
SPRPatchType SPRNodalRecoveryMI_givePatchType() override
Definition cct.C:525
const char * giveInputRecordName() const override
Definition cct.h:108
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition cct.C:213
virtual void giveNodeCoordinates(double &x1, double &x2, double &x3, double &y1, double &y2, double &y3, double &z1, double &z2, double &z3)
Definition cct.C:275
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition cct.C:486
void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override
Definition cct.C:511
void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap) override
Definition cct.C:501
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition cct.C:747
void computeGaussPoints() override
Definition cct.C:88
double computeVolumeAround(GaussPoint *gp) override
Definition cct.C:347
int computeNumberOfDofs() override
Definition cct.h:111
StructuralElement(int n, Domain *d)
ZZErrorEstimatorInterface(Element *element)
Constructor.
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
@ Element_EdgeLoadSupport
Element extension for edge 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