NeoPZ
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
TPZYCTresca Class Reference

#include <TPZYCTresca.h>

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

Public Types

enum  { NYield }
 

Public Member Functions

virtual int ClassId () const override
 Define the class id associated with the class. More...
 
const char * Name () const
 
void Print (std::ostream &out) const override
 
int GetForceYield ()
 
void SetForceYield (const int forceYield)
 
void SetYieldStatusMode (const TPZTensor< REAL > &sigma, const REAL &A)
 
template<class T >
void Compute (const TPZTensor< T > &sigma, const T &A, TPZVec< T > &result, int checkForcedYield=0) const
 
template<class T >
void N (const TPZTensor< T > &sigma, const T &A, TPZVec< TPZTensor< T > > &Ndir, int checkForcedYield=0) const
 
template<class T >
void H (const TPZTensor< T > &sigma, const T &A, TPZVec< T > &h, int checkForcedYield=0) const
 
template<class T >
void AlphaMultiplier (const T &A, T &multiplier) const
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
void YieldFunction (const TPZVec< STATE > &sigma, STATE kprev, TPZVec< STATE > &yield) const override
 
virtual int GetNYield () const override
 
int NumCases ()
 number of types of residuals More...
 
void LoadState (TPZFMatrix< REAL > &state)
 LoadState will keep a given state as static variable of the class. More...
 
void ComputeTangent (TPZFMatrix< REAL > &tangent, TPZVec< REAL > &coefs, int icase)
 
void Residual (TPZFMatrix< REAL > &res, int icase)
 
- 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
 

Static Public Attributes

static TPZTensor< REAL > gRefTension
 

Protected Member Functions

template<class T >
void GradTheta (const TPZTensor< T > &sigma, T &theta, TPZTensor< T > &gradtheta) const
 Compute the inverse angle of the tresca yield criterium formula and the related data. More...
 
template<class T >
InverseAngle (const TPZTensor< T > &deviatoric) const
 Computes the inverse angle of the tresca yield criterium formula. More...
 
template<class T >
void GradInverseAngle (const TPZTensor< T > &sigma, TPZTensor< T > &grad) const
 Computes the derivative of the inverse angle of the tresca yield criterium formula. 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 14 of file TPZYCTresca.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NYield 

Definition at line 18 of file TPZYCTresca.h.

Member Function Documentation

◆ AlphaMultiplier()

template<class T >
void TPZYCTresca::AlphaMultiplier ( const T &  A,
T &  multiplier 
) const
inline

Multiplicador para o caso onde utilizamos uma variavel de dano modificada

Definition at line 93 of file TPZYCTresca.h.

◆ ClassId()

int TPZYCTresca::ClassId ( ) const
overridevirtual

Define the class id associated with the class.

This id has to be unique for all classes A non unique id is flagged at the startup of the program

Implements TPZSavable.

Reimplemented in TPZYCTrescaRegularized.

Definition at line 5 of file TPZYCTresca.cpp.

References Hash().

Referenced by TPZYCTrescaRegularized::ClassId().

◆ Compute()

template<class T >
void TPZYCTresca::Compute ( const TPZTensor< T > &  sigma,
const T &  A,
TPZVec< T > &  result,
int  checkForcedYield = 0 
) const

Evaluate the yield criteria

Parameters
[in]sigmacurrent stress tensor
[in]Acurrent thermodynamical force
[out]result
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 260 of file TPZYCTresca.h.

References asin, cos(), InverseAngle(), TPZTensor< T >::J2(), and sqrt.

Referenced by TPZYCTrescaRegularized::Compute(), Residual(), SetYieldStatusMode(), and YieldFunction().

◆ ComputeTangent()

void TPZYCTresca::ComputeTangent ( TPZFMatrix< REAL > &  tangent,
TPZVec< REAL > &  coefs,
int  icase 
)
inline

◆ GetForceYield()

int TPZYCTresca::GetForceYield ( )
inline

Definition at line 34 of file TPZYCTresca.h.

◆ GetNYield()

virtual int TPZYCTresca::GetNYield ( ) const
inlineoverridevirtual

Implements TPZPlasticCriterion.

Reimplemented in TPZYCTrescaRegularized.

Definition at line 113 of file TPZYCTresca.h.

References as_integer(), GradInverseAngle(), GradTheta(), InverseAngle(), and NYield.

◆ GradInverseAngle()

template<class T >
void TPZYCTresca::GradInverseAngle ( const TPZTensor< T > &  sigma,
TPZTensor< T > &  grad 
) const
protected

Computes the derivative of the inverse angle of the tresca yield criterium formula.

Definition at line 343 of file TPZYCTresca.h.

References TPZTensor< T >::Add(), TPZTensor< T >::dJ2(), TPZTensor< T >::dJ3(), TPZTensor< T >::J2(), TPZTensor< T >::J3(), TPZTensor< T >::Multiply(), sqrt, and TPZExtractVal::val().

Referenced by ComputeTangent(), GetNYield(), TPZYCTrescaRegularized::GradTheta(), and GradTheta().

◆ GradTheta()

