OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
tet1_3d_supg.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 tet1_3d_supg_h
36 #define tet1_3d_supg_h
37 
38 #include "supgelement2.h"
39 #include "levelsetpcs.h"
40 
41 #define _IFT_Tet1_3D_SUPG_Name "tet1supg"
42 
43 namespace oofem {
44 class FEI3dTetLin;
45 
51 {
52 protected:
54 
55 public:
56  Tet1_3D_SUPG(int n, Domain * d);
57  virtual ~Tet1_3D_SUPG();
58 
59  // definition
60  virtual const char *giveClassName() const { return "Tet1_3D_SUPG"; }
61  virtual const char *giveInputRecordName() const { return _IFT_Tet1_3D_SUPG_Name; }
62  virtual MaterialMode giveMaterialMode() { return _3dFlow; }
63  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
64  virtual int computeNumberOfDofs();
65 
67 
68  virtual double computeCriticalTimeStep(TimeStep *tStep);
69  virtual double computeVolumeAround(GaussPoint *gp);
70 
71  virtual void updateStabilizationCoeffs(TimeStep *tStep);
72 
73  virtual double LS_PCS_computeF(LevelSetPCS *, TimeStep *);
74  virtual void LS_PCS_computedN(FloatMatrix &answer);
75  virtual double LS_PCS_computeVolume();
76  virtual double LS_PCS_computeS(LevelSetPCS *, TimeStep *);
77  virtual void LS_PCS_computeVOFFractions(FloatArray &answer, FloatArray &fi);
78 
79 #ifdef __OOFEG
80  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
81 #endif
82 
83 protected:
84  virtual void computeGaussPoints();
85  virtual void computeNuMatrix(FloatMatrix &answer, GaussPoint *gp);
86  virtual void computeUDotGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep);
87  virtual void computeBMatrix(FloatMatrix &anwer, GaussPoint *gp);
88  virtual void computeDivUMatrix(FloatMatrix &answer, GaussPoint *gp);
89  virtual void computeNpMatrix(FloatMatrix &answer, GaussPoint *gp);
90  virtual void computeGradPMatrix(FloatMatrix &answer, GaussPoint *gp);
91  virtual void computeDivTauMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep);
92  virtual void computeGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep);
93  virtual int giveNumberOfSpatialDimensions();
94 };
95 } // end namespace oofem
96 #endif // tet1_3d_supg_h
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: tet1_3d_supg.C:388
Class and object Domain.
Definition: domain.h:115
virtual double LS_PCS_computeVolume()
Returns receiver's volume.
Definition: tet1_3d_supg.C:439
virtual void computeUDotGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)
Definition: tet1_3d_supg.C:125
virtual ~Tet1_3D_SUPG()
Definition: tet1_3d_supg.C:70
virtual const char * giveClassName() const
Definition: tet1_3d_supg.h:60
Element interface for LevelSetPCS class representing level-set like material interface.
Definition: levelsetpcs.h:68
static FEI3dTetLin interpolation
Definition: tet1_3d_supg.h:53
Class representing implementation of linear tetrahedra interpolation class.
Definition: fei3dtetlin.h:44
Class representing 3d linear tetrahedral element for solving incompressible fluid with SUPG solver...
Definition: tet1_3d_supg.h:50
virtual int giveNumberOfSpatialDimensions()
Definition: tet1_3d_supg.C:336
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual void computeDivUMatrix(FloatMatrix &answer, GaussPoint *gp)
Definition: tet1_3d_supg.C:197
virtual void computeDivTauMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)
Definition: tet1_3d_supg.C:145
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: tet1_3d_supg.C:75
Tet1_3D_SUPG(int n, Domain *d)
Definition: tet1_3d_supg.C:63
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: tet1_3d_supg.C:88
virtual void computeGradPMatrix(FloatMatrix &answer, GaussPoint *gp)
Definition: tet1_3d_supg.C:229
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
This abstract class represent a general base element class for fluid dynamic problems.
Definition: supgelement2.h:57
virtual void computeGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)
Definition: tet1_3d_supg.C:153
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: tet1_3d_supg.C:81
virtual void LS_PCS_computeVOFFractions(FloatArray &answer, FloatArray &fi)
Returns VOF fractions for each material on element according to nodal values of level set function (p...
Definition: tet1_3d_supg.C:466
virtual void computeNuMatrix(FloatMatrix &answer, GaussPoint *gp)
Definition: tet1_3d_supg.C:117
virtual double computeCriticalTimeStep(TimeStep *tStep)
Computes the critical time increment.
Definition: tet1_3d_supg.C:342
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: tet1_3d_supg.C:106
virtual const char * giveInputRecordName() const
Definition: tet1_3d_supg.h:61
virtual void computeNpMatrix(FloatMatrix &answer, GaussPoint *gp)
Definition: tet1_3d_supg.C:213
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual void LS_PCS_computedN(FloatMatrix &answer)
Returns gradient of shape functions.
Definition: tet1_3d_supg.C:431
Abstract base class representing Level Set representation of material interfaces. ...
Definition: levelsetpcs.h:114
virtual void updateStabilizationCoeffs(TimeStep *tStep)
Updates the stabilization coefficients used for CBS and SUPG algorithms.
Definition: tet1_3d_supg.C:240
virtual void computeBMatrix(FloatMatrix &anwer, GaussPoint *gp)
Definition: tet1_3d_supg.C:172
Class Interface.
Definition: interface.h:82
virtual double LS_PCS_computeF(LevelSetPCS *, TimeStep *)
Evaluates F in level set equation of the form where for interface position driven by flow with speed...
Definition: tet1_3d_supg.C:403
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual double LS_PCS_computeS(LevelSetPCS *, TimeStep *)
Evaluates S in level set equation of the form where .
Definition: tet1_3d_supg.C:451
#define _IFT_Tet1_3D_SUPG_Name
Definition: tet1_3d_supg.h:41
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tet1_3d_supg.h:62
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: tet1_3d_supg.C:648
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80

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