OOFEM 3.0
Loading...
Searching...
No Matches
qwedgegraddamage.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
38#include "fei3dwedgelin.h"
39#include "node.h"
40#include "material.h"
41#include "gausspoint.h"
43#include "floatmatrix.h"
44#include "floatarray.h"
45#include "intarray.h"
46#include "domain.h"
47#include "cltypes.h"
48#include "mathfem.h"
49#include "classfactory.h"
50
51#include <cstdio>
52
53namespace oofem {
55
56FEI3dWedgeLin QWedgeGradDamage :: interpolation_lin;
57
58QWedgeGradDamage :: QWedgeGradDamage(int n, Domain *aDomain) : QWedge(n, aDomain), GradientDamageElement()
59 // Constructor.
60{
61 nPrimNodes = 15;
62 nPrimVars = 3;
63 nSecNodes = 6;
64 nSecVars = 1;
68}
69
70
71void
72QWedgeGradDamage :: initializeFrom(InputRecord &ir, int priority)
73{
75 Structural3DElement :: initializeFrom(ir, priority);
76}
77
78
79void
80QWedgeGradDamage :: giveDofManDofIDMask(int inode, IntArray &answer) const
81// returns DofId mask array for inode element node.
82// DofId mask array determines the dof ordering requsted from node.
83// DofId mask array contains the DofID constants (defined in cltypes.h)
84// describing physical meaning of particular DOFs.
85{
86 if ( inode <= 6 ) {
87 answer = {D_u, D_v, D_w, G_0};
88 } else {
89 answer = {D_u, D_v, D_w};
90 }
91}
92
93
94void
95QWedgeGradDamage :: giveDofManDofIDMask_u(IntArray &answer) const
96{
97 answer = {D_u, D_v, D_w};
98}
99
100
101void
102QWedgeGradDamage :: giveDofManDofIDMask_d(IntArray &answer) const
103{
104
105 /* if ( inode <= 6 ) {
106 answer = {G_0};
107 } else {
108 answer = {};
109 }
110 */
111}
112
113
114
115void
116QWedgeGradDamage :: computeGaussPoints()
117// Sets up the array containing the four Gauss points of the receiver.
118{
119 integrationRulesArray.resize(1);
120 integrationRulesArray [ 0 ].reset( new GaussIntegrationRule(1, this, 1, 7) );
121 this->giveCrossSection()->setupIntegrationPoints(* integrationRulesArray [ 0 ], numberOfGaussPoints, this);
122}
123
124
125void
126QWedgeGradDamage :: computeNdMatrixAt(GaussPoint *gp, FloatArray &answer)
127{
128 this->interpolation_lin.evalN( answer, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
129}
130
131void
132QWedgeGradDamage :: computeBdMatrixAt(GaussPoint *gp, FloatMatrix &answer)
133{
136 answer.beTranspositionOf(dnx);
137}
138
139}
#define REGISTER_Element(class)
std::vector< std ::unique_ptr< IntegrationRule > > integrationRulesArray
Definition element.h:157
int numberOfGaussPoints
Definition element.h:175
CrossSection * giveCrossSection()
Definition element.C:534
void beTranspositionOf(const FloatMatrix &src)
const FloatArray & giveNaturalCoordinates() const
Returns coordinate array of receiver.
Definition gausspoint.h:138
static FEI3dWedgeLin interpolation_lin
QWedge(int, Domain *)
Definition qwedge.C:58
double dnx(int i, int arg2)

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