OOFEM 3.0
Loading...
Searching...
No Matches
qtrspacegraddamage.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 "fei3dtetlin.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
56FEI3dTetLin QTRSpaceGradDamage :: interpolation_lin;
57
58QTRSpaceGradDamage :: QTRSpaceGradDamage(int n, Domain *aDomain) : QTRSpace(n, aDomain), GradientDamageElement()
59 // Constructor.
60{
61 nPrimNodes = 10;
62 nPrimVars = 3;
63 nSecNodes = 4;
64 nSecVars = 1;
68}
69
70
71void
72QTRSpaceGradDamage :: initializeFrom(InputRecord &ir, int priority)
73{
75 Structural3DElement :: initializeFrom(ir, priority);
76}
77
78
79void
80QTRSpaceGradDamage :: giveDofManDofIDMask(int inode, IntArray &answer) const
81{
82 if ( inode <= 4 ) {
83 answer = {D_u, D_v, D_w, G_0};
84 } else {
85 answer = {D_u, D_v, D_w};
86 }
87}
88
89
90void
91QTRSpaceGradDamage :: giveDofManDofIDMask_u(IntArray &answer) const
92{
93 answer = {D_u, D_v, D_w};
94}
95
96
97void
98QTRSpaceGradDamage :: giveDofManDofIDMask_d(IntArray &answer) const
99{
100 /* if ( inode <= 4 ) {
101 answer = {G_0};
102 } else {
103 answer = {};
104 }
105 */
106
107}
108
109
110void
111QTRSpaceGradDamage :: computeGaussPoints()
112// Sets up the array containing the four Gauss points of the receiver.
113{
114 integrationRulesArray.resize(1);
115 integrationRulesArray [ 0 ].reset( new GaussIntegrationRule(1, this, 1, 7) );
116 this->giveCrossSection()->setupIntegrationPoints(* integrationRulesArray [ 0 ], numberOfGaussPoints, this);
117}
118
119
120void
121QTRSpaceGradDamage :: computeNdMatrixAt(GaussPoint *gp, FloatArray &answer)
122{
123 this->interpolation_lin.evalN(answer, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
124}
125
126void
127QTRSpaceGradDamage :: computeBdMatrixAt(GaussPoint *gp, FloatMatrix &answer)
128{
131 answer.beTranspositionOf(dnx);
132}
133
134}
#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 FEI3dTetLin interpolation_lin
QTRSpace(int, Domain *)
Definition qtrspace.C:59
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