3 #ifndef TPZPLASTICSTATE_H 4 #define TPZPLASTICSTATE_H 33 TPZPlasticState(
const T & hardening):m_eps_t(T(0.)), m_eps_p(T(0.)), m_hardening(hardening), m_m_type(0) { }
37 m_eps_t(source.m_eps_t), m_eps_p(source.m_eps_p), m_hardening(source.m_hardening), m_m_type(source.m_m_type){ }
55 friend std::ostream& operator<<( std::ostream& Out, const TPZPlasticState<T> & s )
62 void Print(std::ostream& Out,
int fadDerivatives = 1)
const;
80 m_eps_t.
Read(buf,context);
81 m_eps_p.
Read(buf,context);
83 buf.
Read(&m_hardening);
88 m_eps_t.
Write(buf,withclassid);
89 m_eps_p.
Write(buf,withclassid);
91 buf.
Write(&m_hardening);
114 return Hash(
"TPZPlasticState") ^ ClassIdOrHash<T>() << 1;
157 if (fadDerivatives) {
158 Out <<
"\tm_eps_t = ";
159 for (
int i = 0; i < 6; i++)Out <<
m_eps_t[i] <<
" ";
161 Out <<
"\tm_eps_p = ";
162 for (
int i = 0; i < 6; i++)Out <<
m_eps_p[i] <<
" ";
164 Out <<
"\tm_hardening = " <<
m_hardening << std::endl;
166 Out <<
"\tm_eps_t = ";
169 Out <<
"\tm_eps_p = ";
174 Out <<
"\tm_m_type = " <<
m_m_type << std::endl;
const TPZPlasticState< T > & operator+=(const TPZPlasticState< T > &source)
Operator +=.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
const TPZPlasticState< T > & operator*=(const TPZPlasticState< T > &source)
Operator *=.
void Print(std::ostream &Out, int fadDerivatives=1) const
More complete then Operator << because it allows derivatives supression.
TPZTensor< T > m_eps_t
Tensors representing the total and plastic strain states.
void Write(TPZStream &buf, int withclassid) const override
Method to write to a pzstream.
T m_hardening
Plastic volumetric hardeing variable.
void Read(TPZStream &buf, void *context) override
Method to read the object from a pzstream.
TPZPlasticState(const T &hardening)
Constructor enabling predefinition of hardening.
const TPZPlasticState< T > & operator=(const TPZPlasticState< T > &source)
Operator =.
void CopyTo(TPZPlasticState< T1 > &target) const
TPZPlasticState()
Default constructor - all values set to zero.
virtual void Write(const bool val)
TPZPlasticState(const TPZPlasticState< T > &source)
Copy constructor.
int m_m_type
Identifier for the regime of the material behaviour.
void Read(TPZStream &buf, void *context) override
read objects from the stream
const TPZPlasticState< T > & operator-=(const TPZPlasticState< T > &source)
Operator -=.
int32_t Hash(std::string str)
const T & VolHardening() const
const TPZTensor< T > & EpsT() const
const TPZTensor< T > & EpsP() const
Defines the interface for saving and reading data. Persistency.
const int & MType() const
int ClassId() const override
Define the class id associated with the class.
~TPZPlasticState()
Destructor.
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
virtual void Read(bool &val)