OOFEM 3.0
Loading...
Searching...
No Matches
quad1planestraingraddamage.C
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
36#include "fei2dquadlin.h"
37#include "node.h"
38#include "crosssection.h"
39#include "gausspoint.h"
41#include "floatmatrix.h"
42#include "floatarray.h"
43#include "intarray.h"
44#include "mathfem.h"
45#include "classfactory.h"
46
47#ifdef __OOFEG
48 #include "oofeggraphiccontext.h"
49 #include "oofegutils.h"
50 #include "Materials/rcm2.h"
51#endif
52
53namespace oofem {
55 IntArray Quad1PlaneStrainGradDamage :: locationArray_u = {1, 2, 4, 5, 7, 8, 10, 11};
56 IntArray Quad1PlaneStrainGradDamage :: locationArray_d = {3, 6, 9, 12};
57
58Quad1PlaneStrainGradDamage :: Quad1PlaneStrainGradDamage(int n, Domain *aDomain) : Quad1PlaneStrain(n, aDomain), GradientDamageElement()
59{
60 nPrimNodes = 4;
61 nPrimVars = 2;
62 nSecNodes = 4;
63 nSecVars = 1;
67
68}
69
70
71
72
73
74
75
76void
77Quad1PlaneStrainGradDamage :: giveDofManDofIDMask(int inode, IntArray &answer) const
78
79{
80 answer = {D_u, D_v, G_0};
81}
82
83
84void
85Quad1PlaneStrainGradDamage :: giveDofManDofIDMask_u(IntArray &answer) const
86{
87 answer = {D_u, D_v};
88}
89
90
91void
92Quad1PlaneStrainGradDamage :: giveDofManDofIDMask_d(IntArray &answer) const
93{
94 answer = {G_0};
95}
96
97
98
99
100void
101Quad1PlaneStrainGradDamage :: computeNdMatrixAt(GaussPoint *gp, FloatArray &answer)
102{
103 this->interp.evalN( answer, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
104}
105
106void
107Quad1PlaneStrainGradDamage :: computeBdMatrixAt(GaussPoint *gp, FloatMatrix &answer)
108{
109 FloatMatrix dnx;
110 this->interp.evaldNdx( dnx, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
111 answer.beTranspositionOf(dnx);
112}
113
114
115void
116Quad1PlaneStrainGradDamage :: giveLocationArray_u(IntArray &answer)
117{
118 answer = locationArray_u;
119}
120
121
122void
123Quad1PlaneStrainGradDamage :: giveLocationArray_d(IntArray &answer)
124{
125 answer = locationArray_d;
126}
127
128void
129Quad1PlaneStrainGradDamage :: postInitialize()
130{
132 NLStructuralElement :: postInitialize();
133}
134
135
136
137
138} // end namespace oofem
139
140
#define REGISTER_Element(class)
void beTranspositionOf(const FloatMatrix &src)
const FloatArray & giveNaturalCoordinates() const
Returns coordinate array of receiver.
Definition gausspoint.h:138
static FEI2dQuadLin interp
Quad1PlaneStrain(int n, Domain *d)

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