OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
concrete2.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 concrete2_h
36 #define concrete2_h
37 
38 #include "femcmpnn.h"
39 #include "dictionary.h"
40 #include "material.h"
43 #include "floatarray.h"
44 #include "../sm/Materials/structuralms.h"
45 
47 
48 #define _IFT_Concrete2_Name "concrete2"
49 #define _IFT_Concrete2_e "e"
50 #define _IFT_Concrete2_n "n"
51 #define _IFT_Concrete2_sccc "sccc"
52 #define _IFT_Concrete2_scct "scct"
53 #define _IFT_Concrete2_epp "epp"
54 #define _IFT_Concrete2_epu "epu"
55 #define _IFT_Concrete2_eopp "eopp"
56 #define _IFT_Concrete2_eopu "eopu"
57 #define _IFT_Concrete2_sheartol "sheartol"
58 #define _IFT_Concrete2_is_plastic_flow "is_plastic_flow"
59 #define _IFT_Concrete2_ifad "ifad"
60 #define _IFT_Concrete2_stirr_e "stirr_e"
61 #define _IFT_Concrete2_stirr_ft "stirr_ft"
62 #define _IFT_Concrete2_stirr_a "stirr_a"
63 #define _IFT_Concrete2_stirr_tol "stirr_tol"
64 #define _IFT_Concrete2_stirr_eref "stirr_eref"
65 #define _IFT_Concrete2_stirr_lambda "stirr_lambda"
66 
67 
68 namespace oofem {
69 #define c2_SCCC 300
70 #define c2_SCCT 301
71 #define c2_EPP 302
72 #define c2_EPU 303
73 #define c2_EOPP 304
74 #define c2_EOPU 305
75 #define c2_SHEARTOL 306
76 #define c2_E 307
77 #define c2_n 308
78 #define stirr_E 309
79 #define stirr_Ft 310
80 #define stirr_A 311
81 #define stirr_TOL 312
82 #define stirr_EREF 313
83 #define stirr_LAMBDA 314
84 #define c2_IS_PLASTIC_FLOW 315
85 #define c2_IFAD 316
86 
91 {
92 protected:
95 
97 
98  double SCCM;
99  double EPM;
100  double SCTM;
101  double E0PM;
102  double SRF;
103  double SEZ;
104 
105 public:
106  Concrete2MaterialStatus(int n, Domain * d, GaussPoint * g);
107  virtual ~Concrete2MaterialStatus();
108  virtual void printOutputAt(FILE *file, TimeStep *tStep)
110 
113  { return plasticStrainIncrementVector; }
115  { plasticStrainVector = std :: move(v); }
117  { plasticStrainIncrementVector = std :: move(v); }
118 
120  double &giveTempMaxEffPlasticStrain() { return tempEPM; }
123  double &giveTempCurrentStrainInZDir() { return tempSEZ; }
124  double &giveTempMaxVolPlasticStrain() { return tempE0PM; }
125 
126  // query for non-tem variables (usefull for postprocessing)
127  double &giveCurrentPressureStrength() { return SCCM; }
128  double &giveMaxEffPlasticStrain() { return EPM; }
129  double &giveCurrentTensionStrength() { return SCTM; }
130  double &giveCurrentStressInStirrups() { return SRF; }
131  double &giveCurrentStrainInZDir() { return SEZ; }
132  double &giveMaxVolPlasticStrain() { return E0PM; }
133 
134 
135  virtual void initTempStatus();
136  virtual void updateYourself(TimeStep *tStep);
137 
138  // saves current context(state) into stream
139  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
140  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
141 
142  // definition
143  virtual const char *giveClassName() const { return "Concrete2MaterialStatus"; }
144 };
145 
146 
153 {
154 private:
155  double SCCC;
156  double SCCT;
157  double EPP;
158  double EPU;
159  double EOPP;
160  double EOPU;
161 
167  double SHEARTOL;
168 
169  double E, n;
170  // stirrups
171  double stirrE, stirrFt, stirrA, stirrTOL, stirrEREF, stirrLAMBDA;
175  int IFAD;
176 
178 
179 public:
180  Concrete2(int n, Domain * d);
181  virtual ~Concrete2();
182 
183  virtual void giveRealStressVector_PlateLayer(FloatArray &answer, GaussPoint *gp,
184  const FloatArray &, TimeStep *tStep);
185 
186  virtual void givePlateLayerStiffMtrx(FloatMatrix &answer,
187  MatResponseMode mode,
188  GaussPoint *gp,
189  TimeStep *tStep);
190 
191  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
192 
193 protected:
194  void dtp3(GaussPoint *gp, FloatArray &e, FloatArray &s, FloatArray &ep,
195  double SCC, double SCT, int *ifplas);
196  void dtp2(GaussPoint *gp, FloatArray &e, FloatArray &s, FloatArray &ep,
197  double SCC, double SCT, int *ifplas);
198  void stirr(double dez, double srf);
199  void strsoft(GaussPoint *gp, double epsult, FloatArray &ep, double &ep1,
200  double &ep2, double &ep3, double SCC, double SCT, int &ifupd);
201 
202  // two functions used to initialize and updating temporary variables in
203  // gp's status. These variables are used to control process, when
204  // we try to find equilibrium state.
205  void updateStirrups(GaussPoint *gp, FloatArray &strainIncrement, TimeStep *tStep);
206 
207 public:
208  virtual double give(int, GaussPoint *gp);
209 
210  // identification and auxiliary functions
211  virtual int hasNonLinearBehaviour() { return 1; }
212  virtual const char *giveClassName() const { return "Concrete2"; }
213  virtual const char *giveInputRecordName() const { return _IFT_Concrete2_Name; }
215 };
216 } // end namespace oofem
217 #endif // concrete2_h
double SCTM
Current tension strength.
Definition: concrete2.h:100
double & giveCurrentStressInStirrups()
Definition: concrete2.h:130
double SHEARTOL
Threshold value of the relative shear deformation (psi^2/eef) at which shear is considered in layers...
Definition: concrete2.h:167
int IFAD
Determines if state variables should be updated or not (>0 updates).
Definition: concrete2.h:175
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: concrete2.C:1373
#define _IFT_Concrete2_Name
Definition: concrete2.h:48
Concrete2MaterialStatus(int n, Domain *d, GaussPoint *g)
Definition: concrete2.C:1261
void letPlasticStrainVectorBe(FloatArray v)
Definition: concrete2.h:114
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
double & giveTempMaxVolPlasticStrain()
Definition: concrete2.h:124
This class implements a structural material status information.
Definition: structuralms.h:65
double SEZ
Current strain in transverse (z) direction.
Definition: concrete2.h:103
NonLinear elasto-plastic material model with hardening.
Definition: concrete2.h:152
const FloatArray & givePlasticStrainIncrementVector() const
Definition: concrete2.h:112
double SCCM
Current pressure strength.
Definition: concrete2.h:98
virtual const char * giveClassName() const
Definition: concrete2.h:143
double SCCT
Tension strength.
Definition: concrete2.h:156
double SCCC
Pressure strength.
Definition: concrete2.h:155
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: structuralms.C:73
MatResponseMode
Describes the character of characteristic material matrix.
This class is a abstract base class for all linear elastic material models in a finite element proble...
virtual const char * giveClassName() const
Definition: concrete2.h:212
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: concrete2.h:108
double EPP
Threshold eff. plastic strain for softening in compress.
Definition: concrete2.h:157
double & giveTempCurrentTensionStrength()
Definition: concrete2.h:121
LinearElasticMaterial * linearElasticMaterial
Definition: concrete2.h:177
#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
This class implements an abstract base material, which behaves according to deformation theory...
double EPU
Ultimate eff. pl. strain.
Definition: concrete2.h:158
FloatArray plasticStrainIncrementVector
Definition: concrete2.h:94
double & giveTempMaxEffPlasticStrain()
Definition: concrete2.h:120
double & giveTempCurrentPressureStrength()
Definition: concrete2.h:119
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: concrete2.C:1403
double E0PM
Max. vol. plastic strain.
Definition: concrete2.h:101
virtual const char * giveInputRecordName() const
Definition: concrete2.h:213
const FloatArray & givePlasticStrainVector() const
Definition: concrete2.h:111
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
void letPlasticStrainIncrementVectorBe(FloatArray v)
Definition: concrete2.h:116
double SRF
current stress in stirrups.
Definition: concrete2.h:102
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: concrete2.C:1326
double & giveTempCurrentStrainInZDir()
Definition: concrete2.h:123
double EOPU
Ultimate vol. pl. strain.
Definition: concrete2.h:160
virtual int hasNonLinearBehaviour()
Returns nonzero if receiver is non linear.
Definition: concrete2.h:211
Class representing the general Input Record.
Definition: inputrecord.h:101
double & giveCurrentPressureStrength()
Definition: concrete2.h:127
double & giveTempCurrentStressInStirrups()
Definition: concrete2.h:122
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
double EOPP
Threshold volumetric plastic strain for soft. in tension.
Definition: concrete2.h:159
This class implements associated Material Status to Concrete2Material.
Definition: concrete2.h:90
double & giveCurrentTensionStrength()
Definition: concrete2.h:129
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: concrete2.C:1280
double EPM
Max. eff. plastic strain.
Definition: concrete2.h:99
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
int IS_PLASTIC_FLOW
Indicates that plastic flow (not deformation theory) is used in pressure.
Definition: concrete2.h:173

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