OOFEM 3.0
Loading...
Searching...
No Matches
hexa21stokes.h
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
35#ifndef hexa21stokes_h
36#define hexa21stokes_h
37
38#include "fmelement.h"
40#include "spatiallocalizer.h"
41#include "matresponsemode.h"
42
43#define _IFT_Hexa21Stokes_Name "hexa21stokes"
44
45namespace oofem {
46class FEI3dHexaLin;
47class FEI3dHexaTriQuad;
48
54class Hexa21Stokes : public FMElement,
57{
58protected:
68 static IntArray surf_ordering [ 6 ];
69
70public:
71 Hexa21Stokes(int n, Domain * d);
72
73 void computeGaussPoints() override;
74 void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override;
75 void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override;
76
78 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
79
81 void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override;
82 void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override;
83
84 const char *giveClassName() const override { return "Hexa21Stokes"; }
85 const char *giveInputRecordName() const override { return _IFT_Hexa21Stokes_Name; }
86 MaterialMode giveMaterialMode() override { return _3dFlow; }
87 Element_Geometry_Type giveGeometryType() const override {return EGT_hexa_27;}
88
89
90 int computeNumberOfDofs() override;
91
92 FEInterpolation *giveInterpolation() const override;
94
95 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
96
97 void updateYourself(TimeStep *tStep) override;
98
100
101 void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override;
102 // Nodal averaging interface:
103 void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override;
104};
105} // end namespace oofem
106#endif // hexa21stokes_h
FMElement(int n, Domain *aDomain)
Definition fmelement.C:38
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Element_Geometry_Type giveGeometryType() const override
static IntArray surf_ordering[6]
Ordering of dofs on surfaces. Used to assemble edge loads (only momentum balance).
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override
void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override
static FEI3dHexaTriQuad interpolation_quad
Interpolation for geometry and velocity.
Interface * giveInterface(InterfaceType it) override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
void updateYourself(TimeStep *tStep) override
MaterialMode giveMaterialMode() override
void computeGaussPoints() override
const char * giveInputRecordName() const override
static IntArray conservation_ordering
Ordering of conservation dofs in element. Used to assemble the element stiffness.
static FEI3dHexaLin interpolation_lin
Interpolation for pressure.
FEInterpolation * giveInterpolation() const override
const char * giveClassName() const override
void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override
int computeNumberOfDofs() override
static IntArray momentum_ordering
Ordering of momentum balance dofs in element. Used to assemble the element stiffness.
Hexa21Stokes(int n, Domain *d)
SpatialLocalizerInterface(Element *element)
#define _IFT_Hexa21Stokes_Name

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