tfel
Loading...
Searching...
No Matches
mfront::bbrick::StandardStressCriterionBase 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 uncoupled with the porosity evolution. More...

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

Inheritance diagram for mfront::bbrick::StandardStressCriterionBase:
mfront::bbrick::StressCriterionBase mfront::bbrick::StressCriterion

Public Member Functions

 StandardStressCriterionBase (const std::string &n)
 constructor
std::string computeElasticPrediction (const std::string &, const BehaviourDescription &, const StressPotential &) const override
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 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
PorosityEffectOnFlowRule getPorosityEffectOnEquivalentPlasticStrain () const final
 ~StandardStressCriterionBase () 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 bool isNormalDeviatoric () const =0
virtual ~StressCriterion ()
 destructor

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 uncoupled with the porosity evolution.

Constructor & Destructor Documentation

◆ StandardStressCriterionBase()

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

constructor

Parameters
[in]nname of the stress criterion

Member Function Documentation

◆ computeCriterion()

std::string mfront::bbrick::StandardStressCriterionBase::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::StandardStressCriterionBase::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::StandardStressCriterionBase::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::StandardStressCriterionBase::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::StandardStressCriterionBase::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.

◆ getPorosityEffectOnEquivalentPlasticStrain()

PorosityEffectOnFlowRule mfront::bbrick::StandardStressCriterionBase::getPorosityEffectOnEquivalentPlasticStrain ( ) const
nodiscardfinalvirtual
Returns
if using this stress criterion generally implies a correction of the flow rule

Implements mfront::bbrick::StressCriterion.

◆ initialize()

void mfront::bbrick::StandardStressCriterionBase::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.

◆ isCoupledWithPorosityEvolution()

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

Implements mfront::bbrick::StressCriterion.


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