OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
mazarsmodel.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 mazarsmodel_h
36 #define mazarsmodel_h
37 
40 #include "../sm/Materials/structuralms.h"
41 
43 
44 #define _IFT_MazarsMaterial_Name "mazarsmodel"
45 #define _IFT_MazarsMaterial_version "version"
46 #define _IFT_MazarsMaterial_e0 "e0"
47 #define _IFT_MazarsMaterial_ac "ac"
48 #define _IFT_MazarsMaterial_bc "bc"
49 #define _IFT_MazarsMaterial_beta "beta"
50 #define _IFT_MazarsMaterial_at "at"
51 #define _IFT_MazarsMaterial_bt "bt"
52 #define _IFT_MazarsMaterial_ef "ef"
53 #define _IFT_MazarsMaterial_r "r"
54 #define _IFT_MazarsMaterial_hreft "hreft"
55 #define _IFT_MazarsMaterial_hrefc "hrefc"
56 
57 
58 namespace oofem {
63 {
64 protected:
66  double lec;
67 
68 public:
70  MazarsMaterialStatus(int n, Domain * d, GaussPoint * g);
72  virtual ~MazarsMaterialStatus() { }
73 
75  double giveLec() { return lec; }
77  void setLec(double ls) { lec = ls; }
78 
79  // definition
80  virtual const char *giveClassName() const { return "MazarsMaterialStatus"; }
81 
82  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
83  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
84 };
85 
86 
96 {
97 protected:
99  double E, nu;
101  double At, Bt, Ac, Bc;
103  double hReft, hRefc;
105  double beta;
106 
108  enum mazarsModelVariant { maz_original, maz_modTension } modelVersion;
109 
110 public:
112  MazarsMaterial(int n, Domain * d);
114  virtual ~MazarsMaterial();
115 
116  // identification and auxiliary functions
117  virtual const char *giveInputRecordName() const { return _IFT_MazarsMaterial_Name; }
118  virtual const char *giveClassName() const { return "MazarsMaterial"; }
119 
121 
122  virtual void computeEquivalentStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
123  virtual void computeDamageParam(double &omega, double kappa, const FloatArray &strain, GaussPoint *gp);
124 
126 
127 protected:
136  virtual void initDamaged(double kappa, FloatArray &totalStrainVector, GaussPoint *gp);
137  /*
138  * Computes elastic stiffness for normal stress components.
139  * @param answer Result of size (3,3).
140  * @param mode Determines the MatResponseMode.
141  * @param gp Integration point.
142  * @param tStep Time step.
143  */
144  /*
145  * void giveNormalElasticStiffnessMatrix(FloatMatrix &answer,
146  * MatResponseMode rMode,
147  * GaussPoint *gp, TimeStep *tStep);
148  */
149 
150  int giveNumberOfSpatialDimensions(GaussPoint *gp);
151  void giveNormalBlockOfElasticCompliance(FloatMatrix &answer, GaussPoint *gp);
152  double computeGt(double kappa, GaussPoint *gp);
153  double computeGc(double kappa, GaussPoint *gp);
154 };
155 } // end namespace oofem
156 #endif // mazarsmodel_h
double giveLec()
Returns characteristic length stored in receiver.
Definition: mazarsmodel.h:75
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
virtual ~MazarsMaterialStatus()
Destructor.
Definition: mazarsmodel.h:72
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
double beta
Beta coefficient reducing the effect of shear; default val = 1.06.
Definition: mazarsmodel.h:105
double kappa
Scalar measure of the largest strain level ever reached in material.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: mazarsmodel.h:125
double lec
Characteristic element length for compression, fixed as square from element size (for 2d)...
Definition: mazarsmodel.h:66
This class implements associated Material Status to IsotropicDamageMaterial1.
Definition: idm1.h:117
double hReft
Reference elem-length for objectivity.
Definition: mazarsmodel.h:103
#define E(p)
Definition: mdm.C:368
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual const char * giveInputRecordName() const
Definition: mazarsmodel.h:117
#define _IFT_MazarsMaterial_Name
Definition: mazarsmodel.h:44
virtual const char * giveClassName() const
Definition: mazarsmodel.h:80
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
mazarsModelVariant
Model variants.
Definition: mazarsmodel.h:108
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: mazarsmodel.C:519
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 contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: mazarsmodel.C:540
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
This class implements a simple local isotropic damage model for concrete in tension.
Definition: idm1.h:137
void setLec(double ls)
Sets characteristic length to given value.
Definition: mazarsmodel.h:77
MazarsMaterialStatus(int n, Domain *d, GaussPoint *g)
Constructor.
Definition: mazarsmodel.C:512
virtual const char * giveClassName() const
Definition: mazarsmodel.h:118
This class implements associated Material Status to MazarsMaterial.
Definition: mazarsmodel.h:62
the oofem namespace is to define a context or scope in which all oofem names are defined.
This class implements a Mazars damage model form concrete.
Definition: mazarsmodel.h:95
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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011