OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
misesmatgrad.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 MisesMatGrad_h
36 
37 #include "Materials/misesmat.h"
39 #include "cltypes.h"
40 
42 
43 #define _IFT_MisesMatGrad_Name "misesmatgrad"
44 #define _IFT_MisesMatGrad_l "l"
45 #define _IFT_MisesMatGrad_m "m"
46 
47 
48 namespace oofem {
53 {
54 protected:
56 
57 public:
58  MisesMatGradStatus(int n, Domain * d, GaussPoint * g);
59  virtual ~MisesMatGradStatus();
60 
61  virtual void printOutputAt(FILE *file, TimeStep *tStep);
62 
63  // definition
64  virtual const char *giveClassName() const { return "MisesMatGradStatus"; }
65 
66  virtual void initTempStatus();
67  virtual void updateYourself(TimeStep *tStep);
68 
70  virtual void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain) { this->nonlocalCumulatedStrain = nonlocalCumulatedStrain; }
71 };
72 
73 
78 {
79 protected:
80  double L;
81  double mParam;
82 
83 public:
84  MisesMatGrad(int n, Domain * d);
85  virtual ~MisesMatGrad();
86 
87  // definition
88  virtual const char *giveInputRecordName() const { return _IFT_MisesMatGrad_Name; }
89  virtual const char *giveClassName() const { return "MisesMatGrad"; }
90 
92  virtual int hasMaterialModeCapability(MaterialMode mode);
93 
96  return static_cast< GradDpMaterialExtensionInterface * >(this);
97  } else {
98  return NULL;
99  }
100  }
101 
102  virtual void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
103 
104  virtual void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep);
105  virtual void givePlaneStrainStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep);
106  virtual void give3dMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep);
107 
108  virtual void givePDGradMatrix_uu(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
109  virtual void givePDGradMatrix_ku(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
110  virtual void givePDGradMatrix_uk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
111  virtual void givePDGradMatrix_kk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
112  virtual void givePDGradMatrix_LD(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
113  virtual void giveRealStressVectorGrad(FloatArray &answer1, double &answer2, GaussPoint *gp, const FloatArray &totalStrain, double nonlocalCumulatedStrain, TimeStep *tStep);
114 
115 
116  void give1dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
117  void givePlaneStrainKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
118  void give3dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
119 
120  void give1dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
121  void givePlaneStrainGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
122  void give3dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
123 
124  void giveInternalLength(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
125 
126 
127  virtual void computeCumPlastStrain(double &kappa, GaussPoint *gp, TimeStep *tStep);
128  void performPlasticityReturn(GaussPoint *gp, const FloatArray &totalStrain);
129  LinearElasticMaterial *giveLinearElasticMaterial() { return linearElasticMaterial; }
130 
131 protected:
132  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const { return new MisesMatGradStatus(1, MisesMat :: domain, gp); }
133 };
134 } // end namespace oofem
135 #define MisesMatGrad_h
136 #endif
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: misesmatgrad.h:132
Gradient Mises maaterial status.
Definition: misesmatgrad.h:52
This class implements an isotropic elastoplastic material with Mises yield condition, associated flow rule and linear isotropic hardening.
Definition: misesmat.h:72
virtual const char * giveClassName() const
Definition: misesmatgrad.h:89
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
virtual void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain)
Definition: misesmatgrad.h:70
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
MatResponseMode
Describes the character of characteristic material matrix.
This class is a abstract base class for all linear elastic material models in a finite element proble...
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: misesmatgrad.h:94
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: misesmatgrad.C:559
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual const char * giveInputRecordName() const
Definition: misesmatgrad.h:88
Material interface for gradient material models.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver&#39;s output to given stream.
Definition: misesmatgrad.C:521
#define _IFT_MisesMatGrad_Name
Definition: misesmatgrad.h:43
virtual double giveNonlocalCumulatedStrain()
Definition: misesmatgrad.h:69
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
double kappa
Cumulative plastic strain (initial).
Definition: misesmat.h:169
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
LinearElasticMaterial * giveLinearElasticMaterial()
Definition: misesmatgrad.h:129
Gradient Mises material.
Definition: misesmatgrad.h:77
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
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
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveClassName() const
Definition: misesmatgrad.h:64
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: misesmatgrad.C:531
MisesMatGradStatus(int n, Domain *d, GaussPoint *g)
Definition: misesmatgrad.C:509

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