OOFEM 3.0
Loading...
Searching...
No Matches
qtrplanestrainp1.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 "fei2dtrlin.h"
37#include "node.h"
38#include "gausspoint.h"
40#include "floatmatrix.h"
41#include "floatarray.h"
42#include "intarray.h"
43#include "crosssection.h"
44#include "classfactory.h"
45
46
47
48namespace oofem {
50
51FEI2dTrLin QTrPlaneStrainP1 :: interpolation_lin(1, 2);
52
53QTrPlaneStrainP1 :: QTrPlaneStrainP1(int n, Domain *aDomain) : QTrPlaneStrain(n, aDomain), BaseMixedPressureElement()
54{
56 1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15
57 };
59 3, 6, 9
60 };
61}
62
63
64void
65QTrPlaneStrainP1 :: computeVolumetricBmatrixAt(GaussPoint *gp, FloatArray &answer, NLStructuralElement *elem)
66{
67 answer.resize(12);
68 FloatMatrix dN;
70 for ( int j = 0, k = 0; j < 6; j++, k += 2 ) {
71 answer(k) = dN(j, 0);
72 answer(k + 1) = dN(j, 1);
73 }
74}
75
76void
77QTrPlaneStrainP1 :: computePressureNMatrixAt(GaussPoint *gp, FloatArray &answer)
78{
79 this->interpolation_lin.evalN( answer, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
80}
81
82
83void
84QTrPlaneStrainP1 :: giveDofManDofIDMask(int inode, IntArray &answer) const
85{
86 if ( inode <= 3 ) {
87 answer = {
88 D_u, D_v, P_f
89 };
90 } else {
91 answer = {
92 D_u, D_v
93 };
94 }
95}
96
97
98
99void
100QTrPlaneStrainP1 :: giveDofManDofIDMask_u(IntArray &answer)
101{
102 answer = {
103 D_u, D_v
104 };
105}
106
107
108void
109QTrPlaneStrainP1 :: giveDofManDofIDMask_p(IntArray &answer)
110{
111 answer = {
112 P_f
113 };
114}
115
116
117
118void
119QTrPlaneStrainP1 :: postInitialize()
120{
121 BaseMixedPressureElement :: postInitialize();
122 QTrPlaneStrain :: postInitialize();
123}
124} // end namespace oofem
#define REGISTER_Element(class)
virtual FEInterpolation * giveInterpolation() const
Definition element.h:648
virtual double evaldNdx(FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const =0
void resize(Index s)
Definition floatarray.C:94
const FloatArray & giveNaturalCoordinates() const
Returns coordinate array of receiver.
Definition gausspoint.h:138
static FEI2dTrLin interpolation_lin
QTrPlaneStrain(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