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

an helper class describing the equivalent stress on which a generalised porous stress criterion is built. More...

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

Public Types

using Role = StressCriterion::Role
 a simple alias

Public Member Functions

 PorousStressCriterionEquivalentStress (const std::string &)
 constructor
void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const std::string &, const tfel::utilities::DataMap &, const Role)
 create and initialize the equivalent stress
void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &, const Role)
 method called at the end of the input file processing
std::string computeElasticPrediction (const std::string &, const BehaviourDescription &, const StressPotential &) const
std::string computeCriterion (const std::string &, const BehaviourDescription &, const StressPotential &) const
std::string computeNormal (const std::string &, const BehaviourDescription &, const StressPotential &, const Role) const
std::string computeNormalDerivative (const std::string &, const BehaviourDescription &, const StressPotential &, const Role) const
 ~PorousStressCriterionEquivalentStress ()
 destructor

Static Public Member Functions

static OptionDescription getOption ()

Detailed Description

an helper class describing the equivalent stress on which a generalised porous stress criterion is built.

A generalised porous stress criterion is a porous stress criterion in which the von Mises stress is replaced by an equivalent stress chosen by the user among the available stress criteria. This class handles the equivalent_stress option of such a criterion and generates the calls to the functions of the TFEL/Material library, which are assumed to have the following names and arguments, <name> being the name of the porous stress criterion:

  • compute<name>Stress(s, seq, f, params, seps),
  • compute<name>StressNormal(s, seq, dseq_ds, f, params, seps),
  • compute<name>StressSecondDerivative(s, seq, dseq_ds, d2seq_dsds, f, params, seps),

where seq, dseq_ds and d2seq_dsds are the equivalent stress and its first and second derivatives with respect to the stress.

Constructor & Destructor Documentation

◆ PorousStressCriterionEquivalentStress()

mfront::bbrick::PorousStressCriterionEquivalentStress::PorousStressCriterionEquivalentStress ( const std::string & )
explicit

constructor

Parameters
[in]nname of the porous stress criterion

Member Function Documentation

◆ computeCriterion()

std::string mfront::bbrick::PorousStressCriterionEquivalentStress::computeCriterion ( const std::string & ,
const BehaviourDescription & ,
const StressPotential &  ) const
nodiscard
Returns
the code computing the porous stress criterion.
Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential

◆ computeElasticPrediction()

std::string mfront::bbrick::PorousStressCriterionEquivalentStress::computeElasticPrediction ( const std::string & ,
const BehaviourDescription & ,
const StressPotential &  ) const
nodiscard
Returns
the code computing the elastic prediction of the porous stress criterion.
Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential

◆ computeNormal()

std::string mfront::bbrick::PorousStressCriterionEquivalentStress::computeNormal ( const std::string & ,
const BehaviourDescription & ,
const StressPotential & ,
const Role  ) const
nodiscard
Returns
the code computing the porous stress criterion and its normal.
Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential
[in]rrole of the porous stress criterion

◆ computeNormalDerivative()

std::string mfront::bbrick::PorousStressCriterionEquivalentStress::computeNormalDerivative ( const std::string & ,
const BehaviourDescription & ,
const StressPotential & ,
const Role  ) const
nodiscard
Returns
the code computing the porous stress criterion, its normal and the derivatives of the normal.
Parameters
[in]idflow id
[in]bdbehaviour description
[in]spstress potential
[in]rrole of the porous stress criterion

◆ endTreatment()

void mfront::bbrick::PorousStressCriterionEquivalentStress::endTreatment ( BehaviourDescription & ,
const AbstractBehaviourDSL & ,
const std::string & ,
const Role  )

method called at the end of the input file processing

Parameters
[in]bdbehaviour description
[in]dslabstract behaviour dsl
[in]idflow id
[in]rrole of the porous stress criterion

◆ getOption()

OptionDescription mfront::bbrick::PorousStressCriterionEquivalentStress::getOption ( )
staticnodiscard
Returns
the description of the equivalent_stress option

◆ initialize()

void mfront::bbrick::PorousStressCriterionEquivalentStress::initialize ( BehaviourDescription & ,
AbstractBehaviourDSL & ,
const std::string & ,
const tfel::utilities::DataMap & ,
const Role  )

create and initialize the equivalent stress

Parameters
[in,out]bdbehaviour description
[in,out]dslabstract behaviour dsl
[in]idflow id
[in]doptions of the porous stress criterion
[in]rrole of the porous stress criterion

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