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

describe an inelastic flow where the flow rule is defined by user. More...

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

Inheritance diagram for mfront::bbrick::UserDefinedViscoplasticFlow:
mfront::bbrick::ViscoplasticFlowBase mfront::bbrick::InelasticFlowBase mfront::bbrick::InelasticFlow

Public Member Functions

void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const std::string &, const DataMap &) override
void endTreatment (BehaviourDescription &, const AbstractBehaviourDSL &, const StressPotential &, const std::string &) const override
 method called at the end of the input file processing
std::vector< OptionDescription > getOptions () const override
 ~UserDefinedViscoplasticFlow () override
 destructor
Public Member Functions inherited from mfront::bbrick::ViscoplasticFlowBase
void initialize (BehaviourDescription &, AbstractBehaviourDSL &, const std::string &, const DataMap &) override
 ~ViscoplasticFlowBase () override
 destructor
Public Member Functions inherited from mfront::bbrick::InelasticFlowBase
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 completeVariableDeclaration (BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &) const override
 complete the variable description
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 Member Functions

void checkOptions (const DataMap &) const override
 check the validity of the options passed
bool describesStrainHardeningExplicitly () const override
std::string computeFlowRate (const BehaviourDescription &, const StressPotential &, const std::string &) const override
 compute the strain rate "vp"+id
std::string computeFlowRateAndDerivative (const BehaviourDescription &, const StressPotential &, const std::string &) const override
Protected Member Functions inherited from mfront::bbrick::ViscoplasticFlowBase
std::string buildFlowImplicitEquations (const BehaviourDescription &, const StressPotential &, const std::string &, const bool) const override
Protected Member Functions inherited from mfront::bbrick::InelasticFlowBase
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\).

Protected Attributes

tfel::math::Evaluator vp
 viscoplastic strain rate
std::optional< tfel::math::Evaluator > dvp_df
 derivative of the viscoplastic strain rate with respect to f
std::optional< tfel::math::Evaluator > dvp_dp
 derivative of the viscoplastic strain rate with respect to p
std::map< std::string, BehaviourDescription::MaterialProperty > mps
 material properties
Protected Attributes inherited from mfront::bbrick::InelasticFlowBase
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
Protected Types inherited from mfront::bbrick::InelasticFlowBase
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...

Detailed Description

describe an inelastic flow where the flow rule is defined by user.

The viscoplastic strain rate is defined by the following rule:

\[\dot{p}=F\left(f,p\right) \]

where:

  • \(f=\phi\left(\underline{\sigma}-\displaystyle\sum_{i}\underline{X}_{i}\right)-R\left(p\right)\)
  • \(\phi\) is the stress criterion
  • \(\underline{X}_{i}\) is the \(i^{\mathrm{th}}\) back stress
  • \(R\left(p\right)\) is the isotropic hardening rule

The user shall define the (F) function

Member Function Documentation

◆ checkOptions()

void mfront::bbrick::UserDefinedViscoplasticFlow::checkOptions ( const DataMap & ) const
overrideprotectedvirtual

check the validity of the options passed

Parameters
[in]doptions

Reimplemented from mfront::bbrick::InelasticFlowBase.

◆ computeFlowRate()

std::string mfront::bbrick::UserDefinedViscoplasticFlow::computeFlowRate ( const BehaviourDescription & ,
const StressPotential & ,
const std::string &  ) const
nodiscardoverrideprotectedvirtual

compute the strain rate "vp"+id

Parameters
[in]bdbehaviour description
[in]spstress potential
[in]idflow id

Implements mfront::bbrick::ViscoplasticFlowBase.

◆ describesStrainHardeningExplicitly()

bool mfront::bbrick::UserDefinedViscoplasticFlow::describesStrainHardeningExplicitly ( ) const
nodiscardoverrideprotectedvirtual
Returns
if the viscoplastic strain rate \(f\) depends explicitly on the equivalent viscoplastic strain.

Implements mfront::bbrick::ViscoplasticFlowBase.

◆ endTreatment()

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

Reimplemented from mfront::bbrick::InelasticFlowBase.

◆ getOptions()

std::vector< OptionDescription > mfront::bbrick::UserDefinedViscoplasticFlow::getOptions ( ) const
nodiscardoverridevirtual
Returns
the flow options

Reimplemented from mfront::bbrick::InelasticFlowBase.

◆ initialize()

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

Reimplemented from mfront::bbrick::InelasticFlowBase.


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