OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
j2mat.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 j2mat_h
36 #define j2mat_h
37 
39 
41 
42 #define _IFT_J2Mat_Name "j22mat"
43 #define _IFT_J2Mat_ry "ry"
44 #define _IFT_J2Mat_khm "khm"
45 #define _IFT_J2Mat_ihm "ihm"
46 #define _IFT_J2Mat_rma "rma"
47 
48 
49 namespace oofem {
50 class Domain;
51 
57 class J2Mat : public MPlasticMaterial2
58 {
59 protected:
62  double k;
63 
64 public:
65  J2Mat(int n, Domain * d);
66  virtual ~J2Mat();
67 
69  virtual const char *giveInputRecordName() const { return _IFT_J2Mat_Name; }
70  virtual const char *giveClassName() const { return "J2Mat"; }
71 
73  virtual int giveSizeOfReducedHardeningVarsVector(GaussPoint *gp) const;
74  virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) { return false; }
75 
76  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
77 
78 protected:
79  virtual int giveMaxNumberOfActiveYieldConds(GaussPoint *gp) { return 2; }
80 
81  virtual double computeYieldValueAt(GaussPoint *gp, int isurf, const FloatArray &stressVector,
82  const FloatArray &strainSpaceHardeningVars);
83 
84  virtual void computeStressGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp,
85  const FloatArray &stressVector, const FloatArray &strainSpaceHardeningVars);
86 
88  const FloatArray &stress, const FloatArray &dlambda,
89  const FloatArray &dplasticStrain, const IntArray &activeConditionMap);
90  virtual void computeKGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp, FloatArray &fullStressVector,
91  const FloatArray &strainSpaceHardeningVariables);
92 
93  virtual void computeReducedHardeningVarsSigmaGradient(FloatMatrix &answer, GaussPoint *gp, const IntArray &activeConditionMap,
94  const FloatArray &fullStressVector,
95  const FloatArray &strainSpaceHardeningVars,
96  const FloatArray &gamma);
97  virtual void computeReducedHardeningVarsLamGradient(FloatMatrix &answer, GaussPoint *gp, int actSurf,
98  const IntArray &activeConditionMap,
99  const FloatArray &fullStressVector,
100  const FloatArray &strainSpaceHardeningVars,
101  const FloatArray &gamma);
102  virtual int hasHardening();
103  /* virtual void computeReducedGradientMatrix (FloatMatrix& answer, int isurf,
104  * GaussPoint *gp,
105  * const FloatArray& stressVector,
106  * const FloatArray& stressSpaceHardeningVars) = 0;*/
107  virtual void computeReducedSSGradientMatrix(FloatMatrix &gradientMatrix, int i, GaussPoint *gp, const FloatArray &fullStressVector,
108  const FloatArray &strainSpaceHardeningVariables);
109  virtual void computeReducedSKGradientMatrix(FloatMatrix &gradientMatrix, int i, GaussPoint *gp, const FloatArray &fullStressVector,
110  const FloatArray &strainSpaceHardeningVariables);
111 
112  // auxiliary function
113  static double computeJ2InvariantAt(const FloatArray &stressVector);
114  double giveIsotropicHardeningVar(GaussPoint *gp, const FloatArray &strainSpaceHardeningVars);
115  void giveStressBackVector(FloatArray &answer, GaussPoint *gp, const FloatArray &strainSpaceHardeningVars);
116 };
117 } // end namespace oofem
118 #endif // j2mat_h
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode)
Returns true if stiffness matrix of receiver is symmetric Default implementation returns true...
Definition: j2mat.h:74
Class and object Domain.
Definition: domain.h:115
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: j2mat.C:61
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: j2mat.C:264
int kinematicHardeningFlag
Definition: j2mat.h:60
virtual const char * giveInputRecordName() const
Definition: j2mat.h:69
double isotropicModuli
Definition: j2mat.h:61
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.
virtual int giveMaxNumberOfActiveYieldConds(GaussPoint *gp)
Definition: j2mat.h:79
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: j2mat.C:316
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: j2mat.C:103
double giveIsotropicHardeningVar(GaussPoint *gp, const FloatArray &strainSpaceHardeningVars)
Definition: j2mat.C:491
static double computeJ2InvariantAt(const FloatArray &stressVector)
Definition: j2mat.C:445
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: j2mat.C:236
double k
Definition: j2mat.h:62
Abstract base class representing a material status information.
Definition: matstatus.h:84
virtual int giveSizeOfReducedHardeningVarsVector(GaussPoint *gp) const
Definition: j2mat.C:126
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual double computeYieldValueAt(GaussPoint *gp, int isurf, const FloatArray &stressVector, const FloatArray &strainSpaceHardeningVars)
Computes the value of yield function.
Definition: j2mat.C:144
J2Mat(int n, Domain *d)
Definition: j2mat.C:47
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
void giveStressBackVector(FloatArray &answer, GaussPoint *gp, const FloatArray &strainSpaceHardeningVars)
Definition: j2mat.C:466
virtual const char * giveClassName() const
Definition: j2mat.h:70
virtual void computeStressGradientVector(FloatArray &answer, functType ftype, int isurf, GaussPoint *gp, const FloatArray &stressVector, const FloatArray &strainSpaceHardeningVars)
Computes the stress gradient of yield/loading function (df/d_sigma).
Definition: j2mat.C:168
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: j2mat.C:414
double kinematicModuli
Definition: j2mat.h:61
int isotropicHardeningFlag
Definition: j2mat.h:60
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: j2mat.C:287
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual int giveSizeOfFullHardeningVarsVector()
Definition: j2mat.C:109
virtual int hasHardening()
Indicates, whether receiver model has hardening/softening behavior or behaves according to perfect pl...
Definition: j2mat.C:438
#define _IFT_J2Mat_Name
Definition: j2mat.h:42
Class representing integration point in finite element program.
Definition: gausspoint.h:93
This class represents a base class for non-associated multisurface plasticity.
This class implements a isotropic plastic linear material (J2 plasticity condition is used)...
Definition: j2mat.h:57
virtual ~J2Mat()
Definition: j2mat.C:57
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: j2mat.C:214

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