OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 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 tr21stokes_h
36 #define tr21stokes_h
37 
38 #include "fmelement.h"
40 #include "zznodalrecoverymodel.h"
41 #include "spatiallocalizer.h"
42 #include "matresponsemode.h"
43 
44 #define _IFT_Tr21Stokes_Name "tr21stokes"
45 
46 namespace oofem {
47 class FEI2dTrLin;
48 class FEI2dTrQuad;
49 
57 class Tr21Stokes : public FMElement,
61 {
62 protected:
70  static IntArray edge_ordering [ 3 ];
71 
72 public:
73  Tr21Stokes(int n, Domain * d);
74  virtual ~Tr21Stokes();
75 
76  virtual double computeVolumeAround(GaussPoint *gp);
77 
78  virtual void computeGaussPoints();
79 
80  virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep);
81  virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep);
82 
83  void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep);
84  void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
85 
86  void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep);
87  virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep);
88  virtual void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true);
89 
90  virtual const char *giveClassName() const { return "Tr21Stokes"; }
91  virtual const char *giveInputRecordName() const { return _IFT_Tr21Stokes_Name; }
92  virtual MaterialMode giveMaterialMode() { return _2dFlow; }
93 
94  virtual int computeNumberOfDofs();
95 
96  virtual FEInterpolation *giveInterpolation() const;
97  virtual FEInterpolation *giveInterpolation(DofIDItem id) const;
98 
105  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
106 
107  virtual void updateYourself(TimeStep *tStep);
108 
110 
111  virtual void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer);
112 
113  // Nodal averaging interface:
115 };
116 } // end namespace oofem
117 #endif // tr21stokes_h
Tr21Stokes(int n, Domain *d)
Definition: tr21stokes.C:69
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
Class and object Domain.
Definition: domain.h:115
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: tr21stokes.C:365
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Gives the dof ID mask for the element.
Definition: tr21stokes.C:96
static FEI2dTrQuad interpolation_quad
Interpolation for geometry and velocity.
Definition: tr21stokes.h:66
The element interface required by ZZNodalRecoveryModel.
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: tr21stokes.C:358
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 ~Tr21Stokes()
Definition: tr21stokes.C:79
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
Definition: tr21stokes.C:289
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition: tr21stokes.C:176
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: tr21stokes.C:242
virtual const char * giveClassName() const
Definition: tr21stokes.h:90
#define _IFT_Tr21Stokes_Name
Definition: tr21stokes.h:44
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tr21stokes.h:92
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: tr21stokes.C:82
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: tr21stokes.C:105
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Class representing a 2d triangular linear interpolation based on area coordinates.
Definition: fei2dtrlin.h:44
static IntArray momentum_ordering
Ordering of dofs in element. Used to assemble the element stiffness.
Definition: tr21stokes.h:68
Abstract base class representing a boundary load (force, momentum, ...) that acts directly on a bound...
Definition: boundaryload.h:110
virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.
Definition: tr21stokes.C:111
DofIDItem
Type representing particular dof type.
Definition: dofiditem.h:86
static FEI2dTrLin interpolation_lin
Interpolation for pressure.
Definition: tr21stokes.h:64
virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep)
Computes characteristic matrix of receiver of requested type in given time step.
Definition: tr21stokes.C:124
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: tr21stokes.C:403
Triangular Taylor-Hood element for Stokes flow.
Definition: tr21stokes.h:57
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
virtual const char * giveInputRecordName() const
Definition: tr21stokes.h:91
The spatial localizer element interface associated to spatial localizer.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
Definition: tr21stokes.C:135
Second order triangular interpolation in 2D (6 nodes).
Definition: fei2dtrquad.h:44
virtual FEInterpolation * giveInterpolation() const
Definition: tr21stokes.C:344
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: tr21stokes.C:91
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep)
Computes the contribution of the given body load (volumetric).
Definition: tr21stokes.C:209
virtual void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
Definition: tr21stokes.C:382
static IntArray edge_ordering[3]
Ordering of dofs on edges. Used to assemble edge loads.
Definition: tr21stokes.h:70
static IntArray conservation_ordering
Definition: tr21stokes.h:68

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