10 #if !defined(KRATOS_INCOMPRESSIBLE_HYPO_ELASTIC_MODEL_H_INCLUDED)
11 #define KRATOS_INCOMPRESSIBLE_HYPO_ELASTIC_MODEL_H_INCLUDED
75 ConstitutiveModel::Pointer
Clone()
const override
77 return Kratos::make_shared<IncompressibleHypoElasticModel>(*
this);
103 if(YOUNG_MODULUS.Key() == 0 || rProperties[YOUNG_MODULUS] <= 0.00)
104 KRATOS_ERROR <<
"YOUNG_MODULUS has Key zero or invalid value" << std::endl;
106 if(POISSON_RATIO.Key() == 0){
107 KRATOS_ERROR <<
"POISSON_RATIO has Key zero invalid value" << std::endl;
110 const double&
nu = rProperties[POISSON_RATIO];
111 if( nu < -0.999 && nu > -1.01 )
112 KRATOS_ERROR <<
"POISSON_RATIO has an invalid value" << std::endl;
138 rScalarVariables.push_back(PRESSURE);
153 std::string
Info()
const override
155 std::stringstream buffer;
156 buffer <<
"IncompressibleHypoElasticModel";
163 rOStream <<
"IncompressibleHypoElasticModel";
169 rOStream <<
"IncompressibleHypoElasticModel Data";
207 for(
unsigned int i = 0;
i < 3;
i++)
208 rStressVector[
i] += Pressure;
220 KRATOS_ERROR <<
"calling the class function in IncompressibleHypoElasticModel ... illegal operation" << std::endl;
275 void save(
Serializer& rSerializer)
const override
Short class definition.
Definition: hypo_elastic_model.hpp:50
void GetDomainVariablesList(std::vector< Variable< double > > &rScalarVariables, std::vector< Variable< array_1d< double, 3 > > > &rComponentVariables) override
Definition: hypo_elastic_model.hpp:216
HypoElasticModel & operator=(HypoElasticModel const &rOther)
Assignment operator.
Definition: hypo_elastic_model.cpp:46
Short class definition.
Definition: incompressible_hypo_elastic_model.hpp:48
~IncompressibleHypoElasticModel() override
Destructor.
Definition: incompressible_hypo_elastic_model.hpp:81
void CalculateAndAddVolumetricStrainEnergy(ElasticDataType &rVariables, double &rVolumetricDensityFunction) override
Definition: incompressible_hypo_elastic_model.hpp:216
IncompressibleHypoElasticModel(IncompressibleHypoElasticModel const &rOther)
Copy constructor.
Definition: incompressible_hypo_elastic_model.hpp:65
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: incompressible_hypo_elastic_model.hpp:161
IncompressibleHypoElasticModel & operator=(IncompressibleHypoElasticModel const &rOther)
Assignment operator.
Definition: incompressible_hypo_elastic_model.hpp:68
void GetDomainVariablesList(std::vector< Variable< double > > &rScalarVariables, std::vector< Variable< array_1d< double, 3 > > > &rComponentVariables) override
Definition: incompressible_hypo_elastic_model.hpp:131
KRATOS_CLASS_POINTER_DEFINITION(IncompressibleHypoElasticModel)
Pointer definition of IncompressibleHypoElasticModel.
void CalculateAndAddVolumetricStressTensor(ElasticDataType &rVariables, VectorType &rStrainVector, VectorType &rStressVector) override
Definition: incompressible_hypo_elastic_model.hpp:199
int Check(const Properties &rProperties, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_hypo_elastic_model.hpp:99
IncompressibleHypoElasticModel()
Default constructor.
Definition: incompressible_hypo_elastic_model.hpp:62
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: incompressible_hypo_elastic_model.hpp:167
ConstitutiveModel::Pointer Clone() const override
Clone.
Definition: incompressible_hypo_elastic_model.hpp:75
std::string Info() const override
Turn back information as a string.
Definition: incompressible_hypo_elastic_model.hpp:153
Short class definition.
Definition: isochoric_hypo_elastic_model.hpp:48
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
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#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
nu
Definition: isotropic_damage_automatic_differentiation.py:135
def load(f)
Definition: ode_solve.py:307
integer i
Definition: TensorModule.f:17
Definition: constitutive_model_data.hpp:383
const double & GetPressure() const
Definition: constitutive_model_data.hpp:446
Definition: hypo_elastic_model.hpp:54
const ModelDataType & GetModelData() const
Definition: hypo_elastic_model.hpp:70