10 #if !defined(KRATOS_HARDENING_RULE_H_INCLUDED )
11 #define KRATOS_HARDENING_RULE_H_INCLUDED
72 template<std::
size_t TVarSize>
83 unsigned int size() {
return TVarSize;}
102 template<std::
size_t TVarSize>
176 virtual HardeningRule::Pointer
Clone()
const
178 return Kratos::make_shared<HardeningRule>(*
this);
201 KRATOS_ERROR <<
"calling the HardeningRule base class ... illegal operation" << std::endl;
217 KRATOS_ERROR <<
"calling the HardeningRule base class ... illegal operation" << std::endl;
219 return rDeltaHardening;
228 KRATOS_ERROR <<
"calling the HardeningRule base class ... illegal operation" << std::endl;
230 return rDeltaHardening;
239 KRATOS_ERROR <<
"calling the HardeningRule base class ... illegal operation" << std::endl;
241 return rDeltaThermalHardening;
262 virtual std::string
Info()
const
264 std::stringstream buffer;
265 buffer <<
"HardeningRule" ;
272 rOStream <<
"HardeningRule";
278 rOStream <<
"HardeningRule Data";
356 virtual void save(
Serializer& rSerializer)
const
Short class definition.
Definition: hardening_rule.hpp:55
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: hardening_rule.hpp:276
virtual std::string Info() const
Turn back information as a string.
Definition: hardening_rule.hpp:262
virtual double & CalculateDeltaThermalHardening(const PlasticDataType &rVariables, double &rDeltaThermalHardening)
Definition: hardening_rule.hpp:235
ConstitutiveModelData::MaterialData MaterialDataType
Definition: hardening_rule.hpp:70
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: hardening_rule.hpp:270
InternalVariables< VarSize > InternalVariablesType
Definition: hardening_rule.hpp:153
constexpr static std::size_t VarSize
Definition: hardening_rule.hpp:60
virtual double & CalculateDeltaHardening(const PlasticDataType &rVariables, double &rDeltaHardening)
Definition: hardening_rule.hpp:213
virtual double & CalculateHardening(const PlasticDataType &rVariables, double &rHardening)
Definition: hardening_rule.hpp:197
ConstitutiveModelData::ModelData ModelDataType
Definition: hardening_rule.hpp:69
HardeningRule()
Default constructor.
Definition: hardening_rule.hpp:164
ConstitutiveModelData::MatrixType MatrixType
Definition: hardening_rule.hpp:67
virtual double & CalculateDeltaHardening(const PlasticDataType &rVariables, double &rDeltaHardening, const MatrixType &rPlasticPotentialDerivative)
Definition: hardening_rule.hpp:224
ConstitutiveModelData::VectorType VectorType
Definition: hardening_rule.hpp:68
HardeningRule(HardeningRule const &rOther)
Copy constructor.
Definition: hardening_rule.hpp:167
virtual HardeningRule::Pointer Clone() const
Clone.
Definition: hardening_rule.hpp:176
PlasticModelData< VarSize > PlasticDataType
Definition: hardening_rule.hpp:154
KRATOS_CLASS_POINTER_DEFINITION(HardeningRule)
Pointer definition of HardeningRule.
virtual ~HardeningRule()
Destructor.
Definition: hardening_rule.hpp:182
HardeningRule & operator=(HardeningRule const &rOther)
Assignment operator.
Definition: hardening_rule.hpp:170
Definition: amatrix_interface.h:41
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
void load(std::string const &rTag, TDataType &rObject)
Definition: serializer.h:207
void save(std::string const &rTag, std::array< TDataType, TDataSize > const &rObject)
Definition: serializer.h:545
BOOST_UBLAS_INLINE void clear()
Definition: array_1d.h:325
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#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_model_data.hpp:92
Definition: constitutive_model_data.hpp:383
const MaterialData & GetMaterialParameters() const
Definition: constitutive_model_data.hpp:462
Definition: hardening_rule.hpp:74
InternalVariables()
Definition: hardening_rule.hpp:79
unsigned int size()
Definition: hardening_rule.hpp:83
const array_1d< double, TVarSize > & GetVariables()
Definition: hardening_rule.hpp:81
array_1d< double, TVarSize > Variables
Definition: hardening_rule.hpp:76
Definition: hardening_rule.hpp:104
double RateFactor
Definition: hardening_rule.hpp:117
double TrialStateFunction
Definition: hardening_rule.hpp:113
const InternalVariables< TVarSize > & GetInternal() const
Definition: hardening_rule.hpp:143
void SetState(Flags &rState)
Definition: hardening_rule.hpp:127
const double & GetRateFactor() const
Definition: hardening_rule.hpp:141
InternalVariables< TVarSize > Internal
Definition: hardening_rule.hpp:120
const MaterialDataType & GetMaterialParameters() const
Definition: hardening_rule.hpp:132
Flags & State()
Definition: hardening_rule.hpp:135
const array_1d< double, TVarSize > & GetInternalVariables() const
Definition: hardening_rule.hpp:148
const double & GetTrialStateFunction() const
Definition: hardening_rule.hpp:139
double StressNorm
Definition: hardening_rule.hpp:114
InternalVariables< TVarSize > DeltaInternal
Definition: hardening_rule.hpp:121
const InternalVariables< TVarSize > & GetDeltaInternal() const
Definition: hardening_rule.hpp:144
const double & GetStressNorm() const
Definition: hardening_rule.hpp:140
const Flags & GetState() const
Definition: hardening_rule.hpp:138
const array_1d< double, TVarSize > & GetDeltaInternalVariables() const
Definition: hardening_rule.hpp:149
MatrixType StrainMatrix
Definition: hardening_rule.hpp:124
void SetModelData(const ModelDataType &rModelData)
Definition: hardening_rule.hpp:128
const MatrixType & GetStrainMatrix() const
Definition: hardening_rule.hpp:146
const ModelDataType & GetModelData() const
Definition: hardening_rule.hpp:131