NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZElasticResponse Class Reference

#include <TPZElasticResponse.h>

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

Public Member Functions

int ClassId () const override
 
 TPZElasticResponse ()
 
 TPZElasticResponse (const TPZElasticResponse &other)
 
TPZElasticResponseoperator= (const TPZElasticResponse &other)
 
void Write (TPZStream &buf, int withclassid) const override
 
void Read (TPZStream &buf, void *context) override
 
const char * Name () const
 
void Print (std::ostream &out) const
 
template<class T >
void ComputeStress (const TPZTensor< T > &epsilon, TPZTensor< T > &sigma) const
 
template<class T >
void ComputeStrain (const TPZTensor< T > &sigma, TPZTensor< T > &epsilon) const
 
void De (TPZFMatrix< REAL > &De)
 
void SetEngineeringData (REAL Eyoung, REAL Poisson)
 
void SetLameData (REAL lambda, REAL mu)
 
REAL Lambda () const
 
REAL K () const
 
REAL Mu () const
 
REAL G () const
 
REAL E () const
 
REAL Poisson () const
 
void SetResidualStrainData (TPZTensor< REAL > &eps_res)
 
TPZTensor< REAL > & ResidualStrainData ()
 
- 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
 

Private Attributes

REAL m_lambda
 First Lamé parameter. More...
 
REAL m_mu
 Second Lamé parameter. More...
 
TPZTensor< REAL > m_eps_star
 Residual strain at zero stress state. 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 TPZElasticResponse.h.

Constructor & Destructor Documentation

◆ TPZElasticResponse() [1/2]

TPZElasticResponse::TPZElasticResponse ( )

Default constructor

Definition at line 14 of file TPZElasticResponse.cpp.

References m_eps_star, and TPZTensor< T >::Zero().

◆ TPZElasticResponse() [2/2]

TPZElasticResponse::TPZElasticResponse ( const TPZElasticResponse other)

Copy constructor

Definition at line 18 of file TPZElasticResponse.cpp.

References m_eps_star, m_lambda, and m_mu.

Member Function Documentation

◆ ClassId()

int TPZElasticResponse::ClassId ( ) const
overridevirtual

A unique class identifier

Returns
The class identifier as integer

Implements TPZSavable.

Reimplemented in TPZPorousElasticResponse.

Definition at line 10 of file TPZElasticResponse.cpp.

References Hash().

◆ ComputeStrain()

template<class T >
void TPZElasticResponse::ComputeStrain ( const TPZTensor< T > &  sigma,
TPZTensor< T > &  epsilon 
) const
inline

◆ ComputeStress()

template<class T >
void TPZElasticResponse::ComputeStress ( const TPZTensor< T > &  epsilon,
TPZTensor< T > &  sigma 
) const
inline

◆ De()

void TPZElasticResponse::De ( TPZFMatrix< REAL > &  De)

Incremental constitutive relation in Voigt notation

Parameters
DeReturn the De operator

Definition at line 57 of file TPZElasticResponse.cpp.

References _XX_, _YY_, _ZZ_, m_lambda, m_mu, and TPZFMatrix< TVar >::Zero().

Referenced by TPZPorousElasticCriterion::ApplyStrainComputeSigma(), and ComputeStrain().

◆ E()

REAL TPZElasticResponse::E ( ) const

Access to the Young modulus

Returns
The Young modulus

Definition at line 104 of file TPZElasticResponse.cpp.

References m_lambda, and m_mu.

Referenced by ComputeStrain(), TPZYCMohrCoulombPV::E(), Print(), and TPZSandlerExtended::SetElasticResponse().

◆ G()

REAL TPZElasticResponse::G ( ) const

◆ K()

REAL TPZElasticResponse::K ( ) const

◆ Lambda()

REAL TPZElasticResponse::Lambda ( ) const

◆ Mu()

REAL TPZElasticResponse::Mu ( ) const

◆ Name()

const char * TPZElasticResponse::Name ( ) const

Class name

Returns
constant char with the class name

Definition at line 45 of file TPZElasticResponse.cpp.

Referenced by Print().

◆ operator=()

TPZElasticResponse & TPZElasticResponse::operator= ( const TPZElasticResponse other)

Assignment constructor

Definition at line 24 of file TPZElasticResponse.cpp.

References m_eps_star, m_lambda, and m_mu.

◆ Poisson()

REAL TPZElasticResponse::Poisson ( ) const

