OOFEM 3.0
Loading...
Searching...
No Matches
tr21stokes.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 tr21stokes_h
36#define tr21stokes_h
37
38#include "fmelement.h"
41#include "spatiallocalizer.h"
42#include "matresponsemode.h"
43
44#define _IFT_Tr21Stokes_Name "tr21stokes"
45
46namespace oofem {
47class FEI2dTrLin;
48class FEI2dTrQuad;
49
57class Tr21Stokes : public FMElement,
61{
62protected:
70 static IntArray edge_ordering [ 3 ];
71
72public:
73 Tr21Stokes(int n, Domain * d);
74
75 double computeVolumeAround(GaussPoint *gp) override;
76
77 void computeGaussPoints() override;
78
79 void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override;
80 void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override;
81
83 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
84
86 void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override;
87 void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override;
88
89 const char *giveClassName() const override { return "Tr21Stokes"; }
90 const char *giveInputRecordName() const override { return _IFT_Tr21Stokes_Name; }
91 MaterialMode giveMaterialMode() override { return _2dFlow; }
92 Element_Geometry_Type giveGeometryType() const override {return EGT_triangle_2;}
93
94
95 int computeNumberOfDofs() override;
96
97 FEInterpolation *giveInterpolation() const override;
99
106 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
107
108 void updateYourself(TimeStep *tStep) override;
109
111
112 void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override;
113
114 void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override;
115};
116} // end namespace oofem
117#endif // tr21stokes_h
FMElement(int n, Domain *aDomain)
Definition fmelement.C:38
SpatialLocalizerInterface(Element *element)
const char * giveClassName() const override
Definition tr21stokes.h:89
static IntArray momentum_ordering
Ordering of dofs in element. Used to assemble the element stiffness.
Definition tr21stokes.h:68
Element_Geometry_Type giveGeometryType() const override
Definition tr21stokes.h:92
static IntArray conservation_ordering
Definition tr21stokes.h:68
int computeNumberOfDofs() override
Definition tr21stokes.C:88
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
Definition tr21stokes.C:389
const char * giveInputRecordName() const override
Definition tr21stokes.h:90
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
Definition tr21stokes.C:284
Tr21Stokes(int n, Domain *d)
Definition tr21stokes.C:69
void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override
Definition tr21stokes.C:368
void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override
Definition tr21stokes.C:237
void giveDofManDofIDMask(int inode, IntArray &answer) const override
Definition tr21stokes.C:93
void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override
Definition tr21stokes.C:121
void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override
Definition tr21stokes.C:108
MaterialMode giveMaterialMode() override
Definition tr21stokes.h:91
static FEI2dTrLin interpolation_lin
Interpolation for pressure.
Definition tr21stokes.h:64
static IntArray edge_ordering[3]
Ordering of dofs on edges. Used to assemble edge loads.
Definition tr21stokes.h:70
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition tr21stokes.C:171
double computeVolumeAround(GaussPoint *gp) override
Definition tr21stokes.C:102
Interface * giveInterface(InterfaceType it) override
Definition tr21stokes.C:351
FEInterpolation * giveInterpolation() const override
Definition tr21stokes.C:330
void updateYourself(TimeStep *tStep) override
Definition tr21stokes.C:344
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition tr21stokes.C:132
static FEI2dTrQuad interpolation_quad
Interpolation for geometry and velocity.
Definition tr21stokes.h:66
void computeGaussPoints() override
Definition tr21stokes.C:79
void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override
Definition tr21stokes.C:204
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_Tr21Stokes_Name
Definition tr21stokes.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