OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
masonry02.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 masonry02_h
36 #define masonry02_h
37 
39 
41 
42 #define _IFT_Masonry02_Name "masonry02"
43 #define _IFT_Masonry02_ft0 "ft0"
44 #define _IFT_Masonry02_gfi "gfi"
45 #define _IFT_Masonry02_gfii "gfii"
46 #define _IFT_Masonry02_kn "kn"
47 #define _IFT_Masonry02_ks "ks"
48 #define _IFT_Masonry02_c0 "c0"
49 #define _IFT_Masonry02_tanfi0 "tanfi0"
50 #define _IFT_Masonry02_tanfir "tanfir"
51 #define _IFT_Masonry02_tanpsi "tanpsi"
52 #define _IFT_Masonry02_cnn "cnn"
53 #define _IFT_Masonry02_css "css"
54 #define _IFT_Masonry02_cn "cn"
55 #define _IFT_Masonry02_si "si"
56 #define _IFT_Masonry02_sp "sp"
57 #define _IFT_Masonry02_sm "sm"
58 #define _IFT_Masonry02_sr "sr"
59 #define _IFT_Masonry02_kp "kp"
60 #define _IFT_Masonry02_km "km"
61 #define _IFT_Masonry02_kr "kr"
62 #define _IFT_Masonry02_cplane "cplane"
63 
64 
65 namespace oofem {
66 class Domain;
67 
76 {
77 protected:
79  double ft0;
81  double gfI;
83  double gfII;
85  double tanfir;
87  double tanfi0;
89  double c0;
91  double Cnn, Css, Cn;
92  // double fm;
93 
95  double kn, ks;
96 
98  double tanpsi;
99 
101  double sic, spc, smc, src;
102  double kp, km, kr;
103 public:
104 
105  Masonry02(int n, Domain * d);
106  virtual ~Masonry02();
107 
109  virtual int hasMaterialModeCapability(MaterialMode mode);
110 
111  virtual const char *giveInputRecordName() const { return _IFT_Masonry02_Name; }
112  virtual const char *giveClassName() const { return "Masonry02"; }
113 
114  virtual void giveStiffnessMatrix(FloatMatrix &answer,
115  MatResponseMode mode,
116  GaussPoint *gp,
117  TimeStep *tStep);
118 
119  virtual int giveSizeOfFullHardeningVarsVector() { return 3; }
120  virtual int giveSizeOfReducedHardeningVarsVector(GaussPoint *) const { return 3; }
121 
122  virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) { return false; }
123 
124  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
125 
126 
127 protected:
128  virtual int giveMaxNumberOfActiveYieldConds(GaussPoint *gp) { return 2; }
129  //
130  // yield(YC-like functions) and loading(LC-like functions) criteria specific section
131  //
132 
133  virtual double computeYieldValueAt(GaussPoint *gp, int isurf, const FloatArray &stressVector,
134  const FloatArray &stressSpaceHardeningVars);
135 
136  virtual void computeStressGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp, const FloatArray &stressVector,
137  const FloatArray &stressSpaceHardeningVars);
139  const FloatArray &stress, const FloatArray &dlambda,
140  const FloatArray &dplasticStrain, const IntArray &activeConditionMap);
141  virtual void computeKGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp, FloatArray &fullStressVector,
142  const FloatArray &strainSpaceHardeningVariables);
143 
144  virtual void computeReducedHardeningVarsSigmaGradient(FloatMatrix &answer, GaussPoint *gp, const IntArray &activeConditionMap,
145  const FloatArray &fullStressVector,
146  const FloatArray &strainSpaceHardeningVars,
147  const FloatArray &gamma);
148  virtual void computeReducedHardeningVarsLamGradient(FloatMatrix &answer, GaussPoint *gp, int actSurf,
149  const IntArray &activeConditionMap,
150  const FloatArray &fullStressVector,
151  const FloatArray &strainSpaceHardeningVars,
152  const FloatArray &gamma);
153  virtual int hasHardening() { return 1; }
154 
155  virtual void computeReducedSSGradientMatrix(FloatMatrix &gradientMatrix, int i, GaussPoint *gp, const FloatArray &fullStressVector,
156  const FloatArray &strainSpaceHardeningVariables);
157  virtual void computeReducedSKGradientMatrix(FloatMatrix &gradientMatrix, int i, GaussPoint *gp, const FloatArray &fullStressVector,
158  const FloatArray &strainSpaceHardeningVariables);
159 
160 
162  GaussPoint *gp, TimeStep *tStep);
163 
164  virtual void computeReducedElasticModuli(FloatMatrix &answer, GaussPoint *gp,
165  TimeStep *tStep);
166 
167 
169  double computeF3HardeningLaw(double k);
170  double computeF3HardeningGradient(double k);
171 };
172 } // end namespace oofem
173 #endif // masonry02_h
void give2dInterfaceMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Definition: masonry02.C:512
virtual void computeKGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp, FloatArray &fullStressVector, const FloatArray &strainSpaceHardeningVariables)
Computes the derivative of yield/loading function with respect to vector.
Definition: masonry02.C:347
double kn
Elastic properties.
Definition: masonry02.h:95
Class and object Domain.
Definition: domain.h:115
virtual int giveMaxNumberOfActiveYieldConds(GaussPoint *gp)
Definition: masonry02.h:128
virtual void computeReducedHardeningVarsLamGradient(FloatMatrix &answer, GaussPoint *gp, int actSurf, const IntArray &activeConditionMap, const FloatArray &fullStressVector, const FloatArray &strainSpaceHardeningVars, const FloatArray &gamma)
computes derivative of vector with respect to lambda vector
Definition: masonry02.C:268
virtual void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes the stiffness matrix for giveRealStressVector of receiver in given integration point...
Definition: masonry02.C:493
virtual void computeStressGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp, const FloatArray &stressVector, const FloatArray &stressSpaceHardeningVars)
Computes the stress gradient of yield/loading function (df/d_sigma).
Definition: masonry02.C:159
virtual const char * giveInputRecordName() const
Definition: masonry02.h:111
virtual const char * giveClassName() const
Definition: masonry02.h:112
This class implements an interface masonry model based on non associated multisurface plasticity...
Definition: masonry02.h:75
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
double computeF3HardeningLaw(double k)
Cap mode related functions.
Definition: masonry02.C:555
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
functType
Type that allows to distinguish between yield function and loading function.
double gfII
Mode II GF.
Definition: masonry02.h:83
double c0
Initial cohesion of joint.
Definition: masonry02.h:89
double tanfi0
Initial friction angle.
Definition: masonry02.h:87
virtual void computeStrainHardeningVarsIncrement(FloatArray &answer, GaussPoint *gp, const FloatArray &stress, const FloatArray &dlambda, const FloatArray &dplasticStrain, const IntArray &activeConditionMap)
Computes the increment of strain-space hardening variables.
Definition: masonry02.C:212
virtual int hasMaterialModeCapability(MaterialMode mode)
Tests if material supports material mode.
Definition: masonry02.C:63
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: masonry02.C:475
virtual int giveSizeOfFullHardeningVarsVector()
Definition: masonry02.h:119
#define _IFT_Masonry02_Name
Definition: masonry02.h:42
virtual void computeReducedSKGradientMatrix(FloatMatrix &gradientMatrix, int i, GaussPoint *gp, const FloatArray &fullStressVector, const FloatArray &strainSpaceHardeningVariables)
Computes second derivative of loading function with respect to stress and hardening vars...
Definition: masonry02.C:439
virtual void computeReducedSSGradientMatrix(FloatMatrix &gradientMatrix, int i, GaussPoint *gp, const FloatArray &fullStressVector, const FloatArray &strainSpaceHardeningVariables)
Computes second derivative of loading function with respect to stress.
Definition: masonry02.C:425
double gfI
Mode I GF.
Definition: masonry02.h:81
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: masonry02.C:72
virtual int hasHardening()
Indicates, whether receiver model has hardening/softening behavior or behaves according to perfect pl...
Definition: masonry02.h:153
Masonry02(int n, Domain *d)
Definition: masonry02.C:47
virtual void computeReducedHardeningVarsSigmaGradient(FloatMatrix &answer, GaussPoint *gp, const IntArray &activeConditionMap, const FloatArray &fullStressVector, const FloatArray &strainSpaceHardeningVars, const FloatArray &gamma)
Computes derivative of vector with respect to stress.
Definition: masonry02.C:401
virtual double computeYieldValueAt(GaussPoint *gp, int isurf, const FloatArray &stressVector, const FloatArray &stressSpaceHardeningVars)
Computes the value of yield function.
Definition: masonry02.C:115
Abstract base class representing a material status information.
Definition: matstatus.h:84
virtual int giveSizeOfReducedHardeningVarsVector(GaussPoint *) const
Definition: masonry02.h:120
double sic
Cap mode parameters.
Definition: masonry02.h:101
Class representing vector of real numbers.
Definition: floatarray.h:82
double tanfir
Residual friction angle.
Definition: masonry02.h:85
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 void computeReducedElasticModuli(FloatMatrix &answer, GaussPoint *gp, TimeStep *tStep)
Definition: masonry02.C:528
Class representing the general Input Record.
Definition: inputrecord.h:101
double tanpsi
Dilatancy angle.
Definition: masonry02.h:98
double ft0
Tensile strength.
Definition: masonry02.h:79
double Cnn
Cap mode parameters.
Definition: masonry02.h:91
virtual ~Masonry02()
Definition: masonry02.C:59
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode)
Returns true if stiffness matrix of receiver is symmetric Default implementation returns true...
Definition: masonry02.h:122
the oofem namespace is to define a context or scope in which all oofem names are defined.
double computeF3HardeningGradient(double k)
Definition: masonry02.C:598
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
This class represents a base class for non-associated multisurface plasticity.

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