template<class T >
void TPZYCTresca::GradTheta ( const TPZTensor< T > &  sigma,
T &  theta,
TPZTensor< T > &  gradtheta 
) const
protected

Compute the inverse angle of the tresca yield criterium formula and the related data.

Parameters
sigma[in] stress tensor
theta[out] one third of the asin of the inverse angle
gradtheta[out] gradient of the inverse angle

Definition at line 360 of file TPZYCTresca.h.

References asin, GradInverseAngle(), InverseAngle(), LOGPZ_DEBUG, TPZTensor< T >::Multiply(), and sqrt.

Referenced by GetNYield(), and TPZYCTrescaRegularized::GradTheta().

◆ H()

template<class T >
void TPZYCTresca::H ( const TPZTensor< T > &  sigma,
const T &  A,
TPZVec< T > &  h,
int  checkForcedYield = 0 
) const
inline

Derivative of the yield function with respect to the thermodynamical force

Parameters
[in]sigmacurrent stress tensor
[in]Acurrent thermodynamical force
[out]hDerivative with respect to thermodynamical force
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 84 of file TPZYCTresca.h.

Referenced by TPZYCVonMisesCombTresca::H().

◆ InverseAngle()

template<class T >
T TPZYCTresca::InverseAngle ( const TPZTensor< T > &  deviatoric) const
protected

Computes the inverse angle of the tresca yield criterium formula.

Definition at line 334 of file TPZYCTresca.h.

References TPZTensor< T >::J2(), TPZTensor< T >::J3(), sqrt, and TPZExtractVal::val().

Referenced by TPZYCTrescaRegularized::Compute(), Compute(), GetNYield(), TPZYCTrescaRegularized::GradTheta(), GradTheta(), and Residual().

◆ LoadState()

void TPZYCTresca::LoadState ( TPZFMatrix< REAL > &  state)
inline

LoadState will keep a given state as static variable of the class.

Definition at line 149 of file TPZYCTresca.h.

References TPZTensor< T >::fData.

◆ N()

template<class T >
void TPZYCTresca::N ( const TPZTensor< T > &  sigma,
const T &  A,
TPZVec< TPZTensor< T > > &  Ndir,
int  checkForcedYield = 0 
) const

Derivative of the yield function

Parameters
[in]sigmacurrent stress tensor
[in]Acurrent thermodynamical force
[out]NdirStress derivative
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 268 of file TPZYCTresca.h.

References TPZTensor< T >::Add(), cos(), TPZTensor< T >::dJ2(), LOGPZ_DEBUG, TPZTensor< T >::Multiply(), sin, and sqrt.

Referenced by SetYieldStatusMode().

◆ Name()

const char* TPZYCTresca::Name ( ) const
inline

Definition at line 24 of file TPZYCTresca.h.

Referenced by Print().

◆ NumCases()

int TPZYCTresca::NumCases ( )
inline

number of types of residuals

Definition at line 142 of file TPZYCTresca.h.

◆ Print()

void TPZYCTresca::Print ( std::ostream &  out) const
inlineoverridevirtual

Reimplemented from TPZPlasticCriterion.

Reimplemented in TPZYCTrescaRegularized.

Definition at line 29 of file TPZYCTresca.h.

References Name().

◆ Read()

void TPZYCTresca::Read ( TPZStream buf,
void *  context 
)
inlineoverridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Reimplemented in TPZYCTrescaRegularized.

Definition at line 98 of file TPZYCTresca.h.

◆ Residual()

void TPZYCTresca::Residual ( TPZFMatrix< REAL > &  res,
int  icase 
)
inline

◆ SetForceYield()

void TPZYCTresca::SetForceYield ( const int  forceYield)
inline

Definition at line 39 of file TPZYCTresca.h.

◆ SetYieldStatusMode()

void TPZYCTresca::SetYieldStatusMode ( const TPZTensor< REAL > &  sigma,
const REAL &  A 
)
inline

Checks if the proposed yield state leads to post-peak material behaviour. If so, the material is forced to behave in post-peak in order to avoid equation switching during Newton's method in the PlasticLoop routines.

Parameters
[in]sigmastress state
[in]AThermo Force

Definition at line 51 of file TPZYCTresca.h.

References Compute(), and N().

◆ Write()

void TPZYCTresca::Write ( TPZStream buf,
int  withclassid 
) const
inlineoverridevirtual

Writes this object to the TPZStream buffer. Include the classid if withclassid = true.

Writes this object to the TPZStream buffer. Include the classid if withclassid = true

Reimplemented from TPZSavable.

Reimplemented in TPZYCTrescaRegularized.

Definition at line 102 of file TPZYCTresca.h.

◆ YieldFunction()

void TPZYCTresca::YieldFunction ( const TPZVec< STATE > &  sigma,
STATE  kprev,
TPZVec< STATE > &  yield 
) const
inlineoverridevirtual

Member Data Documentation

◆ gRefTension

TPZTensor<REAL> TPZYCTresca::gRefTension
static

Definition at line 146 of file TPZYCTresca.h.

Referenced by ComputeTangent(), and Residual().


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