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

#include <tpzycvonmisescombtresca.h>

Inheritance diagram for TPZYCVonMisesCombTresca:
[legend]
Collaboration diagram for TPZYCVonMisesCombTresca:
[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)
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
 TPZYCVonMisesCombTresca ()
 Constructor. More...
 
template<class T >
void Compute (const TPZTensor< T > &sigma, const T &A, TPZVec< T > &res, 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 YieldFunction (const TPZVec< STATE > &sigma, STATE kprev, TPZVec< STATE > &yield) const override
 
virtual int GetNYield () const override
 
- 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
 

Protected Attributes

TPZYCVonMises fVonMises
 Pointer to Von Mises's yield criteria object. More...
 
TPZYCTrescaRegularized fTresca
 Pointer to Tresca's yield criteria object. 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

Author
LabMeC

Definition at line 16 of file tpzycvonmisescombtresca.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NYield 

Definition at line 79 of file tpzycvonmisescombtresca.h.

Constructor & Destructor Documentation

◆ TPZYCVonMisesCombTresca()

TPZYCVonMisesCombTresca::TPZYCVonMisesCombTresca ( )
inline

Constructor.

Definition at line 139 of file tpzycvonmisescombtresca.h.

Member Function Documentation

◆ AlphaMultiplier()

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

Multiplicador para o caso onde utilizamos uma variavel de dano modificada

Definition at line 118 of file tpzycvonmisescombtresca.h.

◆ ClassId()

int TPZYCVonMisesCombTresca::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.

Definition at line 4 of file tpzycvonmisescombtresca.cpp.

References Hash().

◆ Compute()

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

Calculo do criterio de plastificacao

Parameters
[in]sigmatensao atual
[in]Aforca thermodinamica atual
[out]resDerivative
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 145 of file tpzycvonmisescombtresca.h.

References TPZYCTrescaRegularized::Compute(), TPZYCVonMises::Compute(), cos(), fTresca, fVonMises, LOGPZ_DEBUG, LOGPZ_ERROR, TPZVec< T >::NElements(), and test::res.

Referenced by YieldFunction().

◆ GetForceYield()

int TPZYCVonMisesCombTresca::GetForceYield ( )
inline

Definition at line 38 of file tpzycvonmisescombtresca.h.

◆ GetNYield()

virtual int TPZYCVonMisesCombTresca::GetNYield ( ) const
inlineoverridevirtual

Implements TPZPlasticCriterion.

Definition at line 131 of file tpzycvonmisescombtresca.h.

References as_integer(), and NYield.

◆ H()

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

Derivada da funcao de plastificacao com respeito a forca termodinamica

Parameters
[in]sigmatensao atual
[in]Aforca termodinamica atual
[out]hDerivada com respeito a forca termodinamica
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 204 of file tpzycvonmisescombtresca.h.

References fTresca, fVonMises, TPZYCTresca::H(), TPZYCVonMises::H(), LOGPZ_ERROR, and TPZVec< T >::NElements().

◆ N()

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

Derivada da funcao de plastificacao

Parameters
[in]sigmatensao atual
[in]Aforca termodinamica atual
[out]NDirDerivada com respeito a tensao
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 180 of file tpzycvonmisescombtresca.h.

References fTresca, fVonMises, LOGPZ_ERROR, TPZYCTrescaRegularized::N(), and TPZYCVonMises::N().

◆ Name()

const char* TPZYCVonMisesCombTresca::Name ( ) const
inline

Definition at line 24 of file tpzycvonmisescombtresca.h.

Referenced by Print().

◆ Print()

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

◆ Read()

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

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 65 of file tpzycvonmisescombtresca.h.

References fTresca, fVonMises, TPZYCTrescaRegularized::Read(), and TPZYCVonMises::Read().

◆ SetForceYield()

void TPZYCVonMisesCombTresca::SetForceYield ( const int  forceYield)
inline

Definition at line 43 of file tpzycvonmisescombtresca.h.

◆ SetYieldStatusMode()

void TPZYCVonMisesCombTresca::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 55 of file tpzycvonmisescombtresca.h.

◆ Write()

void TPZYCVonMisesCombTresca::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.

Definition at line 60 of file tpzycvonmisescombtresca.h.

References fTresca, fVonMises, TPZYCTrescaRegularized::Write(), and TPZYCVonMises::Write().

◆ YieldFunction()

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

Member Data Documentation

◆ fTresca

TPZYCTrescaRegularized TPZYCVonMisesCombTresca::fTresca
protected

Pointer to Tresca's yield criteria object.

Definition at line 75 of file tpzycvonmisescombtresca.h.

Referenced by Compute(), H(), N(), Print(), Read(), and Write().

◆ fVonMises

TPZYCVonMises TPZYCVonMisesCombTresca::fVonMises
protected

Pointer to Von Mises's yield criteria object.

Definition at line 72 of file tpzycvonmisescombtresca.h.

Referenced by Compute(), H(), N(), Print(), Read(), and Write().


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