OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
pfemelement.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 // ********************************************************************************
36 // *** GENERAL ELEMENT CLASS FOR FLUID DYNAMIC PROBLEMS SOLVED WITH PFEM METHOD ***
37 // ********************************************************************************
38 
39 #ifndef pfemelement_h
40 #define pfemelement_h
41 
42 
43 #include "fmelement.h"
44 #include "femcmpnn.h"
45 #include "domain.h"
46 #include "floatmatrix.h"
47 #include "material.h"
48 
49 #include "primaryfield.h"
50 
51 namespace oofem {
52 class TimeStep;
53 class Node;
54 class Material;
55 class GaussPoint;
56 class FloatMatrix;
57 class FloatArray;
58 class IntArray;
59 
66 class PFEMElement : public FMElement
67 {
68 public:
70  PFEMElement(int, Domain *);
72  ~PFEMElement();
73 
76 
77  // characteristic matrix
80 
82  virtual void computeDiagonalMassMtrx(FloatArray &answer, TimeStep *) = 0;
84  virtual void computeDiagonalMassMtrx(FloatMatrix &answer, TimeStep *) = 0;
86  virtual double computeCriticalTimeStep(TimeStep *tStep) = 0;
87 
88  virtual void updateInternalState(TimeStep *tStep);
89  virtual void printOutputAt(FILE *file, TimeStep *tStep);
90  virtual int checkConsistency();
91 
96 
97  void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep);
98 
99 
100  // definition
101  virtual const char *giveClassName() const { return "PFEMElement"; }
102 
104  virtual const IntArray &giveVelocityDofMask() const = 0;
106  virtual const IntArray &givePressureDofMask() const = 0;
107 
108 #ifdef __OOFEG
110  int node, TimeStep *atTime);
111  //
112  // Graphics output
113  //
114  //virtual void drawYourself(oofegGraphicContext&);
115  //virtual void drawRawGeometry(oofegGraphicContext&) {}
116  //virtual void drawDeformedGeometry(oofegGraphicContext&, UnknownType) {}
117 #endif
118 
128  virtual void computeBodyLoadVectorAt(FloatArray &answer, BodyLoad *load, TimeStep *tStep, ValueModeType mode) = 0;
129 
130 
132  virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *) = 0;
134  virtual void computeDeviatoricStressDivergence(FloatArray &answer, TimeStep *atTime) = 0;
136  virtual void computeBMatrix(FloatMatrix &answer, GaussPoint *gp) = 0;
138  virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *atTime) = 0; //K
140  virtual void computePressureLaplacianMatrix(FloatMatrix &answer, TimeStep *atTime) = 0;
142  virtual void computeGradientMatrix(FloatMatrix &answer, TimeStep *atTime) = 0; //G
144  virtual void computeDivergenceMatrix(FloatMatrix &answer, TimeStep *atTime) = 0; //D
146  virtual void computePrescribedRhsVector(FloatArray &answer, TimeStep *tStep, ValueModeType mode) = 0;
147 };
148 } // end namespace oofem
149 #endif // pfemelement_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual void computeBodyLoadVectorAt(FloatArray &answer, BodyLoad *load, TimeStep *tStep, ValueModeType mode)=0
Computes the load vector due to body load acting on receiver, at given time step. ...
virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *)=0
Computes deviatoric stress vector in given integration point and solution step from given total strai...
virtual void computeDiagonalMassMtrx(FloatArray &answer, TimeStep *)=0
Calculates diagonal mass matrix as vector.
Class and object Domain.
Definition: domain.h:115
virtual int checkConsistency()
Performs consistency check.
Definition: pfemelement.C:198
IRResultType initializeFrom(InputRecord *ir)
Initializes receiver acording to object description stored in input record.
Definition: pfemelement.C:69
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 computePrescribedRhsVector(FloatArray &answer, TimeStep *tStep, ValueModeType mode)=0
Calculates the prescribed velocity vector for the right hand side of the pressure equation...
~PFEMElement()
Destructor.
Definition: pfemelement.C:64
void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep)
Computes the contribution of the given body load (volumetric).
Definition: pfemelement.C:182
virtual void updateInternalState(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: pfemelement.C:207
virtual void computeDivergenceMatrix(FloatMatrix &answer, TimeStep *atTime)=0
Calculates the velocity divergence matrix.
virtual int giveInternalStateAtNode(FloatArray &answer, InternalStateType type, InternalStateMode mode, int node, TimeStep *atTime)
Returns internal state variable (like stress,strain) at node of element in Reduced form...
Definition: pfemelement.C:235
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void computePressureLaplacianMatrix(FloatMatrix &answer, TimeStep *atTime)=0
Calculates the pressure laplacian matrix.
void giveCharacteristicMatrix(FloatMatrix &answer, CharType, TimeStep *)
Computes characteristic matrix of receiver of requested type in given time step.
Definition: pfemelement.C:82
virtual double computeCriticalTimeStep(TimeStep *tStep)=0
Calculates critical time step.
This abstract class represent a general base element class for fluid dynamic problems solved using PF...
Definition: pfemelement.h:66
virtual void computeGradientMatrix(FloatMatrix &answer, TimeStep *atTime)=0
Calculates the pressure gradient matrix.
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual const char * giveClassName() const
Definition: pfemelement.h:101
virtual void computeDeviatoricStressDivergence(FloatArray &answer, TimeStep *atTime)=0
Calculates the divergence of the deviatoric stress.
PFEMElement(int, Domain *)
Constructor.
Definition: pfemelement.C:58
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
void giveCharacteristicVector(FloatArray &answer, CharType, ValueModeType, TimeStep *)
Computes characteristic vector of receiver of requested type in given time step.
Definition: pfemelement.C:118
virtual void computeBMatrix(FloatMatrix &answer, GaussPoint *gp)=0
Calculates the element shape function derivative matrix.
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 FEInterpolation * giveVelocityInterpolation()=0
Returns the interpolation for velocity.
virtual FEInterpolation * givePressureInterpolation()=0
Returns the interpolation for the pressure.
CharType
Definition: chartype.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *atTime)=0
Calculates the stiffness matrix.
virtual const IntArray & givePressureDofMask() const =0
Returns mask of pressure Dofs.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const IntArray & giveVelocityDofMask() const =0
Returns mask of velocity Dofs.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
Definition: pfemelement.C:219
InternalStateMode
Determines the mode of internal variable.

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