OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
isolinearelasticmaterial.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 isolinearelasticmaterial_h
36 #define isolinearelasticmaterial_h
37 
38 #include "linearelasticmaterial.h"
39 #include "dictionary.h"
40 #include "floatarray.h"
41 #include "floatmatrix.h"
42 
44 
46 
47 #define _IFT_IsotropicLinearElasticMaterial_Name "isole"
48 #define _IFT_IsotropicLinearElasticMaterial_e "e"
49 #define _IFT_IsotropicLinearElasticMaterial_n "n"
50 #define _IFT_IsotropicLinearElasticMaterial_talpha "talpha"
51 
52 
53 namespace oofem {
54 class GaussPoint;
55 
71 {
72 protected:
74  double E;
76  double nu;
78  double G;
79 
80 public:
96  IsotropicLinearElasticMaterial(int n, Domain *d, double E, double nu);
99 
107  virtual void giveThermalDilatationVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
108 
109  // identification and auxiliary functions
110  virtual const char *giveClassName() const { return "IsotropicLinearElasticMaterial"; }
111  virtual const char *giveInputRecordName() const { return _IFT_IsotropicLinearElasticMaterial_Name; }
112 
119  virtual void giveInputRecord(DynamicInputRecord &input);
120 
121  virtual double give(int aProperty, GaussPoint *gp);
122 
124  double giveYoungsModulus() { return E; }
125 
127  double givePoissonsRatio() { return nu; }
128 
130  double giveShearModulus() { return G; }
131 
133  double giveBulkModulus() { return E / ( 3. * ( 1. - 2. * nu ) ); }
134 
135  virtual void give3dMaterialStiffnessMatrix(FloatMatrix & answer,
137  GaussPoint * gp,
138  TimeStep * tStep);
139 
140  virtual void givePlaneStressStiffMtrx(FloatMatrix & answer,
142  TimeStep * tStep);
143 
144  virtual void givePlaneStrainStiffMtrx(FloatMatrix & answer,
146  TimeStep * tStep);
147 
148  virtual void give1dStressStiffMtrx(FloatMatrix & answer,
150  TimeStep * tStep);
151 
158  static double computeBulkModulusFromYoungAndPoisson(double young, double nu)
159  {
160  return young / ( 3. * ( 1. - 2. * nu ) );
161  }
162 
169  static double computeShearModulusFromYoungAndPoisson(double young, double nu)
170  {
171  return young / ( 2. * ( 1. + nu ) );
172  }
173 
174 
175  virtual double giveQcElasticParamneter(){return E;}
176  virtual double giveQcPlasticParamneter(){return std::numeric_limits<float>::infinity();}
177 
180  // return static_cast< QCMaterialExtensionInterface * >(this);
181  return this;
182  } else {
183  return NULL;
184  }
185  }
186 
187 
188 };
189 } // end namespace oofem
190 #endif // isolinearelasticmaterial_h
double giveBulkModulus()
Returns the bulk elastic modulus .
virtual void givePlaneStressStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Method for computing plane stress stiffness matrix of receiver.
Class and object Domain.
Definition: domain.h:115
IsotropicLinearElasticMaterial(int n, Domain *d)
Creates a new IsotropicLinearElasticMaterial class instance with given number belonging to domain d...
double giveShearModulus()
Returns the shear elastic modulus .
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...
#define _IFT_IsotropicLinearElasticMaterial_Name
static double computeBulkModulusFromYoungAndPoisson(double young, double nu)
Computes bulk modulus from given Young&#39;s modulus and Poisson&#39;s ratio.
double givePoissonsRatio()
Returns Poisson&#39;s ratio.
virtual const char * giveInputRecordName() const
virtual const char * giveClassName() const
This class implements an isotropic linear elastic material in a finite element problem.
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
virtual void give3dMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Computes full 3d material stiffness matrix at given integration point, time, respecting load history ...
virtual void givePlaneStrainStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Method for computing plane strain stiffness matrix of receiver.
Material interface for gradient material models.
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
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 giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Method for computing 1d stiffness matrix of receiver.
Class Interface.
Definition: interface.h:82
Class representing the a dynamic Input Record.
virtual void giveThermalDilatationVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Returns a vector of coefficients of thermal dilatation in direction of each material principal (local...
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual double give(int aProperty, GaussPoint *gp)
Returns the value of material property &#39;aProperty&#39;.
the oofem namespace is to define a context or scope in which all oofem names are defined.
double giveYoungsModulus()
Returns Young&#39;s modulus.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
static double computeShearModulusFromYoungAndPoisson(double young, double nu)
Computes shear modulus from given Young&#39;s modulus and Poisson&#39;s ratio.

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