OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
rcsde.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 // ***************************************************************************************************************
36 // *** CLASS ROTATING SMEARED CRACK MODEL WITH TRANSITION TO SCALAR DAMAGE WITH EXPONENTIAL SOFTENING ************
37 // ***************************************************************************************************************
38 
39 #ifndef rcsde_h
40 #define rcsde_h
41 
42 #include "rcm2.h"
43 
45 
46 #define _IFT_RCSDEMaterial_Name "rcsde"
47 #define _IFT_RCSDEMaterial_sdtransitioncoeff "sdtransitioncoeff"
48 
49 
50 namespace oofem {
51 #define rcsd_Omega 300
52 #define pscm_SDTransitionCoeff 306
53 #define RCSDE_DAMAGE_EPS 1.e-4
54 
59 {
60 public:
62 
63 protected:
64 
70 public:
71 
72  RCSDEMaterialStatus(int n, Domain * d, GaussPoint * g);
73  virtual ~RCSDEMaterialStatus();
74 
75  virtual void printOutputAt(FILE *file, TimeStep *tStep);
76 
78  void setTempMaxEquivStrain(double val) { tempMaxEquivStrain = val; }
79  // double giveDamageStiffCoeff () {return damageStiffCoeff;}
80  // void setDamageStiffCoeff (double val) {damageStiffCoeff = val;}
81  double giveTempDamageCoeff() { return tempDamageCoeff; }
82  void setTempDamageCoeff(double val) { tempDamageCoeff = val; }
83  const FloatMatrix *giveDs0Matrix() { return & Ds0; }
84  void setDs0Matrix(FloatMatrix &mtrx) { Ds0 = mtrx; }
85 
87  void setTransitionEpsCoeff(double val) { transitionEps = val; }
88  double giveEpsF2Coeff() { return epsF2; }
89  void setEpsF2Coeff(double val) { epsF2 = val; }
90 
92  void setTempMode(__rcsdModeType mode) { tempRcsdMode = mode; }
93 
94  // query for non-tem variables (usefull for postprocessing)
95  double giveMaxEquivStrain() { return maxEquivStrain; }
96  double giveDamageCoeff() { return damageCoeff; }
97 
99  // definition
100  virtual const char *giveClassName() const { return "RCSDEMaterialStatus"; }
101 
102  virtual void initTempStatus();
103  virtual void updateYourself(TimeStep *tStep);
104 
105  // saves current context(state) into stream
106  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
107  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
108 };
109 
110 
119 {
120 protected:
122 
123 public:
124  RCSDEMaterial(int n, Domain * d);
125  virtual ~RCSDEMaterial();
126 
127  // identification and auxiliary functions
128  virtual const char *giveInputRecordName() const { return _IFT_RCSDEMaterial_Name; }
129  virtual const char *giveClassName() const { return "RCSDEMaterial"; }
130 
132 
133  virtual double give(int aProperty, GaussPoint *gp);
134 
135  virtual void giveRealStressVector(FloatArray &answer, GaussPoint *,
136  const FloatArray &, TimeStep *);
137 
138 #ifdef __OOFEG
139 #endif
140 
141  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const { return new RCSDEMaterialStatus(1, domain, gp); }
142 
143 protected:
144  double computeCurrEquivStrain(GaussPoint *, const FloatArray &, double, TimeStep *);
145  // two functions used to initialize and updating temporary variables in
146  // gp's status. These variables are used to control process, when
147  // we try to find equlibrium state.
148 
149  virtual void giveEffectiveMaterialStiffnessMatrix(FloatMatrix &answer,
150  MatResponseMode rMode,
151  GaussPoint *gp, TimeStep *tStep);
152 
153  double computeDamageCoeff(double, double, double);
154  virtual double giveCrackingModulus(MatResponseMode rMode, GaussPoint *gp,
155  double crackStrain, int i);
156  //virtual double giveShearRetentionFactor(GaussPoint* gp, double eps_cr, int i);
157  virtual double giveNormalCrackingStress(GaussPoint *gp, double eps_cr, int i);
158  virtual double giveMinCrackStrainsForFullyOpenCrack(GaussPoint *gp, int i);
159  //virtual void updateStatusForNewCrack( GaussPoint*, int, double);
160  virtual double computeStrength(GaussPoint *, double);
161  virtual int checkSizeLimit(GaussPoint *gp, double);
163 };
164 } // end namespace oofem
165 #endif // rcsde_h
void setTransitionEpsCoeff(double val)
Definition: rcsde.h:87
__rcsdModeType rcsdMode
Definition: rcsde.h:69
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: rcsde.C:517
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
virtual const char * giveInputRecordName() const
Definition: rcsde.h:128
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
double giveTempMaxEquivStrain()
Definition: rcsde.h:77
virtual const char * giveClassName() const
Definition: rcsde.h:129
void setTempMode(__rcsdModeType mode)
Definition: rcsde.h:92
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: rcsde.h:141
void setDs0Matrix(FloatMatrix &mtrx)
Definition: rcsde.h:84
double giveTempDamageCoeff()
Definition: rcsde.h:81
MatResponseMode
Describes the character of characteristic material matrix.
double giveTransitionEpsCoeff()
Definition: rcsde.h:86
__rcsdModeType giveTempMode()
Definition: rcsde.h:91
#define _IFT_RCSDEMaterial_Name
Definition: rcsde.h:46
void setEpsF2Coeff(double val)
Definition: rcsde.h:89
This class implements associated Material Status to RCSDEMaterial.
Definition: rcsde.h:58
This class implements a Rotating Crack Model for fracture in smeared fashion ( only material stiffnes...
Definition: rcm2.h:178
This class implements a Rotating Crack Model with transition to scalar damage for fracture in smeared...
Definition: rcsde.h:118
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: rcsde.C:471
double SDTransitionCoeff
Definition: rcsde.h:121
This class implements associated Material Status to SmearedCrackingMaterail.
Definition: rcm2.h:77
__rcsdModeType giveMode()
Definition: rcsde.h:98
__rcsdModeType tempRcsdMode
Definition: rcsde.h:69
double giveDamageCoeff()
Definition: rcsde.h:96
double giveEpsF2Coeff()
Definition: rcsde.h:88
Abstract base class representing a material status information.
Definition: matstatus.h:84
const FloatMatrix * giveDs0Matrix()
Definition: rcsde.h:83
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 ~RCSDEMaterialStatus()
Definition: rcsde.C:466
void setTempDamageCoeff(double val)
Definition: rcsde.h:82
void setTempMaxEquivStrain(double val)
Definition: rcsde.h:78
virtual const char * giveClassName() const
Definition: rcsde.h:100
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: rcsde.C:532
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: rcsde.C:548
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
double giveMaxEquivStrain()
Definition: rcsde.h:95
Class representing solution step.
Definition: timestep.h:80
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: rcsde.C:593
RCSDEMaterialStatus(int n, Domain *d, GaussPoint *g)
Definition: rcsde.C:456

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