Access to the Poisson ratio

Returns
The Poisson ratio

Definition at line 109 of file TPZElasticResponse.cpp.

References m_lambda, and m_mu.

Referenced by ComputeStrain(), TPZYCMohrCoulombPV::Poisson(), Print(), TPZSandlerExtended::SetElasticResponse(), and SetEngineeringData().

◆ Print()

void TPZElasticResponse::Print ( std::ostream &  out) const

Print

Parameters
outostream object to write the output

Definition at line 49 of file TPZElasticResponse.cpp.

References E(), m_lambda, m_mu, Name(), and Poisson().

Referenced by TPZElastoPlasticMem::Print().

◆ Read()

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

Read (persistency)

Parameters
bufThe TPZStream object
contextpointer to the associated object

Reimplemented from TPZSavable.

Reimplemented in TPZPorousElasticResponse.

Definition at line 38 of file TPZElasticResponse.cpp.

References m_eps_star, m_lambda, m_mu, TPZStream::Read(), and TPZTensor< T >::Read().

Referenced by TPZYCCamClayPV::Read(), TPZElastoPlasticMem::Read(), TPZPorousElasticCriterion::Read(), TPZElasticCriterion::Read(), TPZSandlerExtended::Read(), and TPZYCMohrCoulombPV::Read().

◆ ResidualStrainData()

TPZTensor< REAL > & TPZElasticResponse::ResidualStrainData ( )

Get the residual strain

Parameters
lambdaFirst Lamé parameter
muSecond Lamé parameter (Shear modulus)

Definition at line 118 of file TPZElasticResponse.cpp.

References m_eps_star.

Referenced by ComputeStrain().

◆ SetEngineeringData()

void TPZElasticResponse::SetEngineeringData ( REAL  Eyoung,
REAL  Poisson 
)

◆ SetLameData()

void TPZElasticResponse::SetLameData ( REAL  lambda,
REAL  mu 
)

Set elastic parameters using Lamé data

Parameters
lambdaFirst Lamé parameter
muSecond Lamé parameter (Shear modulus)

Definition at line 82 of file TPZElasticResponse.cpp.

References m_lambda, and m_mu.

Referenced by ComputeStrain().

◆ SetResidualStrainData()

void TPZElasticResponse::SetResidualStrainData ( TPZTensor< REAL > &  eps_res)

Set the residual strain

Parameters
lambdaFirst Lamé parameter
muSecond Lamé parameter (Shear modulus)

Definition at line 114 of file TPZElasticResponse.cpp.

References m_eps_star.

Referenced by ComputeStrain(), TPZPorousElasticResponse::EvaluateElasticResponse(), and TPZPorousElasticResponse::LinearizedElasticResponse().

◆ Write()

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

Write (persistency)

Parameters
bufThe TPZStream object
withclassidThe class identifier

Reimplemented from TPZSavable.

Reimplemented in TPZPorousElasticResponse.

Definition at line 32 of file TPZElasticResponse.cpp.

References m_eps_star, m_lambda, m_mu, TPZStream::Write(), and TPZTensor< T >::Write().

Referenced by TPZYCCamClayPV::Write(), TPZElastoPlasticMem::Write(), TPZPorousElasticCriterion::Write(), TPZElasticCriterion::Write(), TPZSandlerExtended::Write(), and TPZYCMohrCoulombPV::Write().

Member Data Documentation

◆ m_eps_star

TPZTensor<REAL> TPZElasticResponse::m_eps_star
private

Residual strain at zero stress state.

Definition at line 25 of file TPZElasticResponse.h.

Referenced by ComputeStrain(), operator=(), Read(), ResidualStrainData(), SetResidualStrainData(), TPZElasticResponse(), and Write().

◆ m_lambda

REAL TPZElasticResponse::m_lambda
private

First Lamé parameter.

Definition at line 19 of file TPZElasticResponse.h.

Referenced by De(), E(), K(), Lambda(), operator=(), Poisson(), Print(), Read(), SetEngineeringData(), SetLameData(), TPZElasticResponse(), and Write().

◆ m_mu

REAL TPZElasticResponse::m_mu
private

Second Lamé parameter.

Definition at line 22 of file TPZElasticResponse.h.

Referenced by De(), E(), K(), Mu(), operator=(), Poisson(), Print(), Read(), SetEngineeringData(), SetLameData(), TPZElasticResponse(), and Write().


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