tfel
Loading...
Searching...
No Matches
mfront::bbrick::StressPotential Struct Referenceabstract

class describing the computation of the stress. More...

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

Inheritance diagram for mfront::bbrick::StressPotential:
mfront::bbrick::HookeStressPotentialBase mfront::bbrick::HookeStressPotential mfront::bbrick::ScalarDamageHookeStressPotentialBase mfront::bbrick::DDIF2StressPotential mfront::bbrick::ScalarDamageHookeStressPotential

Public Types

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

Public Member Functions

virtual std::string getName () const =0
virtual std::vector< OptionDescription > getOptions (const BehaviourDescription &, const bool) const =0
virtual void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const DataMap &)=0
virtual std::vector< Hypothesis > getSupportedModellingHypotheses (const BehaviourDescription &, const AbstractBehaviourDSL &) const =0
 This method returns the list of supported modelling hypotheses that are supported by the stress potential.
virtual void completeVariableDeclaration (BehaviourDescription &, const AbstractBehaviourDSL &) const =0
 complete the variable description
virtual void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &) const =0
 method called at the end of the input file processing
virtual std::vector< std::tuple< std::string, std::string, mfront::SupportedTypes::TypeFlag > > getStressDerivatives (const BehaviourDescription &bd) const =0
virtual std::string generateImplicitEquationDerivatives (const BehaviourDescription &, const std::string &, const std::string &, const std::string &, const bool) const =0
 write the jacobian blocks corresponding the derivative of implicit equation associated with a variable \(v\) knowing the derivative of \(\frac{d\,v}{d\underline{s}}\) where \(\underline{s}\) is the effective stress.
virtual void computeElasticPrediction (BehaviourDescription &) const =0
 add the lines that defines sigel, the elastic prediction of the stress. This definition is added to the BehaviourData::BeforeInitializeLocalVariables code block.
virtual std::string getStressNormalisationFactor (const BehaviourDescription &) const =0
 return an expression that can be used to normalise implicit equations of the order of the stress
virtual std::string getEquivalentStressLowerBound (const BehaviourDescription &) const =0
 return an expression that can be used as a lower bound for the equivalent stress,
virtual ~StressPotential ()
 destructor

Detailed Description

class describing the computation of the stress.

Member Function Documentation

◆ completeVariableDeclaration()

virtual void mfront::bbrick::StressPotential::completeVariableDeclaration ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
pure virtual

complete the variable description

Parameters
[in]dslabstract behaviour dsl

Implemented in mfront::bbrick::DDIF2StressPotential, and mfront::bbrick::HookeStressPotentialBase.

◆ computeElasticPrediction()

virtual void mfront::bbrick::StressPotential::computeElasticPrediction ( BehaviourDescription & ) const
pure virtual

add the lines that defines sigel, the elastic prediction of the stress. This definition is added to the BehaviourData::BeforeInitializeLocalVariables code block.

Parameters
[in/out]bd: behaviour description

Implemented in mfront::bbrick::HookeStressPotentialBase.

◆ endTreatment()

virtual void mfront::bbrick::StressPotential::endTreatment ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
pure virtual

method called at the end of the input file processing

Parameters
[in/out]bd: behaviour description
[in]dslabstract behaviour dsl

Implemented in mfront::bbrick::DDIF2StressPotential, mfront::bbrick::HookeStressPotentialBase, and mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ generateImplicitEquationDerivatives()

virtual std::string mfront::bbrick::StressPotential::generateImplicitEquationDerivatives ( const BehaviourDescription & ,
const std::string & ,
const std::string & ,
const std::string & ,
const bool  ) const
nodiscardpure virtual

write the jacobian blocks corresponding the derivative of implicit equation associated with a variable \(v\) knowing the derivative of \(\frac{d\,v}{d\underline{s}}\) where \(\underline{s}\) is the effective stress.

Parameters
[in,out]bdbehaviour description
[in]tvariable type
[in]vvariable name
[in]dfv_dsderivative of the implicit equation associated to v with respect to the effective stress
[in]bboolean static that the flow criterion is deviatoric

Implemented in mfront::bbrick::HookeStressPotential, and mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ getEquivalentStressLowerBound()

virtual std::string mfront::bbrick::StressPotential::getEquivalentStressLowerBound ( const BehaviourDescription & ) const
nodiscardpure virtual

return an expression that can be used as a lower bound for the equivalent stress,

Parameters
[in]bdbehaviour description

Implemented in mfront::bbrick::HookeStressPotentialBase.

◆ getName()

virtual std::string mfront::bbrick::StressPotential::getName ( ) const
nodiscardpure virtual
Returns
the name of the stress potential

Implemented in mfront::bbrick::DDIF2StressPotential, and mfront::bbrick::HookeStressPotentialBase.

◆ getOptions()

virtual std::vector< OptionDescription > mfront::bbrick::StressPotential::getOptions ( const BehaviourDescription & ,
const bool  ) const
nodiscardpure virtual
Parameters
[in]bdbehavour description
[in]bif true, all options are returned. Otherwise, only the most adapted options for the behaviour are returned.
Returns
the stress potential option description

Implemented in mfront::bbrick::DDIF2StressPotential, mfront::bbrick::HookeStressPotentialBase, and mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ getStressDerivatives()

virtual std::vector< std::tuple< std::string, std::string, mfront::SupportedTypes::TypeFlag > > mfront::bbrick::StressPotential::getStressDerivatives ( const BehaviourDescription & bd) const
nodiscardpure virtual
Returns
a vector of tuples giving information about the stress derivatives. Each tuple contains:
  • the expression of the stress derivative.
  • the name of the variable with respect to which, the stress has been derived.
  • the type of the variable with respect to which, the stress has been derived.
Parameters
[in]bdbehaviour description

Implemented in mfront::bbrick::HookeStressPotential, and mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ getStressNormalisationFactor()

virtual std::string mfront::bbrick::StressPotential::getStressNormalisationFactor ( const BehaviourDescription & ) const
nodiscardpure virtual

return an expression that can be used to normalise implicit equations of the order of the stress

Parameters
[in]bdbehaviour description

Implemented in mfront::bbrick::HookeStressPotentialBase.

◆ getSupportedModellingHypotheses()

virtual std::vector< Hypothesis > mfront::bbrick::StressPotential::getSupportedModellingHypotheses ( const BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
nodiscardpure virtual

This method returns the list of supported modelling hypotheses that are supported by the stress potential.

This method is called after the input file processing. Two cases may arise:

  • if the user has specified a list of supported modelling hypotheses, this list is used to check if the user's request can be fulfilled. If the stress potential returns an empty list, it means that the stress potential does not have any restriction.
  • if the user has not specified the list of supported modelling hypotheses, this method is used to select a list of supported modelling hypotheses. If the stress potential returns an empty list, it means that the stress potential does not participate to the modelling hypotheses selection. If all the stress potentials returns an empty list, a set of default modelling hypotheses is selected.
Parameters
[in/out]bd: behaviour description
[in]dslabstract behaviour dsl

Implemented in mfront::bbrick::HookeStressPotentialBase.

◆ initialize()

virtual void mfront::bbrick::StressPotential::initialize ( BehaviourDescription & ,
AbstractBehaviourDSL & ,
const DataMap &  )
pure virtual
Parameters
[in,out]bdbehaviour description
[in,out]dslabstract behaviour dsl
[in]doptions

Implemented in mfront::bbrick::DDIF2StressPotential, mfront::bbrick::HookeStressPotentialBase, and mfront::bbrick::ScalarDamageHookeStressPotentialBase.


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