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

class describing the computation of the stress through the standard Hooke law. More...

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

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

Public Member Functions

 HookeStressPotentialBase ()
 constructor
void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const DataMap &) override
void completeVariableDeclaration (BehaviourDescription &, const AbstractBehaviourDSL &) const override
 complete the variable description
void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &) const override
 method called at the end of the input file processing
void computeElasticPrediction (BehaviourDescription &) const override
 add the lines that defines sigel, the elastic prediction of the stress. This definition is added to the BehaviourData::BeforeInitializeLocalVariables code block.
std::string getName () const override
std::vector< OptionDescription > getOptions (const BehaviourDescription &, const bool) const override
std::vector< Hypothesis > getSupportedModellingHypotheses (const BehaviourDescription &, const AbstractBehaviourDSL &) const override
 This method returns the list of supported modelling hypotheses that are supported by the stress potential.
std::string getStressNormalisationFactor (const BehaviourDescription &) const override
 return an expression that can be used to normalise implicit equations of the order of the stress
std::string getEquivalentStressLowerBound (const BehaviourDescription &) const override
 return an expression that can be used as a lower bound for the equivalent stress,
 ~HookeStressPotentialBase () override
 destructor
Public Member Functions inherited from mfront::bbrick::StressPotential
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 ~StressPotential ()
 destructor

Static Public Member Functions

static std::vector< OptionDescription > getIsotropicBehaviourOptions ()
static std::vector< OptionDescription > getOrthotropicBehaviourElasticMaterialPropertiesOptions ()
static std::vector< OptionDescription > getOrthotropicBehaviourOptions ()
static std::vector< OptionDescription > getGeneralOptions ()
 get options only valid for all behaviours

Static Public Attributes

static const char *const residualStiffnessFactor
 name of the parameter holding the factor used to determine the residual stiffness

Protected Member Functions

virtual void declareComputeStressWhenStiffnessTensorIsDefined (BehaviourDescription &) const =0
 declared the BehaviourData::ComputeStress and BehaviourData::ComputeFinalStress code blocks when either the BehaviourDescription::requiresStiffnessTensor attribute or the BehaviourDescription::computesStiffnessTensor attribute has been set.
virtual void declareComputeStressForIsotropicBehaviour (BehaviourDescription &, LocalDataStructure &) const =0
 complete the variable description in the case of isotropic behaviours when the stiffness tensor is not defined. This method is meant to define the BehaviourData::ComputeStress and BehaviourData::ComputeFinalStress code blocks.
virtual void declareComputeStressForOrthotropicBehaviour (BehaviourDescription &) const
 treat the case of orthotropic behaviours when the stiffness tensor is not defined. This case is generally not supported and lead to an error.
virtual void addAxisymmetricalGeneralisedPlaneStressSupport (BehaviourDescription &, const AbstractBehaviourDSL &) const
 add support for the AXISYMMETRICALGENERALISEDPLANESTRESS modelling hypothesis
virtual void addPlaneStressSupport (BehaviourDescription &, const AbstractBehaviourDSL &) const
 add support for the PLANESTRESS modelling hypothesis
virtual void addBrokenOperatorSupport (BehaviourDescription &, const std::string &) const
 when a variable with the glossary name broken is declared, this method adds the computation of a residual stiffness matrix at the beginning of the given code block.
virtual void addBrokenPredictionOperatorSupport (BehaviourDescription &) const
 when a variable with the glossary name broken is declared, this method adds the computation of a residual stiffness matrix.
virtual void addGenericPredictionOperatorSupport (BehaviourDescription &) const =0
 add the generic prediction operator computation.
virtual void addBrokenTangentOperatorSupport (BehaviourDescription &) const
 when a variable with the glossary name broken is declared, this method adds the computation of a residual stiffness matrix.
virtual void addGenericTangentOperatorSupport (BehaviourDescription &, const AbstractBehaviourDSL &) const =0
 add the generic tangent operator computation
virtual void declareComputeElasticPredictionMethod (BehaviourDescription &) const =0
 declare the compute elastic prediction method

