OOFEM 3.0
Loading...
Searching...
No Matches
qspacegraddamage.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 "fei3dhexalin.h"
37#include "gausspoint.h"
39#include "floatmatrix.h"
40#include "floatarray.h"
41#include "intarray.h"
42#include "crosssection.h"
43#include "classfactory.h"
44
45namespace oofem {
47
48FEI3dHexaLin QSpaceGradDamage :: interpolation_lin;
49
50QSpaceGradDamage :: QSpaceGradDamage(int n, Domain *aDomain) : QSpace(n, aDomain), GradientDamageElement()
51 // Constructor.
52{
53 nPrimNodes = 8;
54 nPrimVars = 2;
55 nSecNodes = 4;
56 nSecVars = 1;
61}
62
63
64void
65QSpaceGradDamage :: initializeFrom(InputRecord &ir, int priority)
66{
68 Structural3DElement :: initializeFrom(ir, priority);
69}
70
71
72void
73QSpaceGradDamage :: giveDofManDofIDMask(int inode, IntArray &answer) const
74{
75 if ( inode <= 4 ) {
76 answer = {D_u, D_v, D_w, G_0};
77 } else {
78 answer = {D_u, D_v, D_w};
79 }
80}
81
82void
83QSpaceGradDamage :: giveDofManDofIDMask_u(IntArray &answer) const
84{
85 answer = {D_u, D_v, D_w};
86}
87
88
89void
90QSpaceGradDamage :: giveDofManDofIDMask_d(IntArray &answer) const
91{
92
93 /* if ( inode <= 4 ) {
94 answer = {G_0};
95 } else {
96 answer = {};
97 }
98 */
99}
100
101
102
103
104void
105QSpaceGradDamage :: computeGaussPoints()
106// Sets up the array containing the four Gauss points of the receiver.
107{
108 integrationRulesArray.resize(1);
109 integrationRulesArray [ 0 ].reset( new GaussIntegrationRule(1, this, 1, 7) );
110 this->giveCrossSection()->setupIntegrationPoints(* integrationRulesArray [ 0 ], numberOfGaussPoints, this);
111}
112
113
114
115void
116QSpaceGradDamage :: computeNdMatrixAt(GaussPoint *gp, FloatArray &answer)
117{
118 this->interpolation_lin.evalN( answer, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
119}
120
121void
122QSpaceGradDamage :: computeBdMatrixAt(GaussPoint *gp, FloatMatrix &answer)
123{
126 answer.beTranspositionOf(dnx);
127}
128
129}
#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 FEI3dHexaLin interpolation_lin
QSpace(int n, Domain *d)
Definition qspace.C:53
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