OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
trabbonegrad3d.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 TrabBoneGrad3D_h
36 #define TrabBoneGrad3D_h
37 
38 #include "trabbone3d.h"
39 #include "../sm/Materials/graddpmaterialextensioninterface.h"
40 #include "cltypes.h"
41 
42 #define _IFT_TrabBoneGrad3D_Name "trabbonegrad3d"
43 #define _IFT_TrabBoneGrad3D_L "l"
44 #define _IFT_TrabBoneGrad3D_m "mParam"
45 
46 namespace oofem {
47 class LinearElasticMaterial;
48 
53 {
54 protected:
56  double nlKappa;
59 
60 public:
61  TrabBoneGrad3DStatus(int n, Domain *d, GaussPoint *g);
62  virtual ~TrabBoneGrad3DStatus();
63 
64  virtual void printOutputAt(FILE *file, TimeStep *tStep);
65 
66  virtual const char *giveClassName() const { return "TrabBoneGrad3DStatus"; }
67 
68 
70  virtual void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain) { this->nonlocalCumulatedStrain = nonlocalCumulatedStrain; }
71 
72  virtual void initTempStatus();
73 
74  virtual void updateYourself(TimeStep *);
75 };
76 
77 
82 {
83 protected:
84  double L;
85  double mParam;
86 
87 public:
88  TrabBoneGrad3D(int n, Domain *d);
89  virtual ~TrabBoneGrad3D();
90 
91  virtual const char *giveClassName() const { return "TrabBoneGrad3D"; }
92  virtual const char *giveInputRecordName() const { return _IFT_TrabBoneGrad3D_Name; }
93 
95  virtual int hasMaterialModeCapability(MaterialMode mode);
98  return static_cast< GradDpMaterialExtensionInterface * >( this );
99  } else {
100  return NULL;
101  }
102  }
103 
104  virtual void givePDGradMatrix_uu(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
105  virtual void givePDGradMatrix_ku(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
106  virtual void givePDGradMatrix_uk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
107  virtual void givePDGradMatrix_kk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
108  virtual void givePDGradMatrix_LD(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
109 
110  virtual void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
111  virtual void give3dMaterialStiffnessMatrix(FloatMatrix & answer, MatResponseMode, GaussPoint * gp, TimeStep * tStep);
112  void give3dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
113  void give3dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
114  void giveInternalLength(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
115  virtual void giveRealStressVectorGrad(FloatArray &answer1, double &answer2, GaussPoint *gp, const FloatArray &totalStrain, double nonlocalCumulatedStrain, TimeStep *tStep);
116  virtual void computeCumPlastStrain(double &kappa, GaussPoint *gp, TimeStep *tStep);
117  void performPlasticityReturn(GaussPoint *gp, const FloatArray &totalStrain);
118  //LinearElasticMaterial *giveLinearElasticMaterial() { return linearElasticMaterial; }
119 
120 protected:
121  // Creates the corresponding material status
123 };
124 } // end namespace oofem
125 
126 #endif
virtual const char * giveClassName() const
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 updateYourself(TimeStep *)
Update equilibrium history variables according to temp-variables.
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
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...
LinearElasticMaterial * linearElasticMaterial
Reference to the basic elastic material.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver&#39;s output to given stream.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
Gradient bone damage-plastic material model.
#define _IFT_TrabBoneGrad3D_Name
Material interface for gradient material models.
virtual const char * giveInputRecordName() const
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain)
TrabBoneGrad3DStatus(int n, Domain *d, GaussPoint *g)
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 Interface * giveInterface(InterfaceType t)
Interface requesting service.
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
virtual double giveNonlocalCumulatedStrain()
This class implements associated Material Status to TrabBone3D (trabecular bone material).
Definition: trabbone3d.h:101
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual const char * giveClassName() const
the oofem namespace is to define a context or scope in which all oofem names are defined.
double nlKappa
Equivalent strain for avaraging.
Gradient bone damage-plastic material status.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80

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