OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
cbselement.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 cbselement_h
36 #define cbselement_h
37 
38 #include "fmelement.h"
39 
41 
42 #define _IFT_CBSElement_bsides "bsides"
43 #define _IFT_CBSElement_bcodes "bcodes"
44 
45 
46 namespace oofem {
47 class TimeStep;
48 class GaussPoint;
49 class FloatMatrix;
50 class FloatArray;
51 
56 class CBSElement : public FMElement
57 {
58 protected:
63 
64 public:
65  CBSElement(int n, Domain * aDomain);
66  virtual ~CBSElement();
67 
69  virtual void giveInputRecord(DynamicInputRecord &input);
70 
71  virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep);
72  virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep);
73 
75  virtual void computeConsistentMassMtrx(FloatMatrix &answer, TimeStep *tStep) = 0;
77  virtual void computeDiagonalMassMtrx(FloatArray &answer, TimeStep *tStep) = 0;
79  virtual void computePrescribedTermsI(FloatArray &answer, TimeStep *tStep);
80  /* Calculates rhs due to prescribed density/pressure. */
81  //virtual void computePrescribedTermsII(FloatArray& answer, ValueModeType, TimeStep*);
83  virtual void computeConvectionTermsI(FloatArray &answer, TimeStep *tStep) = 0;
85  virtual void computeDiffusionTermsI(FloatArray &answer, TimeStep *tStep) = 0;
87  virtual void computeDensityRhsVelocityTerms(FloatArray &answer, TimeStep *tStep) = 0;
89  virtual void computeDensityRhsPressureTerms(FloatArray &answer, TimeStep *tStep) = 0;
91  virtual void computePrescribedTractionPressure(FloatArray &answer, TimeStep *tStep) = 0;
95  virtual void computePressureLhs(FloatMatrix &answer, TimeStep *tStep) = 0;
97  virtual void computeCorrectionRhs(FloatArray &answer, TimeStep *tStep) = 0;
99  virtual double computeCriticalTimeStep(TimeStep *tStep) = 0;
100 
101  // time step termination
102  virtual void updateInternalState(TimeStep *tStep);
103  virtual int checkConsistency();
104 
105 #ifdef __OOFEG
107  int node, TimeStep *tStep);
108 #endif
109 
110 protected:
112  virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) = 0;
113 };
114 } // end namespace oofem
115 #endif // cbselement_h
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: cbselement.C:168
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual double computeCriticalTimeStep(TimeStep *tStep)=0
Calculates critical time step.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: cbselement.C:72
Class and object Domain.
Definition: domain.h:115
virtual void computeCorrectionRhs(FloatArray &answer, TimeStep *tStep)=0
Calculates the RHS of velocity correction step.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: cbselement.C:58
IntArray boundarySides
Array of boundary sides.
Definition: cbselement.h:60
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
IntArray boundaryCodes
Boundary sides codes.
Definition: cbselement.h:62
virtual void computeConvectionTermsI(FloatArray &answer, TimeStep *tStep)=0
Calculates convection component for (*) velocities.
virtual void computeNumberOfNodalPrescribedTractionPressureContributions(FloatArray &answer, TimeStep *tStep)=0
Computes number of edges/sides with prescribed traction contributing to node with prescribed pressure...
virtual void computePrescribedTractionPressure(FloatArray &answer, TimeStep *tStep)=0
Computes prescribed pressure due to applied tractions.
virtual void computeDiagonalMassMtrx(FloatArray &answer, TimeStep *tStep)=0
Calculates diagonal mass matrix.
Class implementing an array of integers.
Definition: intarray.h:61
virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep)
Computes characteristic matrix of receiver of requested type in given time step.
Definition: cbselement.C:83
CBSElement(int n, Domain *aDomain)
Definition: cbselement.C:49
virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)=0
Computes deviatoric stress vector in given integration point and solution step from given total strai...
virtual void computeConsistentMassMtrx(FloatMatrix &answer, TimeStep *tStep)=0
Calculates consistent mass matrix.
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
virtual void computeDensityRhsPressureTerms(FloatArray &answer, TimeStep *tStep)=0
Computes pressure terms on RHS for density equation.
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual void updateInternalState(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: cbselement.C:153
CharType
Definition: chartype.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.
Definition: cbselement.C:98
This abstract class represent a general base element class for fluid dynamic problems solved using CB...
Definition: cbselement.h:56
Class representing the a dynamic Input Record.
virtual void computePrescribedTermsI(FloatArray &answer, TimeStep *tStep)
Calculates rhs due to prescribed (*) velocities for (*) velocities.
Definition: cbselement.C:116
virtual int checkConsistency()
Performs consistency check.
Definition: cbselement.C:140
virtual ~CBSElement()
Definition: cbselement.C:54
virtual void computePressureLhs(FloatMatrix &answer, TimeStep *tStep)=0
Calculates the pressure LHS.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void computeDiffusionTermsI(FloatArray &answer, TimeStep *tStep)=0
Calculates contribution from diffusion terms for (*) velocities.
virtual void computeDensityRhsVelocityTerms(FloatArray &answer, TimeStep *tStep)=0
Computes velocity terms on RHS for density equation.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
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:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011