OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
newtonianfluid.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 newtonianfluid_h
36 #define newtonianfluid_h
37 
38 #include "fluiddynamicmaterial.h"
39 #include "floatarray.h"
40 #include "floatmatrix.h"
41 #include "matconst.h"
42 #include "matstatus.h"
43 
45 
46 #define _IFT_NewtonianFluidMaterial_Name "newtonianfluid"
47 #define _IFT_NewtonianFluidMaterial_mu "mu"
48 
49 
50 namespace oofem {
51 class GaussPoint;
52 
57 {
58 protected:
59  double viscosity;
60 
61 public:
70 
71  virtual double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep);
72 
73  virtual void computeDeviatoricStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &eps, TimeStep *tStep);
75 
76  virtual double give(int aProperty, GaussPoint *gp);
78  virtual void giveInputRecord(DynamicInputRecord &input);
79  virtual const char *giveClassName() const { return "NewtonianFluidMaterial"; }
80  virtual const char *giveInputRecordName() const { return _IFT_NewtonianFluidMaterial_Name; }
81  virtual int checkConsistency();
82  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
83 };
84 } // end namespace oofem
85 #endif // newtonianfluid_h
virtual ~NewtonianFluidMaterial()
Destructor.
Class and object Domain.
Definition: domain.h:115
Abstract base class for all fluid materials.
Constitutive model of Newtonian fluid.
Defines several material constant (respective their representative number).
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
virtual const char * giveInputRecordName() const
MatResponseMode
Describes the character of characteristic material matrix.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
NewtonianFluidMaterial(int n, Domain *d)
Constructor.
virtual const char * giveClassName() const
virtual double give(int aProperty, GaussPoint *gp)
Returns the value of material property 'aProperty'.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
#define _IFT_NewtonianFluidMaterial_Name
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
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 computeDeviatoricStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &eps, TimeStep *tStep)
Computes the deviatoric stress vector from given strain.
virtual void giveDeviatoricStiffnessMatrix(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Computes the deviatoric stiffness; .
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep)
Gives the effective viscosity for the given integration point.
Class representing the a dynamic Input Record.
the oofem namespace is to define a context or scope in which all oofem names are defined.
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:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011