OOFEM 3.0
Loading...
Searching...
No Matches
tet21stokes.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 tet21stokes_h
36#define tet21stokes_h
37
38#include "fmelement.h"
40#include "spatiallocalizer.h"
42#include "matresponsemode.h"
43
44#define _IFT_Tet21Stokes_Name "tet21stokes"
45
46namespace oofem {
47class FEI3dTetLin;
48class FEI3dTetQuad;
49
55class Tet21Stokes : public FMElement,
59{
60protected:
70 static IntArray surf_ordering [ 4 ];
71
72public:
73 Tet21Stokes(int n, Domain * d);
74
75 void computeGaussPoints() override;
76 void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override;
77 void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override;
78
80 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
81
83 void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override;
84 void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override;
85
86 const char *giveClassName() const override { return "Tet21Stokes"; }
87 const char *giveInputRecordName() const override { return _IFT_Tet21Stokes_Name; }
88 MaterialMode giveMaterialMode() override { return _3dFlow; }
89 Element_Geometry_Type giveGeometryType() const override {return EGT_tetra_2;}
90
91
92 int computeNumberOfDofs() override;
93
94 FEInterpolation *giveInterpolation() const override;
96
103 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
104
105 void updateYourself(TimeStep *tStep) override;
106
108
109 // Element interpolation interface:
111 TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override;
112
113 // Nodal averaging interface:
114 void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override;
115};
116} // end namespace oofem
117#endif // tet21stokes_h
FMElement(int n, Domain *aDomain)
Definition fmelement.C:38
SpatialLocalizerInterface(Element *element)
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override
static IntArray conservation_ordering
Ordering of conservation dofs in element. Used to assemble the element stiffness.
Definition tet21stokes.h:68
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
FEInterpolation * giveInterpolation() const override
void giveDofManDofIDMask(int inode, IntArray &answer) const override
Definition tet21stokes.C:91
static IntArray momentum_ordering
Ordering of momentum balance dofs in element. Used to assemble the element stiffness.
Definition tet21stokes.h:66
int computeNumberOfDofs() override
Definition tet21stokes.C:86
const char * giveClassName() const override
Definition tet21stokes.h:86
static FEI3dTetQuad interpolation_quad
Interpolation for geometry and velocity.
Definition tet21stokes.h:64
void EIPrimaryUnknownMI_computePrimaryUnknownVectorAtLocal(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override
Interface * giveInterface(InterfaceType it) override
static IntArray surf_ordering[4]
Ordering of dofs on surfaces. Used to assemble edge loads (only momentum balance).
Definition tet21stokes.h:70
void updateYourself(TimeStep *tStep) override
static FEI3dTetLin interpolation_lin
Interpolation for pressure.
Definition tet21stokes.h:62
void computeGaussPoints() override
Definition tet21stokes.C:77
void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override
MaterialMode giveMaterialMode() override
Definition tet21stokes.h:88
Element_Geometry_Type giveGeometryType() const override
Definition tet21stokes.h:89
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
const char * giveInputRecordName() const override
Definition tet21stokes.h:87
void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override
Tet21Stokes(int n, Domain *d)
Definition tet21stokes.C:71
#define _IFT_Tet21Stokes_Name
Definition tet21stokes.h:44

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