OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
supgelement2.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 supgelement2_h
36 #define supgelement2_h
37 
38 #include "supgelement.h"
39 
40 namespace oofem {
41 class TimeStep;
42 class Node;
43 class Material;
44 class GaussPoint;
45 class FloatMatrix;
46 class FloatArray;
47 class IntArray;
48 
57 class SUPGElement2 : public SUPGElement
58 {
59 public:
60  SUPGElement2(int n, Domain * aDomain);
61  virtual ~SUPGElement2();
62 
64  virtual void giveInputRecord(DynamicInputRecord &input);
65 
66  // characteristic matrix
67  virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType, TimeStep *tStep);
68  virtual void giveCharacteristicVector(FloatArray &answer, CharType, ValueModeType, TimeStep *tStep);
70 
71  virtual void computeAccelerationTerm_MB(FloatMatrix &answer, TimeStep *tStep);
72  virtual void computeAdvectionTerm_MB(FloatArray &answer, TimeStep *tStep);
73  virtual void computeAdvectionDerivativeTerm_MB(FloatMatrix &answer, TimeStep *tStep);
74  virtual void computeDiffusionTerm_MB(FloatArray &answer, TimeStep *tStep);
75  virtual void computeDiffusionDerivativeTerm_MB(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
76  virtual void computePressureTerm_MB(FloatMatrix &answer, TimeStep *tStep);
77  virtual void computeLSICStabilizationTerm_MB(FloatMatrix &answer, TimeStep *tStep);
78  virtual void computeLinearAdvectionTerm_MC(FloatMatrix &answer, TimeStep *tStep);
79  virtual void computeAdvectionTerm_MC(FloatArray &answer, TimeStep *tStep);
80  virtual void computeAdvectionDerivativeTerm_MC(FloatMatrix &answer, TimeStep *tStep);
81  virtual void computeDiffusionDerivativeTerm_MC(FloatMatrix &answer, TimeStep *tStep);
82  virtual void computeDiffusionTerm_MC(FloatArray &answer, TimeStep *tStep);
83  virtual void computeAccelerationTerm_MC(FloatMatrix &answer, TimeStep *tStep);
84  virtual void computePressureTerm_MC(FloatMatrix &answer, TimeStep *tStep);
85  virtual void computeBCRhsTerm_MB(FloatArray &answer, TimeStep *tStep);
86  virtual void computeBCRhsTerm_MC(FloatArray &answer, TimeStep *tStep);
87  virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep);
88 
89  virtual double computeCriticalTimeStep(TimeStep *tStep) = 0;
90 
91  // time step termination
92  virtual void updateInternalState(TimeStep *tStep);
93  virtual int checkConsistency();
94 
95 #ifdef __OOFEG
97  int node, TimeStep *tStep);
98 #endif
99 
100 protected:
101  virtual void computeDeviatoricStrain(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
102  virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
103  virtual void computeNuMatrix(FloatMatrix &answer, GaussPoint *gp) = 0;
104  virtual void computeUDotGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) = 0;
105  virtual void computeBMatrix(FloatMatrix &anwer, GaussPoint *gp) = 0;
106  virtual void computeDivUMatrix(FloatMatrix &answer, GaussPoint *gp) = 0;
107  virtual void computeNpMatrix(FloatMatrix &answer, GaussPoint *gp) = 0;
108  virtual void computeGradPMatrix(FloatMatrix &answer, GaussPoint *gp) = 0;
109  virtual void computeDivTauMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) = 0;
110  virtual void computeGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep) = 0;
111  virtual int giveNumberOfSpatialDimensions() = 0;
112 
113  //virtual void computeEdgeNuMatrix (FloatMatrix& answer, GaussPoint* gp) = 0;
114  //virtual double computeSurfaceVolumeAround (GaussPoint*, int iedge) = 0;
115  //virtual int computeLoadLBToLRotationMatrix (FloatMatrix& answer, int iedge, GaussPoint* gp) = 0;
116  //virtual void giveEdgeUDofMapping (IntArray& answer, int iedge) = 0;
117  //virtual int giveUApproxOrder () = 0;
118  virtual void computeEdgeLoadVector_MB(FloatArray &answer, Load *load, int id, TimeStep *tStep);
119  virtual void computeSurfaceLoadVector_MB(FloatArray &answer, Load *load, int id, TimeStep *tStep);
120  virtual void computeEdgeLoadVector_MC(FloatArray &answer, Load *load, int id, TimeStep *tStep);
121  virtual void computeSurfaceLoadVector_MC(FloatArray &answer, Load *load, int id, TimeStep *tStep);
122 };
123 } // end namespace oofem
124 #endif // supgelement2_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
Class and object Domain.
Definition: domain.h:115
virtual void computeEdgeLoadVector_MB(FloatArray &answer, Load *load, int id, TimeStep *tStep)
Definition: supgelement2.C:757
virtual void computeLinearAdvectionTerm_MC(FloatMatrix &answer, TimeStep *tStep)
Computes the linear advection term for mass conservation equation.
Definition: supgelement2.C:442
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 void computeBCRhsTerm_MC(FloatArray &answer, TimeStep *tStep)
Computes Rhs terms due to boundary conditions.
Definition: supgelement2.C:656
virtual void computeNpMatrix(FloatMatrix &answer, GaussPoint *gp)=0
virtual void computeAdvectionTerm_MC(FloatArray &answer, TimeStep *tStep)
Computes advection terms for mass conservation equation.
Definition: supgelement2.C:460
virtual void computeGradPMatrix(FloatMatrix &answer, GaussPoint *gp)=0
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: supgelement2.C:66
virtual void computeDeviatoricStrain(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Definition: supgelement2.C:782
virtual double computeCriticalTimeStep(TimeStep *tStep)=0
Computes the critical time increment.
virtual void computeEdgeLoadVector_MC(FloatArray &answer, Load *load, int id, TimeStep *tStep)
Definition: supgelement2.C:769
virtual void updateInternalState(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: supgelement2.C:209
General stabilized SUPG/PSPG element for CFD analysis.
Definition: supgelement.h:58
virtual void computeLSICStabilizationTerm_MB(FloatMatrix &answer, TimeStep *tStep)
Computes SLIC stabilization term for momentum balance equation(s).
Definition: supgelement2.C:423
SUPGElement2(int n, Domain *aDomain)
Definition: supgelement2.C:55
MatResponseMode
Describes the character of characteristic material matrix.
virtual void computeDiffusionDerivativeTerm_MC(FloatMatrix &answer, TimeStep *tStep)
Computes diffusion derivative terms for mass conservation equation.
Definition: supgelement2.C:500
virtual void computePressureTerm_MC(FloatMatrix &answer, TimeStep *tStep)
Computes pressure terms for mass conservation equation.
Definition: supgelement2.C:578
virtual void computeSurfaceLoadVector_MB(FloatArray &answer, Load *load, int id, TimeStep *tStep)
Definition: supgelement2.C:763
This abstract class represent a general base element class for fluid dynamic problems.
Definition: supgelement2.h:57
virtual void computeAccelerationTerm_MC(FloatMatrix &answer, TimeStep *tStep)
Computes acceleration terms for mass conservation equation.
Definition: supgelement2.C:561
virtual void computeDivTauMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)=0
virtual void computeAdvectionDerivativeTerm_MB(FloatMatrix &answer, TimeStep *tStep)
Computes the derivative of advection terms for momentum balance equations(s) with respect to nodal ve...
Definition: supgelement2.C:307
virtual void computePressureTerm_MB(FloatMatrix &answer, TimeStep *tStep)
Computes pressure terms for momentum balance equations(s).
Definition: supgelement2.C:393
virtual int checkConsistency()
Performs consistency check.
Definition: supgelement2.C:196
virtual void computeSurfaceLoadVector_MC(FloatArray &answer, Load *load, int id, TimeStep *tStep)
Definition: supgelement2.C:775
virtual void computeUDotGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)=0
virtual void computeAdvectionTerm_MB(FloatArray &answer, TimeStep *tStep)
Computes nonlinear advection terms for momentum balance equations(s).
Definition: supgelement2.C:280
virtual void computeGradUMatrix(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)=0
virtual void computeDivUMatrix(FloatMatrix &answer, GaussPoint *gp)=0
virtual void computeAdvectionDerivativeTerm_MC(FloatMatrix &answer, TimeStep *tStep)
Computes the derivative of advection terms for mass conservation equation with respect to nodal veloc...
Definition: supgelement2.C:483
int giveInternalStateAtNode(FloatArray &answer, InternalStateType type, InternalStateMode mode, int node, TimeStep *tStep)
Returns internal state variable (like stress,strain) at node of element in Reduced form...
Definition: supgelement2.C:224
virtual void computeAccelerationTerm_MB(FloatMatrix &answer, TimeStep *tStep)
Computes acceleration terms (generalized mass matrix with stabilization terms) for momentum balance e...
Definition: supgelement2.C:259
virtual void computeDiffusionDerivativeTerm_MB(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
Computes the derivative of diffusion terms for momentum balance equations(s) with respect to nodal ve...
Definition: supgelement2.C:365
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Definition: supgelement2.C:793
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual void updateElementForNewInterfacePosition(TimeStep *tStep)
Definition: supgelement2.h:69
virtual void computeBCRhsTerm_MB(FloatArray &answer, TimeStep *tStep)
Computes Rhs terms due to boundary conditions.
Definition: supgelement2.C:597
CharType
Definition: chartype.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void computeDiffusionTerm_MB(FloatArray &answer, TimeStep *tStep)
Computes diffusion terms for momentum balance equations(s).
Definition: supgelement2.C:336
virtual ~SUPGElement2()
Definition: supgelement2.C:61
virtual void computeNuMatrix(FloatMatrix &answer, GaussPoint *gp)=0
virtual void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep)
Computes the contribution of the given body load (volumetric).
Definition: supgelement2.C:711
Class representing the a dynamic Input Record.
virtual void computeBMatrix(FloatMatrix &anwer, GaussPoint *gp)=0
Load is base abstract class for all loads.
Definition: load.h:61
virtual void computeDiffusionTerm_MC(FloatArray &answer, TimeStep *tStep)
Computes diffusion terms for mass conservation equation.
Definition: supgelement2.C:521
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: supgelement2.C:75
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType, TimeStep *tStep)
Computes characteristic matrix of receiver of requested type in given time step.
Definition: supgelement2.C:82
Class representing solution step.
Definition: timestep.h:80
InternalStateMode
Determines the mode of internal variable.
virtual void giveCharacteristicVector(FloatArray &answer, CharType, ValueModeType, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.
Definition: supgelement2.C:123
virtual int giveNumberOfSpatialDimensions()=0

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