OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
binghamfluid2.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 binghamfluid2_h
36 #define binghamfluid2_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_BinghamFluidMaterial2_Name "binghamfluid"
47 #define _IFT_BinghamFluidMaterial2_mu0 "mu0"
48 #define _IFT_BinghamFluidMaterial2_tau0 "tau0"
49 #define _IFT_BinghamFluidMaterial2_muinf "muinf"
50 #define _IFT_BinghamFluidMaterial2_stressGrowthRate "stressgrowthrate"
51 
52 
53 namespace oofem {
54 class GaussPoint;
55 
56 #define BINGHAM_DEFAULT_STRESS_GROWTH_RATE 400.0
57 
62 {
63 protected:
70 
71 public:
76 
77  virtual void printOutputAt(FILE *file, TimeStep *tStep);
78 
79  virtual void initTempStatus();
80  virtual void updateYourself(TimeStep *tStep);
81 
82  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
83  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
84 
87  double giveDevStressMagnitude() const { return devStressMagnitude; }
88  double giveDevStrainMagnitude() const { return devStrainMagnitude; }
89 
90  void letTempDevStrainMagnitudeBe(double _val) { temp_devStrainMagnitude = _val; }
91  void letTempDevStressMagnitudeBe(double _val) { temp_devStressMagnitude = _val; }
92 
94  void letTempDeviatoricStrainVectorBe(FloatArray v) { temp_deviatoricStrainVector = std :: move(v); }
95 
96  virtual const char *giveClassName() const { return "BinghamFluidMaterialStatus"; }
97 };
98 
99 
100 
106 {
107 protected:
109  double mu_0;
111  double tau_0;
112  double tau_c;
113  double mu_inf;
114  // Stress growth rate - parameter controlling the shape of regularized model.
116 
117 public:
123  BinghamFluidMaterial2(int n, Domain * d);
126 
127  virtual void computeDeviatoricStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &eps, TimeStep *tStep);
128 
129  virtual void giveDeviatoricStiffnessMatrix(FloatMatrix &answer, MatResponseMode, GaussPoint *gp,
130  TimeStep *tStep);
131 
132  virtual double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep);
133  virtual double give(int aProperty, GaussPoint *gp);
135  virtual void giveInputRecord(DynamicInputRecord &input);
136  virtual const char *giveClassName() const { return "BinghamFluidMaterial2"; }
137  virtual const char *giveInputRecordName() const { return _IFT_BinghamFluidMaterial2_Name; }
138  virtual int checkConsistency();
139  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
140 
141 protected:
142  double computeActualViscosity(double Tau, double shearRate);
143  double computeDevStrainMagnitude(MaterialMode mmode, const FloatArray &epsd);
144  double computeDevStressMagnitude(MaterialMode mmode, const FloatArray &sigd);
145  void computeDeviatoricStrain(FloatArray &answer, const FloatArray &eps, MaterialMode mmode);
146  void computeDeviatoricStress(FloatArray &answer, const FloatArray &deps,
147  double _nu, MaterialMode mmode);
148 
149  void __debug(GaussPoint *gp, TimeStep *tStep);
150 };
151 } // end namespace oofem
152 #endif // binghamfluid2_h
const FloatArray & giveTempDeviatoricStrainVector()
Definition: binghamfluid2.h:93
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
Abstract base class for all fluid materials.
void letTempDevStrainMagnitudeBe(double _val)
Definition: binghamfluid2.h:90
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
Defines several material constant (respective their representative number).
#define _IFT_BinghamFluidMaterial2_Name
Definition: binghamfluid2.h:46
virtual const char * giveClassName() const
Definition: binghamfluid2.h:96
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
virtual const char * giveClassName() const
double giveTempDevStrainMagnitude() const
Definition: binghamfluid2.h:86
BinghamFluidMaterial2Status(int n, Domain *d, GaussPoint *g)
Constructor - creates new BinghamFluidMaterial2Status with number n, belonging to domain d and Integr...
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: femcmpnn.C:77
MatResponseMode
Describes the character of characteristic material matrix.
void letTempDevStressMagnitudeBe(double _val)
Definition: binghamfluid2.h:91
void letTempDeviatoricStrainVectorBe(FloatArray v)
Definition: binghamfluid2.h:94
double devStressMagnitude
Magnitude of deviatoric stresses.
Definition: binghamfluid2.h:67
This class implements a transport material status information.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
Definition: femcmpnn.C:94
Class representing material status for Bingham material.
Definition: binghamfluid2.h:61
FloatArray temp_deviatoricStrainVector
Deviatoric stresses and strains (reduced form).
Definition: binghamfluid2.h:69
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Constitutive model of Bingham fluid for concentrated suspensions and pastes.
Abstract base class representing a material status information.
Definition: matstatus.h:84
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
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
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual ~BinghamFluidMaterial2()
Destructor.
double devStrainMagnitude
Magnitude of deviatoric strains.
Definition: binghamfluid2.h:65
virtual ~BinghamFluidMaterial2Status()
Destructor.
Definition: binghamfluid2.h:75
Class representing the a dynamic Input Record.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
double tau_0
Yield stress.
double giveTempDevStressMagnitude() const
Definition: binghamfluid2.h:85
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
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:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011