OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
rcsd.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 ************
37 // ************************************************************************************
38 
39 #ifndef rcsd_h
40 #define rcsd_h
41 
42 #include "rcm2.h"
43 
45 
46 #define _IFT_RCSDMaterial_Name "rcsd"
47 #define _IFT_RCSDMaterial_sdtransitioncoeff "sdtransitioncoeff"
48 
49 
50 namespace oofem {
51 #define rcsd_Omega 300
52 #define pscm_SDTransitionCoeff 306
53 #define RCSD_DAMAGE_EPS 1.e-4
54 
55 class GaussPoint;
56 
61 {
62 public:
63  enum rcsdMode { rcMode, sdMode };
64 
65 protected:
71 
72 public:
73  RCSDMaterialStatus(int n, Domain * d, GaussPoint * g);
74  virtual ~RCSDMaterialStatus();
75 
76  virtual void printOutputAt(FILE *file, TimeStep *tStep);
77 
79  void setTempMaxEquivStrain(double val) { tempMaxEquivStrain = val; }
81  void setDamageStiffCoeff(double val) { damageStiffCoeff = val; }
82  double giveTempDamageCoeff() { return tempDamageCoeff; }
83  void setTempDamageCoeff(double val) { tempDamageCoeff = val; }
84  const FloatMatrix *giveDs0Matrix() { return & Ds0; }
85  void setDs0Matrix(FloatMatrix &mtrx) { Ds0 = mtrx; }
86  double giveDamageEpsfCoeff() { return depsf; }
87  void setDamageEpsfCoeff(double val) { depsf = val; }
88  double giveDamageEpspCoeff() { return depsp; }
89  void setDamageEpspCoeff(double val) { depsp = val; }
90 
92  void setTempMode(rcsdMode mode) { tempMode = mode; }
93 
94  // query for non-tem variables (usefull for postprocessing)
95  double giveMaxEquivStrain() { return maxEquivStrain; }
96  double giveDamageCoeff() { return damageCoeff; }
97 
98  rcsdMode giveMode() { return mode; }
99 
100  // definition
101  virtual const char *giveClassName() const { return "RCSDMaterialStatus"; }
102 
103  virtual void initTempStatus();
104  virtual void updateYourself(TimeStep *tStep);
105 
106  // saves current context(state) into stream
107  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
108  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
109 };
110 
111 
120 {
121 protected:
123 
124 public:
125  RCSDMaterial(int n, Domain * d);
126  virtual ~RCSDMaterial();
127 
128  // identification and auxiliary functions
129  virtual const char *giveInputRecordName() const { return _IFT_RCSDMaterial_Name; }
130  virtual const char *giveClassName() const { return "RCSDMaterial"; }
131 
133 
134  virtual double give(int aProperty, GaussPoint *gp);
135 
136  virtual void giveRealStressVector(FloatArray &answer, GaussPoint *,
137  const FloatArray &, TimeStep *);
138 
139 #ifdef __OOFEG
140 #endif
141 
142  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const { return new RCSDMaterialStatus(1, domain, gp); }
143 
144 protected:
145  double computeCurrEquivStrain(GaussPoint *, const FloatArray &, double, TimeStep *);
146  // two functions used to initialize and updating temporary variables in
147  // gp's status. These variables are used to control process, when
148  // we try to find equilibrium state.
149 
150  virtual void giveEffectiveMaterialStiffnessMatrix(FloatMatrix &answer,
151  MatResponseMode rMode,
152  GaussPoint *gp, TimeStep *tStep);
153 
154  double computeDamageCoeff(double, double, double, double);
155  virtual double giveCrackingModulus(MatResponseMode rMode, GaussPoint *gp,
156  double crackStrain, int i);
157  //virtual double giveShearRetentionFactor(GaussPoint* gp, double eps_cr, int i);
158  virtual double giveNormalCrackingStress(GaussPoint *gp, double eps_cr, int i);
159  virtual double giveMinCrackStrainsForFullyOpenCrack(GaussPoint *gp, int i);
160  //virtual void updateStatusForNewCrack( GaussPoint*, int, double);
161  virtual double computeStrength(GaussPoint *, double);
162  virtual int checkSizeLimit(GaussPoint *gp, double);
164 };
165 } // end namespace oofem
166 #endif // rcsd_h
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: rcsd.h:142
void setDs0Matrix(FloatMatrix &mtrx)
Definition: rcsd.h:85
void setDamageEpsfCoeff(double val)
Definition: rcsd.h:87
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: rcsd.C:535
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
double giveMaxEquivStrain()
Definition: rcsd.h:95
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
double tempMaxEquivStrain
Definition: rcsd.h:66
FloatMatrix Ds0
Definition: rcsd.h:68
double damageStiffCoeff
Definition: rcsd.h:69
void setDamageEpspCoeff(double val)
Definition: rcsd.h:89
double giveTempDamageCoeff()
Definition: rcsd.h:82
RCSDMaterialStatus(int n, Domain *d, GaussPoint *g)
Definition: rcsd.C:473
virtual const char * giveInputRecordName() const
Definition: rcsd.h:129
MatResponseMode
Describes the character of characteristic material matrix.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: rcsd.C:601
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: rcsd.C:566
This class implements a Rotating Crack Model with transition to scalar damage for fracture in smeared...
Definition: rcsd.h:119
This class implements a Rotating Crack Model for fracture in smeared fashion ( only material stiffnes...
Definition: rcm2.h:178
This class implements associated Material Status to RCSDMaterial.
Definition: rcsd.h:60
virtual const char * giveClassName() const
Definition: rcsd.h:101
rcsdMode giveMode()
Definition: rcsd.h:98
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
double giveTempMaxEquivStrain()
Definition: rcsd.h:78
void setTempMaxEquivStrain(double val)
Definition: rcsd.h:79
This class implements associated Material Status to SmearedCrackingMaterail.
Definition: rcm2.h:77
double tempDamageCoeff
Definition: rcsd.h:67
double giveDamageEpsfCoeff()
Definition: rcsd.h:86
void setTempMode(rcsdMode mode)
Definition: rcsd.h:92
virtual ~RCSDMaterialStatus()
Definition: rcsd.C:483
double giveDamageEpspCoeff()
Definition: rcsd.h:88
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: rcsd.C:488
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
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
double giveDamageCoeff()
Definition: rcsd.h:96
void setTempDamageCoeff(double val)
Definition: rcsd.h:83
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual const char * giveClassName() const
Definition: rcsd.h:130
#define _IFT_RCSDMaterial_Name
Definition: rcsd.h:46
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
const FloatMatrix * giveDs0Matrix()
Definition: rcsd.h:84
double SDTransitionCoeff
Definition: rcsd.h:122
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: rcsd.C:550
rcsdMode giveTempMode()
Definition: rcsd.h:91
Class representing integration point in finite element program.
Definition: gausspoint.h:93
double giveDamageStiffCoeff()
Definition: rcsd.h:80
Class representing solution step.
Definition: timestep.h:80
void setDamageStiffCoeff(double val)
Definition: rcsd.h:81

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