OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
steelrelaxmat.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 steelrelaxmat_h
36 #define steelrelaxmat_h
37 
38 #include "../sm/Materials/structuralmaterial.h"
39 #include "../sm/Materials/structuralms.h"
40 #include "dictionary.h"
41 #include "floatarray.h"
42 #include "floatmatrix.h"
43 
45 
46 #define _IFT_SteelRelaxMat_Name "steelrelaxmat"
47 #define _IFT_SteelRelaxMat_E "e"
48 #define _IFT_SteelRelaxMat_reinfClass "reinfclass"
49 #define _IFT_SteelRelaxMat_k1 "k1"
50 #define _IFT_SteelRelaxMat_k2 "k2"
51 #define _IFT_SteelRelaxMat_rho1000 "rho1000"
52 #define _IFT_SteelRelaxMat_timeFactor "timefactor"
53 #define _IFT_SteelRelaxMat_charStrength "charstrength"
54 #define _IFT_SteelRelaxMat_approach "approach"
55 #define _IFT_SteelRelaxMat_tolerance "tolerance"
56 #define _IFT_SteelRelaxMat_relRelaxBound "relrelaxbound"
57 
58 
59 namespace oofem {
60 class GaussPoint;
61 class Domain;
62 
81 {
82 protected:
83 
85  double E;
86 
88  double k1;
89 
91  double k2;
92 
94  double rho1000;
95 
97  double mu;
98 
104  double timeFactor;
105 
106  //double stiffnessFactor;
107 
109  double charStrength;
110 
112  double tolerance;
113 
120 
126 
127 
128 
129 public:
130  SteelRelaxMat(int n, Domain *d);
131  virtual ~SteelRelaxMat();
132 
133  virtual void giveRealStressVector_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedE, TimeStep *tStep)
134  { this->giveRealStressVector(answer, gp, reducedE, tStep); }
135 
136  virtual void giveRealStressVector(FloatArray &answer, GaussPoint *gp,
137  const FloatArray &reducedStrain, TimeStep *tStep);
138 
139  virtual void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
140 
141 
145  virtual void giveStressDependentPartOfStrainVector(FloatArray &answer, GaussPoint *gp, const FloatArray &totalStrain,
146  TimeStep *tStep, ValueModeType mode);
150  void computeStressRelaxationStrainVector(FloatArray &answer, GaussPoint *gp, const FloatArray &totalStrain,
151  TimeStep *tStep, ValueModeType mode);
152 
156  void evalStressRelaxationAtConstStrain(double &answer, GaussPoint *gp, double dt);
157 
161  void computeIncrOfPrestressLossAtVarStrain(double &answer, GaussPoint *gp, TimeStep *tStep, double stress);
162 
164 
165  virtual int hasNonLinearBehaviour() { return 1; }
166 
167  virtual int hasMaterialModeCapability(MaterialMode mode);
168 
169  virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) { return true; }
170 
171  virtual const char *giveInputRecordName() const { return _IFT_SteelRelaxMat_Name; }
172  virtual const char *giveClassName() const { return "SteelRelaxMat"; }
173 
174  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
175 
176  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
177 };
178 
179 //=============================================================================
180 
181 
183 {
184 protected:
185 
192 
193  double prestress;
194 
195 public:
196  SteelRelaxMatStatus(int n, Domain *d, GaussPoint *g);
197  virtual ~SteelRelaxMatStatus();
198 
199 
200 
201  void setTempRelaxIntVariable(double src) { tempRelaxIntVariable = src; }
202  double giveTempRelaxIntVariable(void) { return tempRelaxIntVariable; }
203  double giveRelaxIntVariable(void) { return relaxIntVariable; }
204 
205  void setPrestress(double src) { prestress = src; }
206  double givePrestress(void) { return prestress; }
207 
208 
209  virtual void printOutputAt(FILE *file, TimeStep *tStep);
210 
211  virtual void initTempStatus();
212 
213  virtual void updateYourself(TimeStep *tStep);
214 
215  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
216  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
217 
218  virtual const char *giveClassName() const { return "SteelRelaxMatStatus"; }
219 };
220 } // end namespace oofem
221 #endif // steelrelaxmat_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual int hasNonLinearBehaviour()
Returns nonzero if receiver is non linear.
enum oofem::SteelRelaxMat::approachType Approach
double k2
constant depending on the reinforcement class
Definition: steelrelaxmat.h:91
Class and object Domain.
Definition: domain.h:115
void computeStressRelaxationStrainVector(FloatArray &answer, GaussPoint *gp, const FloatArray &totalStrain, TimeStep *tStep, ValueModeType mode)
evaluates eigenstrain due to steel relaxation
virtual int hasMaterialModeCapability(MaterialMode mode)
Tests if material supports material mode.
Definition: steelrelaxmat.C:67
Implementation of the material model for steel relaxation given in Eurocode 2 (the same as in Model C...
Definition: steelrelaxmat.h:80
virtual void giveRealStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep)
Computes the real stress vector for given total strain and integration point.
void setTempRelaxIntVariable(double src)
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
double rho1000
constant depending on the reinforcement class
Definition: steelrelaxmat.h:94
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
This class implements a structural material status information.
Definition: structuralms.h:65
double mu
ratio of prestress vs. characteristic strength
Definition: steelrelaxmat.h:97
double giveTempRelaxIntVariable(void)
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode)
Returns true if stiffness matrix of receiver is symmetric Default implementation returns true...
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: femcmpnn.C:51
#define _IFT_SteelRelaxMat_Name
Definition: steelrelaxmat.h:46
double E
Young's modulus.
Definition: steelrelaxmat.h:85
virtual ~SteelRelaxMat()
Definition: steelrelaxmat.C:62
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
MatResponseMode
Describes the character of characteristic material matrix.
virtual const char * giveClassName() const
virtual const char * giveClassName() const
virtual void giveRealStressVector_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedE, TimeStep *tStep)
Default implementation relies on giveRealStressVector_StressControl.
virtual void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing 1d stiffness matrix of receiver.
double charStrength
characteristic strength of prestressing steel in appropriate units (not necessarily MPa) ...
virtual const char * giveInputRecordName() const
double relRelaxBound
Ratio of stress to characteristic strength under which the relaxation is zero (typically 0...
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: steelrelaxmat.C:79
double tolerance
tolerance specifying the residual in the stress evaluation algorithm, default value is $10^{-6}$ ...
virtual void giveStressDependentPartOfStrainVector(FloatArray &answer, GaussPoint *gp, const FloatArray &totalStrain, TimeStep *tStep, ValueModeType mode)
evaluates stress-related strain - subtracts not only temperature strains but also strains caused by s...
approachType
0 = approach according to Ba{z}ant and Yu, 1 = equivalent time approach according to Eurocode 2 and {...
Abstract base class representing a material status information.
Definition: matstatus.h:84
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Class representing vector of real numbers.
Definition: floatarray.h:82
double timeFactor
Scaling factor transforming the actual time into appropriate units needed by the formulae of the euro...
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
void evalStressRelaxationAtConstStrain(double &answer, GaussPoint *gp, double dt)
computes steel relaxation (eurocode formula)
Class representing the general Input Record.
Definition: inputrecord.h:101
double relaxIntVariable
For Bazant's approach this internal variable is a cumulative viscous strain while for Eurocode approa...
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
Definition: femcmpnn.h:171
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
Abstract base class for all "structural" constitutive models.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: femcmpnn.C:64
double giveRelaxIntVariable(void)
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void initTempStatus(GaussPoint *gp)
Initializes temporary variables stored in integration point status at the beginning of new time step...
Definition: material.C:267
void computeIncrOfPrestressLossAtVarStrain(double &answer, GaussPoint *gp, TimeStep *tStep, double stress)
implementation of cumulative time approach according to Eurocode to get prestress loss at variable st...
SteelRelaxMat(int n, Domain *d)
Definition: steelrelaxmat.C:49
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
double k1
constant depending on the reinforcement class
Definition: steelrelaxmat.h:88
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
void setPrestress(double src)

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:31 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011