tfel
Loading...
Searching...
No Matches
mfront::bbrick::StandardPorousStressCriterionBase Struct Reference

an helper class used to build a stress criterion. This class is meant to interface criterion described in the TFEL/Material library. The criterion is assumed to be coupled with the porosity evolution. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/BehaviourBrick/StandardPorousStressCriterionBase.hxx>

Inheritance diagram for mfront::bbrick::StandardPorousStressCriterionBase:
mfront::bbrick::StressCriterionBase mfront::bbrick::StressCriterion mfront::bbrick::GursonTvergaardNeedleman1982StressCriterion mfront::bbrick::MichelAndSuquet1992HollowSphereStressCriterion mfront::bbrick::RousselierTanguyBesson2002StressCriterion mfront::bbrick::GeneralisedGursonTvergaardNeedlemanStressCriterion mfront::bbrick::GeneralisedRousselierTanguyBessonStressCriterion

Public Member Functions

 StandardPorousStressCriterionBase (const std::string &n)
 constructor
void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const std::string &, const DataMap &, const Role) override
void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &, const Role) override
std::string computeElasticPrediction (const std::string &, const BehaviourDescription &, const StressPotential &) const override
std::string computeCriterion (const std::string &, const BehaviourDescription &, const StressPotential &) const override
std::string computeNormal (const std::string &, const BehaviourDescription &, const StressPotential &, const Role) const override
std::string computeNormalDerivative (const std::string &, const BehaviourDescription &, const StressPotential &, const Role) const override
 return the code computing the criterion, its derivative, and its second derivative.
bool isCoupledWithPorosityEvolution () const final
bool isNormalDeviatoric () const final
 ~StandardPorousStressCriterionBase () override
 destructor
Public Member Functions inherited from mfront::bbrick::StressCriterionBase
void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const std::string &, const DataMap &, const Role) override
void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &, const Role) override
std::vector< OptionDescription > getOptions () const override
std::string updatePorosityUpperBound (const BehaviourDescription &, const std::string &, const Role) const override
 ~StressCriterionBase () override
 destructor
Public Member Functions inherited from mfront::bbrick::StressCriterion
virtual std::vector< BehaviourSymmetry > getSupportedBehaviourSymmetries () const =0
virtual PorosityEffectOnFlowRule getPorosityEffectOnEquivalentPlasticStrain () const =0
virtual ~StressCriterion ()
 destructor

Protected Member Functions

virtual void initializeMissingMaterialProperty (const std::string &)
 initialize a material property not defined by the user
virtual std::string generateMissingMaterialPropertyInitializationCode (BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &, const Role, const std::string &)
 generate the initialization code for a a material property not defined by the user.

Additional Inherited Members

Public Types inherited from mfront::bbrick::StressCriterion
enum  PorosityEffectOnFlowRule { NO_POROSITY_EFFECT_ON_EQUIVALENT_PLASTIC_STRAIN , STANDARD_POROSITY_CORRECTION_ON_EQUIVALENT_PLASTIC_STRAIN }
 policy on how the porosity affects the flow rule More...
enum  Role { STRESSCRITERION , FLOWCRITERION , STRESSANDFLOWCRITERION }
 describe the purpose of the criterion More...
using Data = tfel::utilities::Data
 a simple alias
using DataMap = tfel::utilities::DataMap
 a simple alias
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
using BehaviourSymmetry = mfront::BehaviourSymmetryType
 a simple alias
using MaterialProperty = BehaviourDescription::MaterialProperty
 a simple alias
Static Public Member Functions inherited from mfront::bbrick::StressCriterion
static std::string getVariableId (const std::string &, const std::string &, const Role)

Detailed Description

an helper class used to build a stress criterion. This class is meant to interface criterion described in the TFEL/Material library. The criterion is assumed to be coupled with the porosity evolution.

Constructor & Destructor Documentation

◆ StandardPorousStressCriterionBase()

mfront::bbrick::StandardPorousStressCriterionBase::StandardPorousStressCriterionBase ( const std::string & n)
explicit

constructor

Parameters
[in]nname of the stress criterion

Member Function Documentation

◆ computeCriterion()

std::string mfront::bbrick::StandardPorousStressCriterionBase::computeCriterion ( const std::string & ,
const BehaviourDescription & ,
const StressPotential &  ) const
nodiscardoverridevirtual
Returns
the code computing the criterion. The code defines a variable named "seq"+id.
Note
this is only meaningful if the criterion' role is STRESSCRITERION or STRESSANDFLOWCRITERION.
Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential

Implements mfront::bbrick::StressCriterion.

◆ computeElasticPrediction()

std::string mfront::bbrick::StandardPorousStressCriterionBase::computeElasticPrediction ( const std::string & ,
const BehaviourDescription & ,
const StressPotential &  ) const
nodiscardoverridevirtual
Returns
the code that defines seqel+id, the elastic prediction of the criterion.
Note
this is only meaningful if the criterion' role is STRESSCRITERION or STRESSANDFLOWCRITERION.
Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential

Implements mfront::bbrick::StressCriterion.

◆ computeNormal()

std::string mfront::bbrick::StandardPorousStressCriterionBase::computeNormal ( const std::string & ,
const BehaviourDescription & ,
const StressPotential & ,
const Role  ) const
nodiscardoverridevirtual
Returns
the code computing the criterion and its normal.

If the criterion' role is STRESSCRITERION, the code defines two variables named "seq"+id and "dseq"+id+"_ds"+id. The code may also define a variable named "iseq"+id meant for internal use.

If the criterion' role is FLOWCRITERION, the code defines a variable "n"+id. The code may also define two variables respectively named "seqf"+id and "iseqf"+id meant for internal use.

If the criterion' role is STRESSANDFLOWCRITERION, the code defines two variables named "seq"+id and "dseq"+id+"ds"+id. A reference named "n"+id to "dseq"+id+"_ds"+id is also defined. For internal use, the code may also define a variable named "iseq"+id.

Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential
[in]rcriterion' role

Implements mfront::bbrick::StressCriterion.

◆ computeNormalDerivative()

std::string mfront::bbrick::StandardPorousStressCriterionBase::computeNormalDerivative ( const std::string & ,
const BehaviourDescription & ,
const StressPotential & ,
const Role  ) const
nodiscardoverridevirtual

return the code computing the criterion, its derivative, and its second derivative.

If the criterion' role is STRESSCRITERION, the code defines three variables named "seq"+id, "dseq"+id+"ds"+id and "d2seq"+id+"_ds"+id+"_ds"+id. The code may also define a variable named "iseq"+id meant for internal use.

If the criterion' role is FLOWCRITERION, the code defines two variables named "n"+id and "dn"+id+"_ds"+id. The code may also define two variables respectively named "seqf"+id and "iseqf"+id meant for internal use.

If the criterion' role is STRESSANDFLOWCRITERION the code defines:

  • three variables named "seq"+id, "dseq"+id+"ds"+id and "d2seq"+id+"_ds"+id+"_ds"+id.
  • a reference named "n"+id to "dseq"+id+"ds"+id.
  • a reference named "dn"+id+"ds"+id to "d2seq"+id+"_ds"+id+"_ds"+id. The code may also define a variable named "iseq"+id meant for internal use.
    Parameters
    [in]idflow id
    [in]bdbehaviour description
    [in]spstress potential
    [in]rcriterion' role

Implements mfront::bbrick::StressCriterion.

◆ endTreatment()

void mfront::bbrick::StandardPorousStressCriterionBase::endTreatment ( BehaviourDescription & ,
const AbstractBehaviourDSL & ,
const std::string & ,
const Role  )
overridevirtual
Parameters
[in,out]bdbehaviour description
[in,out]dslabstract behaviour dsl
[in]idflow id
[in]rcriterion' role

Implements mfront::bbrick::StressCriterion.

◆ generateMissingMaterialPropertyInitializationCode()

virtual std::string mfront::bbrick::StandardPorousStressCriterionBase::generateMissingMaterialPropertyInitializationCode ( BehaviourDescription & ,
const AbstractBehaviourDSL & ,
const std::string & ,
const Role ,
const std::string &  )
nodiscardprotectedvirtual

generate the initialization code for a a material property not defined by the user.

Parameters
[in]bdbehaviour description
[in]dslabstract behaviour dsl
[in]ididentifier
[in]rrole
[in]nname of the material property

Reimplemented in mfront::bbrick::GursonTvergaardNeedleman1982StressCriterion.

◆ initialize()

void mfront::bbrick::StandardPorousStressCriterionBase::initialize ( BehaviourDescription & ,
AbstractBehaviourDSL & ,
const std::string & ,
const DataMap & ,
const Role  )
overridevirtual
Parameters
[in,out]bdbehaviour description
[in,out]dslabstract behaviour dsl
[in]idflow id
[in]doptions
[in]rcriterion' role

Implements mfront::bbrick::StressCriterion.

◆ initializeMissingMaterialProperty()

virtual void mfront::bbrick::StandardPorousStressCriterionBase::initializeMissingMaterialProperty ( const std::string & )
protectedvirtual

initialize a material property not defined by the user

Parameters
[in]nname of the material property

Reimplemented in mfront::bbrick::GursonTvergaardNeedleman1982StressCriterion.

◆ isCoupledWithPorosityEvolution()

bool mfront::bbrick::StandardPorousStressCriterionBase::isCoupledWithPorosityEvolution ( ) const
nodiscardfinalvirtual
Returns
if the the flow is coupled with the porosity evolution

Implements mfront::bbrick::StressCriterion.

◆ isNormalDeviatoric()

bool mfront::bbrick::StandardPorousStressCriterionBase::isNormalDeviatoric ( ) const
nodiscardfinalvirtual
Returns
if the normal is deviatoric

Implements mfront::bbrick::StressCriterion.


The documentation for this struct was generated from the following file: