NeoPZ
Public Types | Public Member Functions | Public Attributes | List of all members
TPZElasticCriterion Class Reference

#include <TPZElasticCriterion.h>

Inheritance diagram for TPZElasticCriterion:
[legend]
Collaboration diagram for TPZElasticCriterion:
[legend]

Public Types

enum  { NYield }
 
typedef TPZElasticCriterion fNYields
 

Public Member Functions

virtual int ClassId () const override
 
 TPZElasticCriterion ()
 
 TPZElasticCriterion (const TPZElasticCriterion &cp)
 
TPZElasticCriterionoperator= (const TPZElasticCriterion &cp)
 
void Read (TPZStream &buf, void *context) override
 
void Write (TPZStream &buf, int withclassid) const override
 
virtual int IntegrationSteps () const override
 Return. More...
 
virtual const char * Name () const override
 
virtual void Print (std::ostream &out) const override
 
virtual void ApplyStrain (const TPZTensor< REAL > &epsTotal) override
 
virtual void ApplyStrainComputeSigma (const TPZTensor< REAL > &epsTotal, TPZTensor< REAL > &sigma, TPZFMatrix< REAL > *De=NULL) override
 
virtual void ApplyStrainComputeDep (const TPZTensor< REAL > &epsTotal, TPZTensor< REAL > &sigma, TPZFMatrix< REAL > &De) override
 
virtual void ApplyLoad (const TPZTensor< REAL > &sigma, TPZTensor< REAL > &epsTotal) override
 
virtual void SetState (const TPZPlasticState< REAL > &state) override
 
virtual TPZPlasticState< REAL > GetState () const override
 
virtual void Phi (const TPZTensor< REAL > &epsTotal, TPZVec< REAL > &phi) const override
 
virtual void SetElasticResponse (TPZElasticResponse &ER) override
 
virtual TPZElasticResponse GetElasticResponse () const override
 
TPZPlasticCriterionGetYC () override
 
void YieldFunction (const TPZVec< STATE > &sigma, STATE hardening, TPZVec< STATE > &yield) const override
 
virtual int GetNYield () const override
 
- Public Member Functions inherited from TPZPlasticBase
int ClassId () const override
 Define the class id associated with the class. More...
 
virtual ~TPZPlasticBase ()
 
virtual void ResetPlasticStrain ()
 
- Public Member Functions inherited from TPZSavable
 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
virtual bool Compare (TPZSavable *copy, bool override=false)
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
virtual bool Compare (TPZSavable *copy, bool override=false) const
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
- Public Member Functions inherited from TPZRegisterClassId
template<typename T >
 TPZRegisterClassId (int(T::*)() const)
 
 TPZRegisterClassId ()=default
 

Public Attributes

TPZPlasticState< STATE > fN
 Plastic state. More...
 
TPZElasticResponse fER
 Elastic response. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from TPZSavable
static std::set< TPZRestoreClassBase * > & RestoreClassSet ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::map< int, TPZRestore_t > & ClassIdMap ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::pair< std::string, uint64_t > NeoPZVersion ()
 
static void Register (TPZRestoreClassBase *restore)
 
static void RegisterClassId (int classid, TPZRestore_t fun)
 
static TPZSavableCreateInstance (const int &classId)
 

Detailed Description

Definition at line 16 of file TPZElasticCriterion.h.

Member Typedef Documentation

◆ fNYields

Definition at line 23 of file TPZElasticCriterion.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NYield 

Definition at line 21 of file TPZElasticCriterion.h.

Constructor & Destructor Documentation

◆ TPZElasticCriterion() [1/2]

TPZElasticCriterion::TPZElasticCriterion ( )

Default constructor

Definition at line 3 of file TPZElasticCriterion.cpp.

◆ TPZElasticCriterion() [2/2]

TPZElasticCriterion::TPZElasticCriterion ( const TPZElasticCriterion cp)

Copy constructor

Definition at line 8 of file TPZElasticCriterion.cpp.

Member Function Documentation

◆ ApplyLoad()

void TPZElasticCriterion::ApplyLoad ( const TPZTensor< REAL > &  sigma,
TPZTensor< REAL > &  epsTotal 
)
overridevirtual

Computes Strain tensor based on inverse of incremental constitutive relation with a given Stress tensor

Parameters
sigmaStress tensor
epsTotalStrain tensor

Implements TPZPlasticBase.

Definition at line 91 of file TPZElasticCriterion.cpp.

References _XX_, _XY_, _XZ_, _YY_, _YZ_, _ZZ_, ApplyStrainComputeSigma(), fN, TPZPlasticState< T >::m_eps_t, and TPZMatrix< TVar >::Solve_LDLt().

Referenced by ApplyStrainComputeDep().

◆ ApplyStrain()

void TPZElasticCriterion::ApplyStrain ( const TPZTensor< REAL > &  epsTotal)
overridevirtual

Imposes the specified strain tensor, evaluating the plastic integration if necessary

Parameters
epsTotalImposed total strain tensor

Implements TPZPlasticBase.

Definition at line 83 of file TPZElasticCriterion.cpp.

References DebugStop.

Referenced by Print().

◆ ApplyStrainComputeDep()

virtual void TPZElasticCriterion::ApplyStrainComputeDep ( const TPZTensor< REAL > &  epsTotal,
TPZTensor< REAL > &  sigma,
TPZFMatrix< REAL > &  De 
)
inlineoverridevirtual

Imposes the specified strain tensor and returns the corresping stress state and tangent matrix. (Deprecated)

Parameters
epsTotalImposed total strain tensor
sigmaStress tensor
DeIncremental constitutive relation in Voigt notation

Implements TPZPlasticBase.

Definition at line 130 of file TPZElasticCriterion.h.

References ApplyLoad(), DebugStop, GetState(), Phi(), and SetState().

◆ ApplyStrainComputeSigma()

void TPZElasticCriterion::ApplyStrainComputeSigma ( const TPZTensor< REAL > &  epsTotal,
TPZTensor< REAL > &  sigma,
TPZFMatrix< REAL > *  De = NULL 
)
overridevirtual

Imposes the specified strain tensor and returns the correspondent stress state.

Parameters
epsTotalImposed total strain tensor
sigmaStress tensor
DeIncremental constitutive relation in Voigt notation (optional)

Implements TPZPlasticBase.

Definition at line 34 of file TPZElasticCriterion.cpp.

References _XX_, _XY_, _XZ_, _YY_, _YZ_, _ZZ_, TPZMatrix< TVar >::Cols(), TPZElasticResponse::ComputeStress(), DebugStop, fER, fN, TPZElasticResponse::G(), TPZElasticResponse::Lambda(), TPZPlasticState< T >::m_eps_t, TPZFMatrix< TVar >::PutVal(), and TPZMatrix< TVar >::Rows().

Referenced by ApplyLoad(), and Print().

◆ ClassId()

int TPZElasticCriterion::ClassId ( ) const
overridevirtual

A unique class identifier

Returns
The class identifier as integer

Implements TPZSavable.

Definition at line 139 of file TPZElasticCriterion.cpp.

References TPZPlasticBase::ClassId(), and Hash().

◆ GetElasticResponse()

virtual TPZElasticResponse TPZElasticCriterion::GetElasticResponse ( ) const
inlineoverridevirtual

Access to the linear elastic response memeber

Returns
The linear elastic response

Implements TPZPlasticBase.

Definition at line 184 of file TPZElasticCriterion.h.

References fER.

◆ GetNYield()

virtual int TPZElasticCriterion::GetNYield ( ) const
inlineoverridevirtual

Number of yield surfaces

Returns
the number of yield surfaces

Implements TPZPlasticCriterion.

Definition at line 220 of file TPZElasticCriterion.h.

References as_integer(), and NYield.

◆ GetState()

TPZPlasticState< STATE > TPZElasticCriterion::GetState ( ) const
overridevirtual

Access to the plastic state member

Returns
the plastic state member

Implements TPZPlasticBase.

Definition at line 114 of file TPZElasticCriterion.cpp.

References fN.

Referenced by ApplyStrainComputeDep().

◆ GetYC()

TPZPlasticCriterion& TPZElasticCriterion::GetYC ( )
inlineoverridevirtual

Access to the plastic criterion being used

Returns
The plastic criterion

Implements TPZPlasticBase.

Definition at line 195 of file TPZElasticCriterion.h.

◆ IntegrationSteps()

int TPZElasticCriterion::IntegrationSteps ( ) const
overridevirtual

Return.

Numer of integration steps