Protected Attributes

bool pss = true
 plane stress support;
bool gto = true
 generic tangent operator support
bool gpo = true
 generic prediction operator support

Additional Inherited Members

Public Types inherited from mfront::bbrick::StressPotential
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

Detailed Description

class describing the computation of the stress through the standard Hooke law.

Member Function Documentation

◆ addAxisymmetricalGeneralisedPlaneStressSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addAxisymmetricalGeneralisedPlaneStressSupport ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
protectedvirtual

add support for the AXISYMMETRICALGENERALISEDPLANESTRESS modelling hypothesis

Parameters
[in]bdbehaviour description
[in]dslbehaviour domain language

Reimplemented in mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ addBrokenOperatorSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addBrokenOperatorSupport ( BehaviourDescription & ,
const std::string &  ) const
protectedvirtual

when a variable with the glossary name broken is declared, this method adds the computation of a residual stiffness matrix at the beginning of the given code block.

Parameters
[in]bdbehaviour description
[in]ccode block name.

◆ addBrokenPredictionOperatorSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addBrokenPredictionOperatorSupport ( BehaviourDescription & ) const
protectedvirtual

when a variable with the glossary name broken is declared, this method adds the computation of a residual stiffness matrix.

Parameters
[in]bdbehaviour description

◆ addBrokenTangentOperatorSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addBrokenTangentOperatorSupport ( BehaviourDescription & ) const
protectedvirtual

when a variable with the glossary name broken is declared, this method adds the computation of a residual stiffness matrix.

Parameters
[in]bdbehaviour description
[in]dslbehaviour domain language

◆ addGenericPredictionOperatorSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addGenericPredictionOperatorSupport ( BehaviourDescription & ) const
protectedpure virtual

add the generic prediction operator computation.

Parameters
[in]bdbehaviour description
Note
this method is called after addBrokenPredictionOperatorSupport

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

◆ addGenericTangentOperatorSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addGenericTangentOperatorSupport ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
protectedpure virtual

add the generic tangent operator computation

Parameters
[in]bdbehaviour description
[in]dslbehaviour domain language
Note
this method is called after addBrokenTangentOperatorSupport

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

◆ addPlaneStressSupport()

virtual void mfront::bbrick::HookeStressPotentialBase::addPlaneStressSupport ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
protectedvirtual

add support for the PLANESTRESS modelling hypothesis

Parameters
[in]bdbehaviour description
[in]dslbehaviour domain language

◆ completeVariableDeclaration()

void mfront::bbrick::HookeStressPotentialBase::completeVariableDeclaration ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
overridevirtual

complete the variable description

Parameters
[in]dslabstract behaviour dsl

Implements mfront::bbrick::StressPotential.

◆ computeElasticPrediction()

void mfront::bbrick::HookeStressPotentialBase::computeElasticPrediction ( BehaviourDescription & ) const
overridevirtual

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

Implements mfront::bbrick::StressPotential.

◆ declareComputeElasticPredictionMethod()

virtual void mfront::bbrick::HookeStressPotentialBase::declareComputeElasticPredictionMethod ( BehaviourDescription & ) const
protectedpure virtual

declare the compute elastic prediction method

Parameters
[in]bdbehaviour description

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

◆ declareComputeStressForIsotropicBehaviour()

virtual void mfront::bbrick::HookeStressPotentialBase::declareComputeStressForIsotropicBehaviour ( BehaviourDescription & ,
LocalDataStructure &  ) const
protectedpure virtual

complete the variable description in the case of isotropic behaviours when the stiffness tensor is not defined. This method is meant to define the BehaviourData::ComputeStress and BehaviourData::ComputeFinalStress code blocks.

Parameters
[in]bdbehaviour description
[in]dlocal data structure

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

◆ declareComputeStressForOrthotropicBehaviour()

virtual void mfront::bbrick::HookeStressPotentialBase::declareComputeStressForOrthotropicBehaviour ( BehaviourDescription & ) const
protectedvirtual

