10 #if !defined(KRATOS_SMALL_STRAIN_ORTHOTROPIC_3D_LAW_H_INCLUDED )
11 #define KRATOS_SMALL_STRAIN_ORTHOTROPIC_3D_LAW_H_INCLUDED
77 ConstitutiveLaw::Pointer
Clone()
const override
79 return Kratos::make_shared<SmallStrainOrthotropic3DLaw>(*
this);
107 GetModelFeatures(rFeatures);
111 rFeatures.
mStrainMeasures.push_back(StrainMeasure_Deformation_Gradient);
143 if( rOptions.Is( ConstitutiveLaw::COMPUTE_STRESS ) ){
147 this->CalculateConstitutiveMatrix( rConstitutiveMatrix, rProperties);
149 this->CalculateStress( rStrainVector, rConstitutiveMatrix, rStressVector );
152 else if( rOptions.Is( ConstitutiveLaw::COMPUTE_CONSTITUTIVE_TENSOR ) ){
155 this->CalculateConstitutiveMatrix(rConstitutiveMatrix, rProperties);
188 const ProcessInfo& rCurrentProcessInfo)
const override
191 if(YOUNG_MODULUS_X.Key() == 0 || !rProperties.
Has(YOUNG_MODULUS_X))
192 KRATOS_ERROR <<
"YOUNG_MODULUS_X has Key zero or invalid value" << std::endl;
194 if(YOUNG_MODULUS_Y.Key() == 0 || !rProperties.
Has(YOUNG_MODULUS_Y))
195 KRATOS_ERROR <<
"YOUNG_MODULUS_Y has Key zero or invalid value" << std::endl;
197 if(YOUNG_MODULUS_Z.Key() == 0 || !rProperties.
Has(YOUNG_MODULUS_Z))
198 KRATOS_ERROR <<
"YOUNG_MODULUS_Z has Key zero or invalid value" << std::endl;
200 if(POISSON_RATIO_XY.Key() == 0 || !rProperties.
Has(POISSON_RATIO_XY))
201 KRATOS_ERROR <<
"POISSON_RATIO_XY has Key zero invalid value" << std::endl;
203 if(POISSON_RATIO_YZ.Key() == 0 || !rProperties.
Has(POISSON_RATIO_YZ))
204 KRATOS_ERROR <<
"POISSON_RATIO_YZ has Key zero invalid value" << std::endl;
206 if(POISSON_RATIO_XZ.Key() == 0 || !rProperties.
Has(POISSON_RATIO_XZ))
207 KRATOS_ERROR <<
"POISSON_RATIO_XZ has Key zero invalid value" << std::endl;
209 if(DENSITY.Key() == 0 || !rProperties.
Has(DENSITY))
210 KRATOS_ERROR <<
"DENSITY has Key zero or invalid value" << std::endl;
223 std::string
Info()
const override
225 std::stringstream buffer;
226 buffer <<
"SmallStrainOrthotropic3DLaw" ;
231 void PrintInfo(std::ostream& rOStream)
const override {rOStream <<
"SmallStrainOrthotropic3DLaw";}
234 void PrintData(std::ostream& rOStream)
const override {}
272 double E1 = rProperties[YOUNG_MODULUS_X];
273 double E2 = rProperties[YOUNG_MODULUS_Y];
274 double E3 = rProperties[YOUNG_MODULUS_Z];
276 double v12 = rProperties[POISSON_RATIO_XY];
277 double v23 = rProperties[POISSON_RATIO_YZ];
278 double v13 = rProperties[POISSON_RATIO_XZ];
280 double P1 = 1.0/(E2*E2*v12*v12 + 2.0*E3*E2*v12*v13*v23 + E3*E2*v13*v13 - E1*E2 + E1*E3*v23*v23);
283 double P4 = E1*v23 + E2*v12*v13;
284 double P5 = E2*v12 + E3*v13*v23;
287 rConstitutiveMatrix(0, 0) = -P1*P2*(- E3*v23*v23 + E2);
288 rConstitutiveMatrix(0, 1) = -E1*E2*P1*P5;
289 rConstitutiveMatrix(0, 2) = -E2*E3*P1*(E1*v13 + E1*v12*v23);
290 rConstitutiveMatrix(1, 0) = -E1*E2*P1*P5;
291 rConstitutiveMatrix(1, 1) = -P1*P3*(- E3*v13*v13 + E1);
292 rConstitutiveMatrix(1, 2) = -E2*E3*P1*P4;
293 rConstitutiveMatrix(2, 0) = -E1*E2*E3*P1*(v13 + v12*v23);
294 rConstitutiveMatrix(2, 1) = -E2*E3*P1*P4;
295 rConstitutiveMatrix(2, 2) = -E2*E3*P1*(- E2*v12*v12 + E1);
296 rConstitutiveMatrix(3, 3) = (E2*P2)/(P2 + v12*(P2 + P3) + E1*E2)/2.0;
297 rConstitutiveMatrix(4, 4) = (E3*P3)/(P3 + v23*(P3 + P6) + E2*E3)/2.0;
298 rConstitutiveMatrix(5, 5) = (E3*P2)/(P2 + v13*(P2 + P6) + E1*E3)/2.0;
361 void save(
Serializer& rSerializer)
const override
std::size_t SizeType
Definition: constitutive_law.h:82
void Set(const Flags ThisFlag)
Definition: flags.cpp:33
Geometry base class.
Definition: geometry.h:71
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
bool Has(TVariableType const &rThisVariable) const
Definition: properties.h:578
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Definition: small_strain_3D_law.hpp:33
SmallStrain3DLaw & operator=(const SmallStrain3DLaw &rOther)
Assignment operator.
Definition: small_strain_3D_law.cpp:59
ModelType::Pointer ModelTypePointer
Definition: small_strain_3D_law.hpp:40
Short class definition.
Definition: small_strain_orthotropic_3D_law.hpp:48
SmallStrainOrthotropic3DLaw(const SmallStrainOrthotropic3DLaw &rOther)
Copy constructor.
Definition: small_strain_orthotropic_3D_law.hpp:67
~SmallStrainOrthotropic3DLaw() override
Destructor.
Definition: small_strain_orthotropic_3D_law.hpp:83
KRATOS_CLASS_POINTER_DEFINITION(SmallStrainOrthotropic3DLaw)
Pointer definition of SmallStrainOrthotropic3DLaw.
SmallStrainOrthotropic3DLaw(ModelTypePointer pModel)
Constructor.
Definition: small_strain_orthotropic_3D_law.hpp:64
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: small_strain_orthotropic_3D_law.hpp:231
ConstitutiveLaw::Pointer Clone() const override
Clone.
Definition: small_strain_orthotropic_3D_law.hpp:77
SizeType WorkingSpaceDimension() override
Law Dimension.
Definition: small_strain_orthotropic_3D_law.hpp:91
void GetLawFeatures(Features &rFeatures) override
Law Features.
Definition: small_strain_orthotropic_3D_law.hpp:97
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: small_strain_orthotropic_3D_law.hpp:234
SmallStrainOrthotropic3DLaw()
Default constructor.
Definition: small_strain_orthotropic_3D_law.hpp:61
std::string Info() const override
Turn back information as a string.
Definition: small_strain_orthotropic_3D_law.hpp:223
void CalculateConstitutiveMatrix(Matrix &rConstitutiveMatrix, const Properties &rProperties) override
Definition: small_strain_orthotropic_3D_law.hpp:266
int Check(const Properties &rProperties, const GeometryType &rElementGeometry, const ProcessInfo &rCurrentProcessInfo) const override
Definition: small_strain_orthotropic_3D_law.hpp:186
void CalculateMaterialResponseKirchhoff(Parameters &rValues) override
Definition: small_strain_orthotropic_3D_law.hpp:126
SizeType GetStrainSize() const override
Law Voigt Strain Size.
Definition: small_strain_orthotropic_3D_law.hpp:94
SmallStrainOrthotropic3DLaw & operator=(SmallStrainOrthotropic3DLaw const &rOther)
Assignment operator.
Definition: small_strain_orthotropic_3D_law.hpp:70
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307
Definition: constitutive_law.h:137
SizeType mStrainSize
Definition: constitutive_law.h:152
std::vector< StrainMeasure > mStrainMeasures
Definition: constitutive_law.h:154
SizeType mSpaceDimension
Definition: constitutive_law.h:153
Flags mOptions
Definition: constitutive_law.h:151
Definition: constitutive_law.h:189
Flags & GetOptions()
Definition: constitutive_law.h:412
StrainVectorType & GetStrainVector()
Definition: constitutive_law.h:435
const Properties & GetMaterialProperties()
Definition: constitutive_law.h:457
VoigtSizeMatrixType & GetConstitutiveMatrix()
Definition: constitutive_law.h:446
StressVectorType & GetStressVector()
Definition: constitutive_law.h:440