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

#include <TPZYCModifiedMohrCoulomb.h>

Inheritance diagram for TPZYCModifiedMohrCoulomb:
[legend]
Collaboration diagram for TPZYCModifiedMohrCoulomb:
[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 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...
 
void SetYieldStatusMode (const TPZTensor< REAL > &sigma, const REAL &A)
 
void SetUp (const REAL &phi)
 
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 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
 

Public Attributes

REAL fPhi
 

Protected Attributes

REAL fCoesion
 
REAL fPi
 

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 17 of file TPZYCModifiedMohrCoulomb.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NYield 

Definition at line 21 of file TPZYCModifiedMohrCoulomb.h.

Member Function Documentation

◆ AlphaMultiplier()

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

Multiplicador para o caso onde utilizamos uma variavel de dano modificada

Definition at line 120 of file TPZYCModifiedMohrCoulomb.h.

◆ ClassId()

int TPZYCModifiedMohrCoulomb::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 12 of file TPZYCModifiedMohrCoulomb.cpp.

References Hash().

◆ Compute()

template<class T >
void TPZYCModifiedMohrCoulomb::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]resultDerivative
[in]checkForcedYieldindicates wether to force post-peak failure behavior

Definition at line 153 of file TPZYCModifiedMohrCoulomb.h.

References cos(), DebugStop, TPZTensor< T >::Eigenvalue(), fFlag, fFlag1, fFlag2, fPhi, TPZTensor< T >::I1(), TPZTensor< T >::J2(), sin, sqrt, TPZExtractVal::val(), TPZTensor< T >::XX(), TPZTensor< T >::YY(), and TPZTensor< T >::ZZ().

Referenced by SetUp(), and YieldFunction().

◆ GetForceYield()

int TPZYCModifiedMohrCoulomb::GetForceYield ( )
inline

Definition at line 36 of file TPZYCModifiedMohrCoulomb.h.

◆ GetNYield()

virtual int TPZYCModifiedMohrCoulomb::GetNYield ( ) const
inlineoverridevirtual

Implements TPZPlasticCriterion.

Definition at line 133 of file TPZYCModifiedMohrCoulomb.h.

References as_integer(), and NYield.

◆ H()

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

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 354 of file TPZYCModifiedMohrCoulomb.h.

References cos(), fFlag, fFlag1, fFlag2, fPhi, sin, and sqrt.

Referenced by SetUp().

◆ N()

template<class T >
void TPZYCModifiedMohrCoulomb::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 260 of file TPZYCModifiedMohrCoulomb.h.

References TPZTensor< T >::Add(), TPZTensor< T >::Eigenvalue(), fFlag, fFlag1, fFlag2, fPhi, TPZTensor< T >::J2(), TPZTensor< T >::S(), sin, sqrt, TPZTensor< T >::XX(), TPZTensor< T >::YY(), and TPZTensor< T >::ZZ().

Referenced by SetUp().

◆ Name()

const char* TPZYCModifiedMohrCoulomb::Name ( ) const
inline

Definition at line 26 of file TPZYCModifiedMohrCoulomb.h.

Referenced by Print().

◆ Print()

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

Reimplemented from TPZPlasticCriterion.

Definition at line 31 of file TPZYCModifiedMohrCoulomb.h.

References Name().

◆ Read()

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

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 52 of file TPZYCModifiedMohrCoulomb.h.

References fCoesion, fPhi, fPi, and TPZStream::Read().

◆ SetForceYield()

void TPZYCModifiedMohrCoulomb::SetForceYield ( const int  forceYield)
inline

Definition at line 41 of file TPZYCModifiedMohrCoulomb.h.

◆ SetUp()

void TPZYCModifiedMohrCoulomb::SetUp ( const REAL &  phi)
inline

Setup of material parameters

Parameters
[in]phiMohr Coulomb's internal friction angle VERY IMPORTANT!! The ThermoForceA parameters should be set as: fk: Herdening slope for the cohesion fYield0 : equivalent Mohr Coulomb cohesion C

Definition at line 78 of file TPZYCModifiedMohrCoulomb.h.

References Compute(), fCoesion, fPhi, fPi, h, H(), and N().

◆ SetYieldStatusMode()

void TPZYCModifiedMohrCoulomb::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 65 of file TPZYCModifiedMohrCoulomb.h.

◆ Write()

void TPZYCModifiedMohrCoulomb::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 46 of file TPZYCModifiedMohrCoulomb.h.

References fCoesion, fPhi, fPi, and TPZStream::Write().

◆ YieldFunction()

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

Member Data Documentation

◆ fCoesion

REAL TPZYCModifiedMohrCoulomb::fCoesion
protected

Definition at line 144 of file TPZYCModifiedMohrCoulomb.h.

Referenced by Read(), SetUp(), and Write().

◆ fPhi

REAL TPZYCModifiedMohrCoulomb::fPhi

Definition at line 139 of file TPZYCModifiedMohrCoulomb.h.

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

◆ fPi

REAL TPZYCModifiedMohrCoulomb::fPi
protected

Definition at line 144 of file TPZYCModifiedMohrCoulomb.h.

Referenced by Read(), SetUp(), and Write().


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