treat the case of orthotropic behaviours when the stiffness tensor is not defined. This case is generally not supported and lead to an error.

Parameters
[in]bdbehaviour description

◆ declareComputeStressWhenStiffnessTensorIsDefined()

virtual void mfront::bbrick::HookeStressPotentialBase::declareComputeStressWhenStiffnessTensorIsDefined ( BehaviourDescription & ) const
protectedpure virtual

declared the BehaviourData::ComputeStress and BehaviourData::ComputeFinalStress code blocks when either the BehaviourDescription::requiresStiffnessTensor attribute or the BehaviourDescription::computesStiffnessTensor attribute has been set.

Parameters
[in]bdbehaviour description

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

◆ endTreatment()

void mfront::bbrick::HookeStressPotentialBase::endTreatment ( BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
overridevirtual

method called at the end of the input file processing

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

Implements mfront::bbrick::StressPotential.

Reimplemented in mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ getEquivalentStressLowerBound()

std::string mfront::bbrick::HookeStressPotentialBase::getEquivalentStressLowerBound ( const BehaviourDescription & ) const
nodiscardoverridevirtual

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

Parameters
[in]bdbehaviour description

Implements mfront::bbrick::StressPotential.

◆ getIsotropicBehaviourOptions()

std::vector< OptionDescription > mfront::bbrick::HookeStressPotentialBase::getIsotropicBehaviourOptions ( )
staticnodiscard
Returns
the options associated with material properties which are valid for either an isotropic or an orthotropic behaviour. The following options are defined:
  • young_modulus
  • poisson_ratio
  • thermal_expansion

◆ getName()

std::string mfront::bbrick::HookeStressPotentialBase::getName ( ) const
nodiscardoverridevirtual
Returns
the name of the stress potential

Implements mfront::bbrick::StressPotential.

◆ getOptions()

std::vector< OptionDescription > mfront::bbrick::HookeStressPotentialBase::getOptions ( const BehaviourDescription & ,
const bool  ) const
nodiscardoverridevirtual
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

Implements mfront::bbrick::StressPotential.

Reimplemented in mfront::bbrick::ScalarDamageHookeStressPotentialBase.

◆ getOrthotropicBehaviourElasticMaterialPropertiesOptions()

std::vector< OptionDescription > mfront::bbrick::HookeStressPotentialBase::getOrthotropicBehaviourElasticMaterialPropertiesOptions ( )
staticnodiscard
Returns
the options associated with material properties which are only valid for an orthotropic behaviour. The following options are defined:
  • young_modulus1
  • young_modulus2
  • young_modulus3
  • poisson_ratio12
  • poisson_ratio23
  • poisson_ratio13

◆ getOrthotropicBehaviourOptions()

std::vector< OptionDescription > mfront::bbrick::HookeStressPotentialBase::getOrthotropicBehaviourOptions ( )
staticnodiscard
Returns
the options associated with material properties which are only valid for an orthotropic behaviour. The following options are defined:
  • young_modulus1
  • young_modulus2
  • young_modulus3
  • poisson_ratio12
  • poisson_ratio23
  • poisson_ratio13
  • thermal_expansion1
  • thermal_expansion2
  • thermal_expansion3

◆ getStressNormalisationFactor()

std::string mfront::bbrick::HookeStressPotentialBase::getStressNormalisationFactor ( const BehaviourDescription & ) const
nodiscardoverridevirtual

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

Parameters
[in]bdbehaviour description

Implements mfront::bbrick::StressPotential.

◆ getSupportedModellingHypotheses()

std::vector< Hypothesis > mfront::bbrick::HookeStressPotentialBase::getSupportedModellingHypotheses ( const BehaviourDescription & ,
const AbstractBehaviourDSL &  ) const
nodiscardoverridevirtual

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

Implements mfront::bbrick::StressPotential.

◆ initialize()

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

Implements mfront::bbrick::StressPotential.

Reimplemented in mfront::bbrick::ScalarDamageHookeStressPotentialBase.


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