OOFEM 3.0
Loading...
Searching...
No Matches
cohsur3d.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 cohsur3d_h
36#define cohsur3d_h
37
39
41
42#define _IFT_CohesiveSurface3d_Name "cohsur3d"
43#define _IFT_CohSur3d_kx "kx"
44#define _IFT_CohSur3d_ky "ky"
45#define _IFT_CohSur3d_kz "kz"
46#define _IFT_CohSur3d_area "area"
48
49namespace oofem {
50class ParamKey;
58{
59protected:
60 double area, length;
63
65
66 int kx, ky, kz;
67 double kxa, kyb, kzc;
69
74
75public:
76 CohesiveSurface3d(int n, Domain * d);
77 virtual ~CohesiveSurface3d() { }
78
79 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui) override;
80 double computeVolumeAround(GaussPoint *gp) override;
81 int computeNumberOfDofs() override { return 6 * giveNumberOfNodes(); }
82 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
83 double giveLength();
84 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override { }
85 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
86
87 // definition & identification
88 const char *giveClassName() const override { return "CohesiveSurface3d"; }
89 const char *giveInputRecordName() const override { return _IFT_CohesiveSurface3d_Name; }
90 Element_Geometry_Type giveGeometryType() const override {return EGT_unknown;}
91
92
93 // input and output
94 void initializeFrom(InputRecord &ir, int priority) override;
95 void postInitialize() override;
96
97#ifdef __OOFEG
98 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
100 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
101#endif
102
103protected:
104 void computeGaussPoints() override;
105 void evaluateCenter();
107
108 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
109 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
110 MaterialMode giveMaterialMode() override { return _3dInterface; }
111};
112} // namespace oofem
113#endif
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
Definition cohsur3d.C:430
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui) override
Definition cohsur3d.C:77
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition cohsur3d.C:241
static ParamKey IPK_CohesiveSurface3d_area
Definition cohsur3d.h:73
void postInitialize() override
Performs post initialization steps. Called after all components are created and initialized.
Definition cohsur3d.C:386
double computeVolumeAround(GaussPoint *gp) override
Definition cohsur3d.C:227
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition cohsur3d.C:438
void computeGaussPoints() override
Definition cohsur3d.C:215
static ParamKey IPK_CohesiveSurface3d_ky
Definition cohsur3d.h:71
void initializeFrom(InputRecord &ir, int priority) override
Definition cohsur3d.C:374
const char * giveClassName() const override
Definition cohsur3d.h:88
const char * giveInputRecordName() const override
Definition cohsur3d.h:89
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition cohsur3d.C:248
static ParamKey IPK_CohesiveSurface3d_kx
Definition cohsur3d.h:70
virtual ~CohesiveSurface3d()
Definition cohsur3d.h:77
Element_Geometry_Type giveGeometryType() const override
Definition cohsur3d.h:90
MaterialMode giveMaterialMode() override
Definition cohsur3d.h:110
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition cohsur3d.C:534
void evaluateLocalCoordinateSystem()
Definition cohsur3d.C:325
void giveDofManDofIDMask(int inode, IntArray &answer) const override
Definition cohsur3d.C:234
FloatArray center
Coordinates of the center of the cohesive surface.
Definition cohsur3d.h:61
int computeNumberOfDofs() override
Definition cohsur3d.h:81
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
Definition cohsur3d.C:482
CohesiveSurface3d(int n, Domain *d)
Definition cohsur3d.C:66
FloatMatrix lcs
Matrix defining the local coordinate system.
Definition cohsur3d.h:62
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition cohsur3d.h:84
static ParamKey IPK_CohesiveSurface3d_kz
Definition cohsur3d.h:72
virtual int giveNumberOfNodes() const
Definition element.h:703
StructuralElement(int n, Domain *d)
#define _IFT_CohesiveSurface3d_Name
Definition cohsur3d.h:42
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]

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