|
tfel
|
#include <array>#include <string>#include <memory>#include <vector>#include <functional>#include "TFEL/Utilities/Data.hxx"#include "TFEL/Glossary/GlossaryEntry.hxx"#include "MFront/MFrontConfig.hxx"#include "MFront/AbstractBehaviourDSL.hxx"#include "MFront/BehaviourDescription.hxx"#include "MFront/BehaviourBrick/BrickUtilities.ixx"Namespaces | |
| namespace | mfront |
| This namespace contains material used to build the MFront code generator. | |
Functions | |
| MFRONT_VISIBILITY_EXPORT std::function< std::string(const BehaviourDescription::MaterialPropertyInput &)> | mfront::bbrick::getMiddleOfTimeStepModifier (const BehaviourDescription &) |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::checkOptionsNames (const std::map< std::string, tfel::utilities::Data > &, const std::vector< std::string > &, const std::string &) |
| check that the options names are in a given set of keys. | |
| MFRONT_VISIBILITY_EXPORT bool | mfront::bbrick::areAllConstantMaterialProperties (const std::vector< BehaviourDescription::MaterialProperty > &) |
| template<std::size_t N> | |
| bool | mfront::bbrick::areAllConstantMaterialProperties (const std::array< BehaviourDescription::MaterialProperty, N > &) |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, BehaviourDescription::MaterialProperty &, const std::string &, const std::string &) |
| declare a parameter or a local variable used to store the evaluation of the material property. | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, std::vector< BehaviourDescription::MaterialProperty > &, const std::string &, const std::string &) |
| declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties. | |
| template<std::size_t N> | |
| void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, std::array< BehaviourDescription::MaterialProperty, N > &, const std::string &, const std::string &) |
| declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties. | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, BehaviourDescription::MaterialProperty &, const std::string &, const std::string &, const std::string &) |
| declare a parameter or a local variable used to store the evaluation of the material property. | |
| template<std::size_t N> | |
| void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, std::array< BehaviourDescription::MaterialProperty, N > &, const std::string &, const std::string &, const std::string &) |
| declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties. | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, BehaviourDescription::MaterialProperty &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &) |
| declare a parameter or a local variable used to store the evaluation of the material property. | |
| template<std::size_t N> | |
| void | mfront::bbrick::declareParameterOrLocalVariable (BehaviourDescription &, std::array< BehaviourDescription::MaterialProperty, N > &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &) |
| declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties. | |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::generateMaterialPropertyInitializationCode (const AbstractBehaviourDSL &, const BehaviourDescription &, const std::string &, const BehaviourDescription::MaterialProperty &) |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::generateMaterialPropertiesInitializationCode (const AbstractBehaviourDSL &, const BehaviourDescription &, const std::string &, const std::vector< BehaviourDescription::MaterialProperty > &) |
| template<std::size_t N> | |
| std::string | mfront::bbrick::generateMaterialPropertiesInitializationCode (const AbstractBehaviourDSL &, const BehaviourDescription &, const std::string &, const std::array< BehaviourDescription::MaterialProperty, N > &) |
| MFRONT_VISIBILITY_EXPORT std::array< BehaviourDescription::MaterialProperty, 9u > | mfront::bbrick::extractLinearTransformation (AbstractBehaviourDSL &, BehaviourDescription &, const tfel::utilities::DataMap &, const std::string_view, const std::string_view, const std::string_view) |
| extract a linear transformation from the given map | |
| MFRONT_VISIBILITY_EXPORT std::array< BehaviourDescription::MaterialProperty, 6u > | mfront::bbrick::extractHillTensorCoefficients (AbstractBehaviourDSL &, BehaviourDescription &, const tfel::utilities::DataMap &, const std::string_view, const std::string_view, const std::string_view) |
| extract the coefficients describing a Hill tensor from the given map | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addMaterialPropertyIfNotDefined (BehaviourDescription &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short=1u) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addMaterialPropertyIfNotDefined (BehaviourDescription &, const std::string &, const std::string &, const std::string &, const unsigned short=1u) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addStateVariable (BehaviourDescription &, const std::string &, const std::string &, const unsigned short=1u) |
| add a new state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addStateVariable (BehaviourDescription &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short=1u) |
| add a new state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addStateVariable (BehaviourDescription &, const std::string &, const std::string &, const std::string &, const unsigned short=1u) |
| add a new state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addStateVariableIfNotDefined (BehaviourDescription &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short=1u, const bool bo=false) |
| add a new state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addStateVariableIfNotDefined (BehaviourDescription &, const std::string &, const std::string &, const std::string &, const unsigned short=1u, const bool bo=false) |
| add a new state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::checkNoNormalisationFactor (const BehaviourDescription &, const std::string &) |
| check that no normalisation factor has been given to an integration variable handled by a brick: the code generated by the bricks uses the increment of this variable without normalisation. | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::checkNoImplicitEquationNormalisationFactor (const BehaviourDescription &, const AbstractBehaviourDSL &, const BehaviourDescription::Hypothesis, const std::string &) |
| check that no normalisation factor has been given to the implicit equation associated with an integration variable, when a brick computes some jacobian blocks of this equation: the code generated by the implicit DSLs only scales the jacobian blocks used in the @Integrator code block of the user (and the diagonal blocks when the jacobian is reset to the identity at each iteration). Nothing is checked if the jacobian is not computed analytically. | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::checkNoImplicitEquationNormalisationFactor (const BehaviourDescription &, const AbstractBehaviourDSL &, const std::string &) |
| same as the previous function, for all the modelling hypotheses. | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addAuxiliaryStateVariableIfNotDefined (BehaviourDescription &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short=1u, const bool bo=false) |
| add a new auxiliary state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addAuxiliaryStateVariableIfNotDefined (BehaviourDescription &, const std::string &, const std::string &, const std::string &, const unsigned short=1u, const bool bo=false) |
| add a new auxiliary state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addExternalStateVariable (BehaviourDescription &, const std::string &, const std::string &, const unsigned short=1u) |
| add a new external state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addExternalStateVariable (BehaviourDescription &, const std::string &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short=1u) |
| add a new external state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addExternalStateVariable (BehaviourDescription &, const std::string &, const std::string &, const std::string &, const unsigned short=1u) |
| add a new external state variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addLocalVariable (BehaviourDescription &, const std::string &, const std::string &, const unsigned short=1u) |
| add a new local variable | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addParameter (BehaviourDescription &, const std::string &, const tfel::glossary::GlossaryEntry &e, const double) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addParameter (BehaviourDescription &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short, const double) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addParameter (BehaviourDescription &, const std::string &, const tfel::glossary::GlossaryEntry &, const unsigned short, const std::vector< double > &) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addParameter (BehaviourDescription &, const std::string &, const std::string &, const double) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addParameter (BehaviourDescription &, const std::string &, const std::string &, const unsigned short, const double) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addParameter (BehaviourDescription &, const std::string &, const std::string &, const unsigned short, const std::vector< double > &) |
| add a new material property | |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::computeElasticLimitInitialValue (const BehaviourDescription &, const std::vector< std::shared_ptr< IsotropicHardeningRule > > &, const std::string &) |
| generate the code that evaluates the initial elastic limit. | |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::computeElasticLimit (const BehaviourDescription &, const std::vector< std::shared_ptr< IsotropicHardeningRule > > &, const std::string &, const std::string &="this->theta") |
| generate the code that evaluates the elastic limit. | |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::computeElasticLimitAndDerivative (const BehaviourDescription &, const std::vector< std::shared_ptr< IsotropicHardeningRule > > &, const std::string &, const std::string &="this->theta") |
| generate the code that evaluates the elastic limit and its derivative with respect to the equivalent strain. | |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::handleEigenSolverOption (const std::string &) |
| return a string representation of the eigen solver enum associated with this string according to the following map: | |
| MFRONT_VISIBILITY_EXPORT std::string | mfront::bbrick::getBrokenTest (const BehaviourDescription &, const bool) |
| MFRONT_VISIBILITY_EXPORT void | mfront::bbrick::addBrokenStateSupportToComputeStress (std::string &, const BehaviourDescription &, const bool) |
| if a variable with the glossary name Broken has been defined, this function includes the given piece of code evaluating the stress tensor in a conditional block. If the material is broken, the stress tensor is set to zero. If the material is not broken, the original code is called. The given code is not modified if no variable with glossary name Broken is defined. | |
| MFRONT_VISIBILITY_EXPORT std::vector< BehaviourDescription::MaterialProperty > | mfront::bbrick::getArrayOfBehaviourDescriptionMaterialProperties (AbstractBehaviourDSL &, const std::string_view, const tfel::utilities::Data &) |
| template<std::size_t N> | |
| std::array< BehaviourDescription::MaterialProperty, N > | mfront::bbrick::getArrayOfBehaviourDescriptionMaterialProperties (AbstractBehaviourDSL &, const std::string_view, const tfel::utilities::Data &) |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addAuxiliaryStateVariableIfNotDefined | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u, | ||
| const bool | bo = false ) |
add a new auxiliary state variable
| [in] | bd | behaviour description |
| [in] | t | type of the state variable |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | bo | allow name shadowing. If true, allows that a state variable with the given entry name but a different name has already been defined. |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addAuxiliaryStateVariableIfNotDefined | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | = 1u, | ||
| const bool | bo = false ) |
add a new auxiliary state variable
| [in] | bd | behaviour description |
| [in] | t | type of the state variable |
| [in] | n | name of the variable |
| [in] | g | glossary name |
| [in] | s | array size |
| [in] | bo | allow name shadowing. If true, allows that a state variable with the given glossary name but a different name has already been defined. |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addBrokenStateSupportToComputeStress | ( | std::string & | , |
| const BehaviourDescription & | , | ||
| const bool | ) |
if a variable with the glossary name Broken has been defined, this function includes the given piece of code evaluating the stress tensor in a conditional block. If the material is broken, the stress tensor is set to zero. If the material is not broken, the original code is called. The given code is not modified if no variable with glossary name Broken is defined.
| [in,out] | c | original code on input, modified code on output. |
| [in] | bd | behaviour description. |
| [in] | b | boolean stating if the broken must be evaluated at the end of the time step (true) or at the middle of the time step (false). |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addExternalStateVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u ) |
add a new external state variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addExternalStateVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | = 1u ) |
add a new external state variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | g | glossary entry |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addExternalStateVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u ) |
add a new external state variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addLocalVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u ) |
add a new local variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addMaterialPropertyIfNotDefined | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addMaterialPropertyIfNotDefined | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | = 1u ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | g | glossary name |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addParameter | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const double | ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | p | parameter default value |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addParameter | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | , | ||
| const double | ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default value |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addParameter | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | , | ||
| const std::vector< double > & | ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default values |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addParameter | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | , | ||
| const double | ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default value |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addParameter | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | , | ||
| const std::vector< double > & | ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default values |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addParameter | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | e, | ||
| const double | ) |
add a new material property
| [in] | bd | behaviour description |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | p | parameter default value |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addStateVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u ) |
add a new state variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addStateVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | = 1u ) |
add a new state variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | g | glossary entry |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addStateVariable | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u ) |
add a new state variable
| [in] | bd | behaviour description |
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | s | array size |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addStateVariableIfNotDefined | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | = 1u, | ||
| const bool | bo = false ) |
add a new state variable
| [in] | bd | behaviour description |
| [in] | t | type of the state variable |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | bo | allow name shadowing. If true, allows that a state variable with the given entry name but a different name has already been defined. |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::addStateVariableIfNotDefined | ( | BehaviourDescription & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | , | ||
| const unsigned short | = 1u, | ||
| const bool | bo = false ) |
add a new state variable
| [in] | bd | behaviour description |
| [in] | t | type of the state variable |
| [in] | n | name of the variable |
| [in] | g | glossary name |
| [in] | s | array size |
| [in] | bo | allow name shadowing. If true, allows that a state variable with the given glossary name but a different name has already been defined. |
| bool mfront::bbrick::areAllConstantMaterialProperties | ( | const std::array< BehaviourDescription::MaterialProperty, N > & | mps | ) |
| N | size of the array of material properties |
| [in] | mps | array of material properties |
| MFRONT_VISIBILITY_EXPORT bool mfront::bbrick::areAllConstantMaterialProperties | ( | const std::vector< BehaviourDescription::MaterialProperty > & | ) |
| [in] | mps | array of material properties |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::checkNoImplicitEquationNormalisationFactor | ( | const BehaviourDescription & | , |
| const AbstractBehaviourDSL & | , | ||
| const BehaviourDescription::Hypothesis | , | ||
| const std::string & | ) |
check that no normalisation factor has been given to the implicit equation associated with an integration variable, when a brick computes some jacobian blocks of this equation: the code generated by the implicit DSLs only scales the jacobian blocks used in the @Integrator code block of the user (and the diagonal blocks when the jacobian is reset to the identity at each iteration). Nothing is checked if the jacobian is not computed analytically.
| [in] | bd | behaviour description |
| [in] | dsl | behaviour DSL |
| [in] | h | modelling hypothesis |
| [in] | n | name of the integration variable |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::checkNoImplicitEquationNormalisationFactor | ( | const BehaviourDescription & | , |
| const AbstractBehaviourDSL & | , | ||
| const std::string & | ) |
same as the previous function, for all the modelling hypotheses.
| [in] | bd | behaviour description |
| [in] | dsl | behaviour DSL |
| [in] | n | name of the integration variable |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::checkNoNormalisationFactor | ( | const BehaviourDescription & | , |
| const std::string & | ) |
check that no normalisation factor has been given to an integration variable handled by a brick: the code generated by the bricks uses the increment of this variable without normalisation.
| [in] | bd | behaviour description |
| [in] | n | name of the integration variable |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::checkOptionsNames | ( | const std::map< std::string, tfel::utilities::Data > & | , |
| const std::vector< std::string > & | , | ||
| const std::string & | ) |
check that the options names are in a given set of keys.
| [in] | d | options |
| [in] | k | supported keys |
| [in] | b | calling brick name |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::computeElasticLimit | ( | const BehaviourDescription & | , |
| const std::vector< std::shared_ptr< IsotropicHardeningRule > > & | , | ||
| const std::string & | , | ||
| const std::string & | = "this->theta" ) |
generate the code that evaluates the elastic limit.
| [in] | bd | behaviour description |
| [in] | ihrs | list of isotropic hardening rules. |
| [in] | fid | flow id |
| [in] | theta | expression of the value of the \(\theta\) parameter used to evaluate the equivalent plastic strain at the middle of the time step |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::computeElasticLimitAndDerivative | ( | const BehaviourDescription & | , |
| const std::vector< std::shared_ptr< IsotropicHardeningRule > > & | , | ||
| const std::string & | , | ||
| const std::string & | = "this->theta" ) |
generate the code that evaluates the elastic limit and its derivative with respect to the equivalent strain.
| [in] | bd | behaviour description |
| [in] | ihrs | list of isotropic hardening rules. |
| [in] | fid | flow id |
| [in] | theta | expression of the value of the \(\theta\) parameter used to evaluate the equivalent plastic strain at the middle of the time step |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::computeElasticLimitInitialValue | ( | const BehaviourDescription & | , |
| const std::vector< std::shared_ptr< IsotropicHardeningRule > > & | , | ||
| const std::string & | ) |
generate the code that evaluates the initial elastic limit.
| [in] | bd | behaviour description |
| [in] | ihrs | list of isotropic hardening rules. |
| [in] | fid | flow id |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | , |
| BehaviourDescription::MaterialProperty & | , | ||
| const std::string & | , | ||
| const std::string & | ) |
declare a parameter or a local variable used to store the evaluation of the material property.
| [out] | bd | behaviour description |
| [in,out] | mp | material property |
| [in] | t | variable type |
| [in] | n | variable name |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | , |
| BehaviourDescription::MaterialProperty & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | ) |
declare a parameter or a local variable used to store the evaluation of the material property.
| [out] | bd | behaviour description |
| [in,out] | mp | material property |
| [in] | t | variable type |
| [in] | n | variable name |
| [in] | en | external name |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | , |
| BehaviourDescription::MaterialProperty & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const tfel::glossary::GlossaryEntry & | ) |
declare a parameter or a local variable used to store the evaluation of the material property.
| [out] | bd | behaviour description |
| [in,out] | mp | material property |
| [in] | t | variable type |
| [in] | n | variable name |
| [in] | g | glossary entry |
| void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | bd, |
| std::array< BehaviourDescription::MaterialProperty, N > & | mps, | ||
| const std::string & | t, | ||
| const std::string & | n ) |
declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties.
| N | size of the array of material properties |
| [out] | bd | behaviour description |
| [in,out] | mps | array of material property |
| [in] | t | variable type |
| [in] | n | variable name |
| void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | bd, |
| std::array< BehaviourDescription::MaterialProperty, N > & | mps, | ||
| const std::string & | t, | ||
| const std::string & | n, | ||
| const std::string & | en ) |
declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties.
| N | size of the array of material properties |
| [out] | bd | behaviour description |
| [in,out] | mps | array of material property |
| [in] | t | variable type |
| [in] | n | variable name |
| [in] | en | external name |
| void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | bd, |
| std::array< BehaviourDescription::MaterialProperty, N > & | mps, | ||
| const std::string & | t, | ||
| const std::string & | n, | ||
| const tfel::glossary::GlossaryEntry & | g ) |
declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties.
| N | size of the array of material properties |
| [out] | bd | behaviour description |
| [in,out] | mps | array of material property |
| [in] | t | variable type |
| [in] | n | variable name |
| [in] | g | glossary entry |
| MFRONT_VISIBILITY_EXPORT void mfront::bbrick::declareParameterOrLocalVariable | ( | BehaviourDescription & | , |
| std::vector< BehaviourDescription::MaterialProperty > & | , | ||
| const std::string & | , | ||
| const std::string & | ) |
declare an array of parameters or an array of local variables used to store the evaluation of an array of material properties.
| [out] | bd | behaviour description |
| [in,out] | mps | array of material property |
| [in] | t | variable type |
| [in] | n | variable name |
| MFRONT_VISIBILITY_EXPORT std::array< BehaviourDescription::MaterialProperty, 6u > mfront::bbrick::extractHillTensorCoefficients | ( | AbstractBehaviourDSL & | , |
| BehaviourDescription & | , | ||
| const tfel::utilities::DataMap & | , | ||
| const std::string_view | , | ||
| const std::string_view | , | ||
| const std::string_view | ) |
extract the coefficients describing a Hill tensor from the given map
| [in] | dsl | abstract behaviour dsl. |
| [in] | bd | behaviour description |
| [in] | d | data map |
| [in] | o | name of option containing the linear transformation |
| [in] | n | name of the variable associated with the linear transformation |
| [in] | en | external name of the variable associated with the linear transformation |
| MFRONT_VISIBILITY_EXPORT std::array< BehaviourDescription::MaterialProperty, 9u > mfront::bbrick::extractLinearTransformation | ( | AbstractBehaviourDSL & | , |
| BehaviourDescription & | , | ||
| const tfel::utilities::DataMap & | , | ||
| const std::string_view | , | ||
| const std::string_view | , | ||
| const std::string_view | ) |
extract a linear transformation from the given map
| [in] | dsl | abstract behaviour dsl. |
| [in] | bd | behaviour description |
| [in] | d | data map |
| [in] | o | name of option containing the linear transformation |
| [in] | n | name of the variable associated with the linear transformation |
| [in] | en | external name of the variable associated with the linear transformation |
| std::string mfront::bbrick::generateMaterialPropertiesInitializationCode | ( | const AbstractBehaviourDSL & | dsl, |
| const BehaviourDescription & | bd, | ||
| const std::string & | n, | ||
| const std::array< BehaviourDescription::MaterialProperty, N > & | mps ) |
| [in] | dsl | abstract behaviour dsl. |
| [in] | bd | behaviour description |
| [in] | n | name of the variable storing the material property value. |
| [in] | mps | array of material property description. |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::generateMaterialPropertiesInitializationCode | ( | const AbstractBehaviourDSL & | , |
| const BehaviourDescription & | , | ||
| const std::string & | , | ||
| const std::vector< BehaviourDescription::MaterialProperty > & | ) |
| [in] | dsl | abstract behaviour dsl. |
| [in] | bd | behaviour description |
| [in] | n | name of the variable storing the material property value. |
| [in] | mps | array of material property description. |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::generateMaterialPropertyInitializationCode | ( | const AbstractBehaviourDSL & | , |
| const BehaviourDescription & | , | ||
| const std::string & | , | ||
| const BehaviourDescription::MaterialProperty & | ) |
| [in] | dsl | abstract behaviour dsl. |
| [in] | bd | behaviour description |
| [in] | n | name of the variable storing the material property value. |
| [in] | mp | material property description. |
| MFRONT_VISIBILITY_EXPORT std::vector< BehaviourDescription::MaterialProperty > mfront::bbrick::getArrayOfBehaviourDescriptionMaterialProperties | ( | AbstractBehaviourDSL & | , |
| const std::string_view | , | ||
| const tfel::utilities::Data & | ) |
| [in] | bsl | domain specific language |
| [in] | n | name of the material properties |
| [in] | d | data in which the material properties are stored. |
| std::array< BehaviourDescription::MaterialProperty, N > mfront::bbrick::getArrayOfBehaviourDescriptionMaterialProperties | ( | AbstractBehaviourDSL & | dsl, |
| const std::string_view | n, | ||
| const tfel::utilities::Data & | d ) |
| N | number of material properties to be read |
| [in] | bsl | domain specific language |
| [in] | n | name of the material properties |
| [in] | d | data in which the material properties are stored. |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::getBrokenTest | ( | const BehaviourDescription & | , |
| const bool | ) |
| [in] | bd | behaviour description |
| [in] | b | boolean stating if the broken must be evaluated at the end of the time step (true) or at the middle of the time step (false). |
| MFRONT_VISIBILITY_EXPORT std::function< std::string(const BehaviourDescription::MaterialPropertyInput &)> mfront::bbrick::getMiddleOfTimeStepModifier | ( | const BehaviourDescription & | ) |
| [in] | bd | behaviour description |
| MFRONT_VISIBILITY_EXPORT std::string mfront::bbrick::handleEigenSolverOption | ( | const std::string & | ) |
return a string representation of the eigen solver enum associated with this string according to the following map:
| [in] | e | eigen solver option |