OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 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 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 
45 namespace oofem {
46 class FEI3dHexaLin;
47 class FEI3dHexaTriQuad;
48 
54 class Hexa21Stokes : public FMElement,
57 {
58 protected:
68  static IntArray surf_ordering [ 6 ];
69 
70 public:
71  Hexa21Stokes(int n, Domain * d);
72  virtual ~Hexa21Stokes();
73 
74  virtual void computeGaussPoints();
75  virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep);
76  virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep);
77 
78  void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep);
79  void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
80 
81  void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep);
82  virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep);
83  virtual void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true);
84 
85  virtual const char *giveClassName() const { return "Hexa21Stokes"; }
86  virtual const char *giveInputRecordName() const { return _IFT_Hexa21Stokes_Name; }
87  virtual MaterialMode giveMaterialMode() { return _3dFlow; }
88 
89  virtual int computeNumberOfDofs();
90 
91  virtual FEInterpolation *giveInterpolation() const;
92  virtual FEInterpolation *giveInterpolation(DofIDItem id) const;
93 
94  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
95 
96  virtual void updateYourself(TimeStep *tStep);
97 
99 
100  virtual void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer);
101  // Nodal averaging interface:
103 };
104 } // end namespace oofem
105 #endif // hexa21stokes_h
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition: hexa21stokes.C:170
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
Class representing implementation of linear hexahedra interpolation class.
Definition: fei3dhexalin.h:44
Class and object Domain.
Definition: domain.h:115
virtual const char * giveClassName() const
Definition: hexa21stokes.h:85
static IntArray momentum_ordering
Ordering of momentum balance dofs in element. Used to assemble the element stiffness.
Definition: hexa21stokes.h:64
static FEI3dHexaLin interpolation_lin
Interpolation for pressure.
Definition: hexa21stokes.h:60
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
static IntArray surf_ordering[6]
Ordering of dofs on surfaces. Used to assemble edge loads (only momentum balance) ...
Definition: hexa21stokes.h:68
Hexa21Stokes(int n, Domain *d)
Definition: hexa21stokes.C:75
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: hexa21stokes.C:233
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual FEInterpolation * giveInterpolation() const
Definition: hexa21stokes.C:335
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: hexa21stokes.C:393
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: hexa21stokes.C:84
virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.
Definition: hexa21stokes.C:107
Abstract base class representing a boundary load (force, momentum, ...) that acts directly on a bound...
Definition: boundaryload.h:110
static FEI3dHexaTriQuad interpolation_quad
Interpolation for geometry and velocity.
Definition: hexa21stokes.h:62
virtual void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
Definition: hexa21stokes.C:371
DofIDItem
Type representing particular dof type.
Definition: dofiditem.h:86
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: hexa21stokes.C:356
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition: hexa21stokes.C:131
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: hexa21stokes.C:98
Hexahedral Taylor-Hood element for Stokes flow.
Definition: hexa21stokes.h:54
virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep)
Computes the contribution of the given body load (volumetric).
Definition: hexa21stokes.C:200
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
CharType
Definition: chartype.h:87
Class Interface.
Definition: interface.h:82
The spatial localizer element interface associated to spatial localizer.
virtual const char * giveInputRecordName() const
Definition: hexa21stokes.h:86
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: hexa21stokes.C:349
Class representing implementation of tri-quadratic hexahedra interpolation class. ...
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
Definition: hexa21stokes.C:280
virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep)
Computes characteristic matrix of receiver of requested type in given time step.
Definition: hexa21stokes.C:120
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define _IFT_Hexa21Stokes_Name
Definition: hexa21stokes.h:43
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: hexa21stokes.C:93
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: hexa21stokes.h:87
Class representing solution step.
Definition: timestep.h:80
static IntArray conservation_ordering
Ordering of conservation dofs in element. Used to assemble the element stiffness. ...
Definition: hexa21stokes.h:66
virtual ~Hexa21Stokes()
Definition: hexa21stokes.C:81

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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011