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

an helper class which provide common method for all inelastic potentials. More...

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

Inheritance diagram for mfront::bbrick::InelasticFlowBase:
mfront::bbrick::InelasticFlow mfront::bbrick::PlasticInelasticFlow mfront::bbrick::ViscoplasticFlowBase mfront::bbrick::HarmonicSumOfNortonHoffViscoplasticFlows mfront::bbrick::HyperbolicSineViscoplasticFlow mfront::bbrick::NortonHoffViscoplasticFlow mfront::bbrick::UserDefinedViscoplasticFlow

Public Member Functions

void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const std::string &, const DataMap &) override
void setPorosityEvolutionHandled (const bool) override
 set a flag stating if the porosity evolution is handled by the brick. This shall always be the case if the inelastic flow is coupled with the porosity evolution. This method is called after that all the other flows handled by this brick are initialized.
bool isCoupledWithPorosityEvolution () const override
void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &, const StressPotential &, const std::string &) const override
 method called at the end of the input file processing
void completeVariableDeclaration (BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &) const override
 complete the variable description
std::vector< OptionDescription > getOptions () const override
bool requiresActivationState () const override
 returns if the flow requires an activation state for the resolution.
void computeInitialActivationState (BehaviourDescription &, const StressPotential &, const std::string &) const override
std::string updateNextEstimateOfThePorosityIncrement (const BehaviourDescription &, const std::string &) const override
 add the intialization of the activation state of the BehaviourData::BeforeInitializeLocalVariables code block. \note at this stage, the stress potential has already been called and the elastic prediction of the stress sigel` is available.
std::string updatePorosityUpperBound (const BehaviourDescription &, const std::string &) const override
 ~InelasticFlowBase () override
 destructor

Protected Types

enum  PorosityEffectOnFlowRule { UNDEFINED_POROSITY_EFFECT_ON_EQUIVALENT_PLASTIC_STRAIN , NO_POROSITY_EFFECT_ON_EQUIVALENT_PLASTIC_STRAIN , STANDARD_POROSITY_CORRECTION_ON_EQUIVALENT_PLASTIC_STRAIN }
 policy on how the porosity affects the flow rule More...

Protected Member Functions

virtual void checkOptions (const DataMap &) const
 check the validity of the options passed
virtual PorosityEffectOnFlowRule getPorosityEffectOnEquivalentPlasticStrain () const
virtual bool contributesToPorosityGrowth () const
virtual void addFlowContributionToTheImplicitEquationAssociatedWithPorosityEvolution (CodeBlock &, const BehaviourDescription &, const AbstractBehaviourDSL &, const StressPotential &, const std::string &) const
 add the contribution of this inelastic flow to the implicit equation associated with the porosity evolution.
virtual std::string computeEffectiveStress (const std::string &id) const
 compute the effective stress at \(t+\theta\,dt\).
virtual std::string buildFlowImplicitEquations (const BehaviourDescription &, const StressPotential &, const std::string &, const bool) const =0

Protected Attributes

std::shared_ptr< StressCriterion > sc
 stress criterion
std::shared_ptr< StressCriterion > fc
 flow criterion
std::vector< std::shared_ptr< IsotropicHardeningRule > > ihrs
 isotropic hardening rules
std::vector< std::shared_ptr< KinematicHardeningRule > > khrs
 kinematic hardening rules
PorosityEffectOnFlowRule porosity_effect_on_equivalent_plastic_strain
 Effect of the porosity on the flow rule.
PorosityEvolutionAlgorithm porosity_evolution_algorithm
 algorithm used to handle the porosity evolution
double cosine_threshold = 2
 minimum value of the cosine of the angle between two successive estimates of the flow direction. If the computed angle is lower than this threshold, the Newton step is rejected.
double cosine_check_minimum_iteration_factor = 0
 a factor \(alpha\) which gives the threshold below which the check on the cosine of the angle between two successive estimates of the flow direction is performed, i.e. the test is performed if the iteration counter is greater than \(alpha \cdot i_{\max{}}\) where \(i_{\max{}}\) is the maximum number of iterations.
double cosine_check_maximum_iteration_factor = 1
 a factor \(alpha\) which gives the threshold upper which the check on the cosine of the angle between two successive estimates of the flow direction is performed, i.e. the test is performed if the iteration counter is below \(alpha \cdot i_{\max{}}\) where \(i_{\max{}}\) is the maximum number of iterations.
bool porosity_evolution_explicitely_handled = false
 flag stating that the porosity evolution is handled by the brick
bool save_porosity_increase = false
 flag stating if the contribution to the porosity growth associated with this flow, if any, must be saved in a dedicated auxiliary state variable.
std::string equivalent_strain_external_name
 external name of equivalent strain.
bool save_stress_criterion = false
 flag stating if the equivalent stress at the middle of the time step must be saved in a dedicated auxiliary state variable.
std::string stress_criterion_external_name
 external name of the auxiliary state variable in which the stress criterion shall be saved if save_stress_criterion is true.
bool save_yield_surface_radius = false
 flag stating if the yield surface radius at the middle of the time step must be saved in a dedicated auxiliary state variable.
std::string yield_surface_radius_external_name
 external name of the auxiliary state variable in which the yield surface radius shall be saved if save_yield_surface_radius is true.

Additional Inherited Members

Public Types inherited from mfront::bbrick::InelasticFlow
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 MaterialPropertyInput = BehaviourDescription::MaterialPropertyInput
 a simple alias

Detailed Description

an helper class which provide common method for all inelastic potentials.

Member Enumeration Documentation

◆ PorosityEffectOnFlowRule

policy on how the porosity affects the flow rule

Enumerator
UNDEFINED_POROSITY_EFFECT_ON_EQUIVALENT_PLASTIC_STRAIN 

default choice. The effect of the porosity depends on the stress criterion (see the StressCriterion::getPorosityEffectOnEquivalentPlasticStrain method).

NO_POROSITY_EFFECT_ON_EQUIVALENT_PLASTIC_STRAIN 

This value indicate that the flow rule is not affected by the porosity evolution.

STANDARD_POROSITY_CORRECTION_ON_EQUIVALENT_PLASTIC_STRAIN 

This value indicate that the flow rule must be corrected by the standard \((1-f)\) factor where \(f\) is the porosity.

Member Function Documentation

◆ addFlowContributionToTheImplicitEquationAssociatedWithPorosityEvolution()

virtual void mfront::bbrick::InelasticFlowBase::addFlowContributionToTheImplicitEquationAssociatedWithPorosityEvolution ( CodeBlock & ,
const BehaviourDescription & ,
const AbstractBehaviourDSL & ,
const StressPotential & ,
const std::string &  ) const
protectedvirtual

add the contribution of this inelastic flow to the implicit equation associated with the porosity evolution.

Parameters
[in]ibintegrator code block
[in]dslabstract behaviour dsl
[in]bdbehaviour description
[in]spstress potential
[in]idflow id

◆ buildFlowImplicitEquations()

virtual std::string mfront::bbrick::InelasticFlowBase::buildFlowImplicitEquations ( const BehaviourDescription & ,
const StressPotential & ,
const std::string & ,
const bool  ) const
nodiscardprotectedpure virtual
Parameters
[in]bdbehaviour description
[in]spstress potential
[in]idflow id
[in]btells if an analytical jacobian is required

Implemented in mfront::bbrick::PlasticInelasticFlow, and mfront::bbrick::ViscoplasticFlowBase.

◆ checkOptions()

virtual void mfront::bbrick::InelasticFlowBase::checkOptions ( const DataMap & ) const
protectedvirtual

check the validity of the options passed

Parameters
[in]doptions

Reimplemented in mfront::bbrick::UserDefinedViscoplasticFlow.

◆ completeVariableDeclaration()

void mfront::bbrick::InelasticFlowBase::completeVariableDeclaration ( BehaviourDescription & ,
const AbstractBehaviourDSL & ,
const std::string &  ) const
overridevirtual

complete the variable description

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

Implements mfront::bbrick::InelasticFlow.

◆ computeEffectiveStress()

virtual std::string mfront::bbrick::InelasticFlowBase::computeEffectiveStress ( const std::string & id) const
nodiscardprotectedvirtual

compute the effective stress at \(t+\theta\,dt\).

Parameters
[in]idflow id

◆ contributesToPorosityGrowth()

virtual bool mfront::bbrick::InelasticFlowBase::contributesToPorosityGrowth ( ) const
nodiscardprotectedvirtual
Returns
if this flow contributes to porosity growth

◆ endTreatment()

void mfront::bbrick::InelasticFlowBase::endTreatment ( BehaviourDescription & ,
const AbstractBehaviourDSL & ,
const StressPotential & ,
const std::string &  ) const
overridevirtual

method called at the end of the input file processing

Parameters
[in]dslabstract behaviour dsl
[in]bdbehaviour description
[in]spstress potential
[in]idflow id

Implements mfront::bbrick::InelasticFlow.

Reimplemented in mfront::bbrick::NortonHoffViscoplasticFlow, and mfront::bbrick::UserDefinedViscoplasticFlow.

◆ getOptions()

std::vector< OptionDescription > mfront::bbrick::InelasticFlowBase::getOptions ( ) const
nodiscardoverridevirtual

◆ getPorosityEffectOnEquivalentPlasticStrain()

virtual PorosityEffectOnFlowRule mfront::bbrick::InelasticFlowBase::getPorosityEffectOnEquivalentPlasticStrain ( ) const
nodiscardprotectedvirtual
Returns
the effect of the porosity on the flow rule.

◆ initialize()

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

Implements mfront::bbrick::InelasticFlow.

Reimplemented in mfront::bbrick::NortonHoffViscoplasticFlow, mfront::bbrick::PlasticInelasticFlow, mfront::bbrick::UserDefinedViscoplasticFlow, and mfront::bbrick::ViscoplasticFlowBase.

◆ isCoupledWithPorosityEvolution()

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

Implements mfront::bbrick::InelasticFlow.

◆ requiresActivationState()

bool mfront::bbrick::InelasticFlowBase::requiresActivationState ( ) const
nodiscardoverridevirtual

returns if the flow requires an activation state for the resolution.

Note
this basically means that an isotropic hardening rule is defined and this method could also have been named isIsotropicHardeningRuleDefined, but this name does not reflect the true intention of the author.

Implements mfront::bbrick::InelasticFlow.

◆ setPorosityEvolutionHandled()

void mfront::bbrick::InelasticFlowBase::setPorosityEvolutionHandled ( const bool )
overridevirtual

set a flag stating if the porosity evolution is handled by the brick. This shall always be the case if the inelastic flow is coupled with the porosity evolution. This method is called after that all the other flows handled by this brick are initialized.

Implements mfront::bbrick::InelasticFlow.

◆ updateNextEstimateOfThePorosityIncrement()

std::string mfront::bbrick::InelasticFlowBase::updateNextEstimateOfThePorosityIncrement ( const BehaviourDescription & ,
const std::string &  ) const
nodiscardoverridevirtual

add the intialization of the activation state of the BehaviourData::BeforeInitializeLocalVariables code block. \note at this stage, the stress potential has already been called and the elastic prediction of the stress sigel` is available.

