OOFEM 3.0
Loading...
Searching...
No Matches
tr21_2d_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 - 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 tr21_2d_supg_h
36#define tr21_2d_supg_h
37
38#include "supgelement2.h"
39#include "intarray.h"
43#include "leplic.h"
44#include "levelsetpcs.h"
45
46#define _IFT_TR21_2D_SUPG_Name "tr21supg"
47
48namespace oofem {
49class FEI2dTrQuad;
50class FEI2dTrLin;
51
58{
59protected:
62
63public:
64 TR21_2D_SUPG(int n, Domain * aDomain);
65
66 FEInterpolation *giveInterpolation() const override;
68
69 // definition
70 const char *giveClassName() const override { return "TR21_2D_SUPG"; }
71 const char *giveInputRecordName() const override { return _IFT_TR21_2D_SUPG_Name; }
72 MaterialMode giveMaterialMode() override { return _2dFlow; }
73 Element_Geometry_Type giveGeometryType() const override {return EGT_triangle_2;}
74
75
76 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
77 int computeNumberOfDofs() override;
78 void updateYourself(TimeStep *tStep) override;
80 int checkConsistency() override;
81
82 void saveContext(DataStream &stream, ContextMode mode) override;
83 void restoreContext(DataStream &stream, ContextMode mode) override;
84
85 double LS_PCS_computeF(LevelSetPCS *ls, TimeStep *tStep) override;
86 void LS_PCS_computedN(FloatMatrix &answer) override;
87 double LS_PCS_computeVolume() override;
88 void LS_PCS_computeVolume(double &answer, const FloatArray **coordinates);
89 double LS_PCS_computeS(LevelSetPCS *ls, TimeStep *tStep) override;
90 void LS_PCS_computeVOFFractions(FloatArray &answer, FloatArray &fi) override;
91
92
94 InternalStateType type, TimeStep *tStep) override;
95
97
98 void computeIntersection(int iedge, FloatArray &intcoords, FloatArray &fi);
99 void computeMiddlePointOnParabolicArc(FloatArray &answer, int iedge, FloatArray borderpoints);
100 void computeCenterOf(FloatArray &C, FloatArray c, int dim);
101 void computeQuadraticRoots(FloatArray Coeff, double &r1, double &r2);
102 void computeCoordsOfEdge(FloatArray &answer, int iedge);
103 void computeQuadraticFunct(FloatArray &answer, int iedge);
104 void computeQuadraticFunct(FloatArray &answer, FloatArray line);
106
107 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
108
109#ifdef __OOFEG
111 int node, TimeStep *tStep) override;
112 // Graphics output
113 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
114 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
115 //void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override {}
116#endif
117
118 double computeCriticalTimeStep(TimeStep *tStep) override;
119
120 // three terms for computing their norms due to computing t_supg
121 void computeAdvectionTerm(FloatMatrix &answer, TimeStep *tStep);
122 void computeAdvectionDeltaTerm(FloatMatrix &answer, TimeStep *tStep);
123 void computeMassDeltaTerm(FloatMatrix &answer, TimeStep *tStep);
124 void computeLSICTerm(FloatMatrix &answer, TimeStep *tStep);
125
127
128protected:
129 void giveLocalVelocityDofMap(IntArray &map) override;
130 void giveLocalPressureDofMap(IntArray &map) override;
131
132 void computeGaussPoints() override;
133 void computeDeviatoricStress(FloatArray &answer, const FloatArray &eps, GaussPoint *gp, TimeStep *tStep) override;
134 void computeTangent(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override;
135 void computeNuMatrix(FloatMatrix &answer, GaussPoint *gp) override;
136 void computeUDotGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) override;
137 void computeBMatrix(FloatMatrix &anwer, GaussPoint *gp) override;
138 void computeDivUMatrix(FloatMatrix &answer, GaussPoint *gp) override;
139 void computeNpMatrix(FloatMatrix &answer, GaussPoint *gp) override;
140 void computeGradPMatrix(FloatMatrix &answer, GaussPoint *gp) override;
141 void computeDivTauMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) override;
142 void computeGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) override;
143 int giveNumberOfSpatialDimensions() override;
144 double computeVolumeAround(GaussPoint *gp) override;
145 void initGeometry();
146
147 void updateStabilizationCoeffs(TimeStep *tStep) override;
148};
149} // end namespace oofem
150#endif // tr21_2d_supg_h
SUPGElement2(int n, Domain *aDomain)
void computeDivUMatrix(FloatMatrix &answer, GaussPoint *gp) override
double LS_PCS_computeS(LevelSetPCS *ls, TimeStep *tStep) override
void computeCenterOf(FloatArray &C, FloatArray c, int dim)
Element_Geometry_Type giveGeometryType() const override
void computeNuMatrix(FloatMatrix &answer, GaussPoint *gp) override
void computeIntersection(int iedge, FloatArray &intcoords, FloatArray &fi)
void computeTangent(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override
void saveContext(DataStream &stream, ContextMode mode) override
void computeGradPMatrix(FloatMatrix &answer, GaussPoint *gp) override
void computeAdvectionDeltaTerm(FloatMatrix &answer, TimeStep *tStep)
TR21_2D_SUPG(int n, Domain *aDomain)
void computeNpMatrix(FloatMatrix &answer, GaussPoint *gp) override
void giveLocalVelocityDofMap(IntArray &map) override
void computeQuadraticRoots(FloatArray Coeff, double &r1, double &r2)
int giveNumberOfSpatialDimensions() override
const char * giveClassName() const override
void computeUDotGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) override
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
void LS_PCS_computedN(FloatMatrix &answer) override
int giveInternalStateAtNode(FloatArray &answer, InternalStateType type, InternalStateMode mode, int node, TimeStep *tStep) override
static FEI2dTrLin pressureInterpolation
MaterialMode giveMaterialMode() override
void computeDivTauMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) override
void computeMassDeltaTerm(FloatMatrix &answer, TimeStep *tStep)
double LS_PCS_computeF(LevelSetPCS *ls, TimeStep *tStep) override
void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep) override
void updateYourself(TimeStep *tStep) override
void computeLSICTerm(FloatMatrix &answer, TimeStep *tStep)
void updateStabilizationCoeffs(TimeStep *tStep) override
void giveLocalPressureDofMap(IntArray &map) override
void restoreContext(DataStream &stream, ContextMode mode) override
int computeNumberOfDofs() override
void computeCoordsOfEdge(FloatArray &answer, int iedge)
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeBMatrix(FloatMatrix &anwer, GaussPoint *gp) override
Interface * giveInterface(InterfaceType) override
const char * giveInputRecordName() const override
void computeQuadraticFunct(FloatArray &answer, int iedge)
void computeDeviatoricStress(FloatArray &answer, const FloatArray &eps, GaussPoint *gp, TimeStep *tStep) override
void LS_PCS_computeVOFFractions(FloatArray &answer, FloatArray &fi) override
double computeVolumeAround(GaussPoint *gp) override
FEInterpolation * giveInterpolation() const override
void computeGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) override
static FEI2dTrQuad velocityInterpolation
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
double computeCriticalTimeStep(TimeStep *tStep) override
Computes the critical time increment.
double LS_PCS_computeVolume() override
Returns receiver's volume.
int checkConsistency() override
Used to check consistency and initialize some element geometry data (area,b,c).
void computeMiddlePointOnParabolicArc(FloatArray &answer, int iedge, FloatArray borderpoints)
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
void computeGaussPoints() override
void computeAdvectionTerm(FloatMatrix &answer, TimeStep *tStep)
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
long ContextMode
Definition contextmode.h:43
InternalStateMode
Determines the mode of internal variable.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define _IFT_TR21_2D_SUPG_Name

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