OOFEM 3.0
Loading...
Searching...
No Matches
quad1planestrainp1.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 "node.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
45
46namespace oofem {
48
49
50Quad1PlaneStrainP1 :: Quad1PlaneStrainP1(int n, Domain *aDomain) : Quad1PlaneStrain(n, aDomain), BaseMixedPressureElement()
51{
53 1, 2, 4, 5, 7, 8, 10, 11
54 };
56 3, 6, 9, 12
57 };
58}
59
60
61
62void
63Quad1PlaneStrainP1 :: computeVolumetricBmatrixAt(GaussPoint *gp, FloatArray &answer, NLStructuralElement *elem)
64{
65 answer.resize(8);
66 FloatMatrix dN;
68 for ( int j = 0, k = 0; j < 4; j++, k += 2 ) {
69 answer(k) = dN(j, 0);
70 answer(k + 1) = dN(j, 1);
71 }
72}
73
74void
75Quad1PlaneStrainP1 :: computePressureNMatrixAt(GaussPoint *gp, FloatArray &answer)
76{
77 NLStructuralElement *elem = this->giveElement();
79}
80
81
82void
83Quad1PlaneStrainP1 :: giveDofManDofIDMask(int inode, IntArray &answer) const
84{
85 answer = {
86 D_u, D_v, P_f
87 };
88}
89
90
91void
92Quad1PlaneStrainP1 :: giveDofManDofIDMask_u(IntArray &answer)
93{
94 answer = {
95 D_u, D_v
96 };
97}
98
99
100void
101Quad1PlaneStrainP1 :: giveDofManDofIDMask_p(IntArray &answer)
102{
103 answer = {
104 P_f
105 };
106}
107
108void
109Quad1PlaneStrainP1 :: postInitialize()
110{
111 BaseMixedPressureElement :: postInitialize();
112 Quad1PlaneStrain :: postInitialize();
113}
114} // end namespace oofem
#define REGISTER_Element(class)
virtual FEInterpolation * giveInterpolation() const
Definition element.h:648
virtual void evalN(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const =0
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
NLStructuralElement * giveElement() override
Pure virtual functions.
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