OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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 
46 namespace oofem {
47 class FEI3dTetLin;
48 class FEI3dTetQuad;
49 
55 class Tet21Stokes : public FMElement,
59 {
60 protected:
70  static IntArray surf_ordering [ 4 ];
71 
72 public:
73  Tet21Stokes(int n, Domain * d);
74  virtual ~Tet21Stokes();
75 
76  virtual void computeGaussPoints();
77  virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep);
78  virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep);
79 
80  void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep);
81  void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
82 
83  void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep);
84  virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep);
85  virtual void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true);
86 
87  virtual const char *giveClassName() const { return "Tet21Stokes"; }
88  virtual const char *giveInputRecordName() const { return _IFT_Tet21Stokes_Name; }
89  virtual MaterialMode giveMaterialMode() { return _3dFlow; }
90 
91  virtual int computeNumberOfDofs();
92 
93  virtual FEInterpolation *giveInterpolation() const;
94  virtual FEInterpolation *giveInterpolation(DofIDItem id) const;
95 
102  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
103 
104  virtual void updateYourself(TimeStep *tStep);
105 
107 
108  // Element interpolation interface:
110  TimeStep *tStep, const FloatArray &coords, FloatArray &answer);
111 
112  // Nodal averaging interface:
114 };
115 } // end namespace oofem
116 #endif // tet21stokes_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.
Definition: tet21stokes.C:103
static FEI3dTetQuad interpolation_quad
Interpolation for geometry and velocity.
Definition: tet21stokes.h:64
Class and object Domain.
Definition: domain.h:115
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: tet21stokes.C:363
virtual const char * giveClassName() const
Definition: tet21stokes.h:87
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: tet21stokes.C:399
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Class implementing element body load, acting over whole element volume (e.g., the dead weight)...
Definition: bodyload.h:49
virtual ~Tet21Stokes()
Definition: tet21stokes.C:77
Class representing implementation of quadratic tetrahedra interpolation class.
Definition: fei3dtetquad.h:46
Class representing implementation of linear tetrahedra interpolation class.
Definition: fei3dtetlin.h:44
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Gives the dof ID mask for the element.
Definition: tet21stokes.C:94
virtual FEInterpolation * giveInterpolation() const
Definition: tet21stokes.C:342
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tet21stokes.h:89
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
Definition: tet21stokes.C:283
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Tet21Stokes(int n, Domain *d)
Definition: tet21stokes.C:71
virtual void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true)
Computes the contribution of the given load at the given boundary surface in global coordinate system...
Definition: tet21stokes.C:235
static IntArray surf_ordering[4]
Ordering of dofs on surfaces. Used to assemble edge loads (only momentum balance) ...
Definition: tet21stokes.h:70
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition: tet21stokes.C:166
Abstract base class representing a boundary load (force, momentum, ...) that acts directly on a bound...
Definition: boundaryload.h:110
DofIDItem
Type representing particular dof type.
Definition: dofiditem.h:86
virtual void EIPrimaryUnknownMI_computePrimaryUnknownVectorAtLocal(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer)
Computes the element vector of primary unknowns at given point in the local coordinate system...
Definition: tet21stokes.C:380
static FEI3dTetLin interpolation_lin
Interpolation for pressure.
Definition: tet21stokes.h:62
virtual const char * giveInputRecordName() const
Definition: tet21stokes.h:88
Class representing vector of real numbers.
Definition: floatarray.h:82
This abstract class represent a general base element class for fluid dynamic problems.
Definition: fmelement.h:54
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
static IntArray conservation_ordering
Ordering of conservation dofs in element. Used to assemble the element stiffness. ...
Definition: tet21stokes.h:68
CharType
Definition: chartype.h:87
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: tet21stokes.C:89
Class Interface.
Definition: interface.h:82
virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep)
Computes the contribution of the given body load (volumetric).
Definition: tet21stokes.C:202
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: tet21stokes.C:356
The spatial localizer element interface associated to spatial localizer.
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition: tet21stokes.C:127
The element interface class related to Element Interpolation Mappers.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
#define _IFT_Tet21Stokes_Name
Definition: tet21stokes.h:44
the oofem namespace is to define a context or scope in which all oofem names are defined.
Tetrahedral Taylor-Hood element for Stokes flow.
Definition: tet21stokes.h:55
Class representing solution step.
Definition: timestep.h:80
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: tet21stokes.C:80
static IntArray momentum_ordering
Ordering of momentum balance dofs in element. Used to assemble the element stiffness.
Definition: tet21stokes.h:66
virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep)
Computes characteristic matrix of receiver of requested type in given time step.
Definition: tet21stokes.C:116

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:31 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011