Parameters
[in/out]bd: behaviour description
[in]spstress potential
[in]idflow id */ virtual void computeInitialActivationState(BehaviourDescription&, const StressPotential&, const std::string&) const = 0; /*!
Returns
the code updating the next estimate of the porosity increment with the contribution of this flow. If this flow does not affect the porosity growth, the returned value may be empty.
Parameters
[in]bdbehaviour description
[in]idflow id

Implements mfront::bbrick::InelasticFlow.

◆ updatePorosityUpperBound()

std::string mfront::bbrick::InelasticFlowBase::updatePorosityUpperBound ( const BehaviourDescription & ,
const std::string &  ) const
nodiscardoverridevirtual
Returns
the code updating the upper bound of the porosity. If this flow does not affect the porosity growth, the returned value may be empty.
Parameters
[in]bdbehaviour description
[in]idflow id

Implements mfront::bbrick::InelasticFlow.

Member Data Documentation

◆ cosine_threshold

double mfront::bbrick::InelasticFlowBase::cosine_threshold = 2
protected

minimum value of the cosine of the angle between two successive estimates of the flow direction. If the computed angle is lower than this threshold, the Newton step is rejected.

Note
the value of this parameter must be in the range [-1:1]. If this parameter is not in that range (which is the default), the code checking the value of the cosine is not generated.

◆ equivalent_strain_external_name

std::string mfront::bbrick::InelasticFlowBase::equivalent_strain_external_name
protected

external name of equivalent strain.

Note
The default external name depends on the inelastic flow. For instance, this defaults to EquivalentPlasticStrain + id, where id is the identifier of the inelastic flow for plastic flows.

◆ porosity_effect_on_equivalent_plastic_strain

PorosityEffectOnFlowRule mfront::bbrick::InelasticFlowBase::porosity_effect_on_equivalent_plastic_strain
protected
Initial value:
=
@ UNDEFINED_POROSITY_EFFECT_ON_EQUIVALENT_PLASTIC_STRAIN
default choice. The effect of the porosity depends on the stress criterion (see the StressCriterion::...
Definition InelasticFlowBase.hxx:63

Effect of the porosity on the flow rule.

◆ porosity_evolution_algorithm

PorosityEvolutionAlgorithm mfront::bbrick::InelasticFlowBase::porosity_evolution_algorithm
protected
Initial value:
=
@ STAGGERED_SCHEME
staggered approach
Definition PorosityEvolutionAlgorithm.hxx:24

algorithm used to handle the porosity evolution

◆ stress_criterion_external_name

std::string mfront::bbrick::InelasticFlowBase::stress_criterion_external_name
protected

external name of the auxiliary state variable in which the stress criterion shall be saved if save_stress_criterion is true.

This defaults to EquivalentStress + id, where id is the identifier of the inelastic flow

◆ yield_surface_radius_external_name

std::string mfront::bbrick::InelasticFlowBase::yield_surface_radius_external_name
protected

external name of the auxiliary state variable in which the yield surface radius shall be saved if save_yield_surface_radius is true.

This defaults to YieldSurfaceRadius + id, where id is the identifier of the inelastic flow


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