Returns
the number of plastic steps in the last load step. Zero indicates elastic loading.

Reimplemented from TPZPlasticBase.

Definition at line 134 of file TPZElasticCriterion.cpp.

◆ Name()

virtual const char* TPZElasticCriterion::Name ( ) const
inlineoverridevirtual

Class name

Returns
constant char with the class name

Implements TPZPlasticBase.

Definition at line 89 of file TPZElasticCriterion.h.

Referenced by Print().

◆ operator=()

TPZElasticCriterion & TPZElasticCriterion::operator= ( const TPZElasticCriterion cp)

Assignment constructor

check for self-assignment

Definition at line 12 of file TPZElasticCriterion.cpp.

References fER, and fN.

◆ Phi()

void TPZElasticCriterion::Phi ( const TPZTensor< REAL > &  epsTotal,
TPZVec< REAL > &  phi 
) const
overridevirtual

Computes the value of the yield functions for the given strain

Parameters
epsTotalStrain tensor
phiThe valued yield functions

Implements TPZPlasticBase.

Definition at line 120 of file TPZElasticCriterion.cpp.

References TPZVec< T >::resize().

Referenced by ApplyStrainComputeDep(), and YieldFunction().

◆ Print()

virtual void TPZElasticCriterion::Print ( std::ostream &  out) const
inlineoverridevirtual

Print

Parameters
outostream object to write the output

Implements TPZPlasticBase.

Definition at line 100 of file TPZElasticCriterion.h.

References ApplyStrain(), ApplyStrainComputeSigma(), Name(), and TPZPlasticState< T >::Print().

◆ Read()

void TPZElasticCriterion::Read ( TPZStream buf,
void *  context 
)
overridevirtual

Read (persistency)

Parameters
bufa TPZStream object
contextpointer to the associated object

Implements TPZPlasticBase.

Definition at line 24 of file TPZElasticCriterion.cpp.

References fER, fN, TPZElasticResponse::Read(), and TPZPlasticState< T >::Read().

◆ SetElasticResponse()

virtual void TPZElasticCriterion::SetElasticResponse ( TPZElasticResponse ER)
inlineoverridevirtual

Set the linear elastic response memeber

Parameters
ERThe linear elastic response

Implements TPZPlasticBase.

Definition at line 173 of file TPZElasticCriterion.h.

◆ SetState()

void TPZElasticCriterion::SetState ( const TPZPlasticState< REAL > &  state)
overridevirtual

Set the plastic state member

Parameters
stateThe plastic state member

Implements TPZPlasticBase.

Definition at line 129 of file TPZElasticCriterion.cpp.

References fN.

Referenced by ApplyStrainComputeDep().

◆ Write()

void TPZElasticCriterion::Write ( TPZStream buf,
int  withclassid 
) const
overridevirtual

Write (persistency)

Parameters
bufa TPZStream object
withclassidthe class identifier

Implements TPZPlasticBase.

Definition at line 29 of file TPZElasticCriterion.cpp.

References fER, fN, TPZElasticResponse::Write(), and TPZPlasticState< T >::Write().

◆ YieldFunction()

void TPZElasticCriterion::YieldFunction ( const TPZVec< STATE > &  sigma,
STATE  hardening,
TPZVec< STATE > &  yield 
) const
inlineoverridevirtual

Evaluates the yield functions base on a given Stress and hardening

Parameters
sigmaThe Stress tensor
hardeningThe Hardening variable
yieldThe valued yield functions

Implements TPZPlasticCriterion.

Definition at line 207 of file TPZElasticCriterion.h.

References Phi(), TPZTensor< T >::XX(), TPZTensor< T >::YY(), and TPZTensor< T >::ZZ().

Member Data Documentation

◆ fER

TPZElasticResponse TPZElasticCriterion::fER

Elastic response.

Definition at line 29 of file TPZElasticCriterion.h.

Referenced by ApplyStrainComputeSigma(), GetElasticResponse(), operator=(), Read(), and Write().

◆ fN

TPZPlasticState<STATE> TPZElasticCriterion::fN

Plastic state.

Definition at line 26 of file TPZElasticCriterion.h.

Referenced by ApplyLoad(), ApplyStrainComputeSigma(), GetState(), operator=(), Read(), SetState(), and Write().


The documentation for this class was generated from the following files: