tfel
Loading...
Searching...
No Matches
BrickUtilities.ixx File Reference
#include <limits>
#include <sstream>
#include "MFront/BehaviourDSLUtilities.hxx"

Namespaces

namespace  mfront
 This namespace contains material used to build the MFront code generator.

Functions

template<std::size_t N>
std::array< BehaviourDescription::MaterialProperty, N > mfront::bbrick::getArrayOfBehaviourDescriptionMaterialProperties (AbstractBehaviourDSL &, const std::string_view, const tfel::utilities::Data &)
template<std::size_t N>
bool mfront::bbrick::areAllConstantMaterialProperties (const std::array< BehaviourDescription::MaterialProperty, N > &)
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.
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.
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.
template<std::size_t N>
std::string mfront::bbrick::generateMaterialPropertiesInitializationCode (const AbstractBehaviourDSL &, const BehaviourDescription &, const std::string &, const std::array< BehaviourDescription::MaterialProperty, N > &)

Detailed Description

Author
Thomas Helfer
Date
26/03/2018

Function Documentation

◆ areAllConstantMaterialProperties()

template<std::size_t N>
bool mfront::bbrick::areAllConstantMaterialProperties ( const std::array< BehaviourDescription::MaterialProperty, N > & mps)
Returns
true if all the elements of the array is constant.
Template Parameters
Nsize of the array of material properties
Parameters
[in]mpsarray of material properties

◆ declareParameterOrLocalVariable() [1/3]

template<std::size_t N>
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.

Template Parameters
Nsize of the array of material properties
Parameters
[out]bdbehaviour description
[in,out]mpsarray of material property
[in]tvariable type
[in]nvariable name

◆ declareParameterOrLocalVariable() [2/3]

template<std::size_t N>
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.

Template Parameters
Nsize of the array of material properties
Parameters
[out]bdbehaviour description
[in,out]mpsarray of material property
[in]tvariable type
[in]nvariable name
[in]enexternal name

◆ declareParameterOrLocalVariable() [3/3]

template<std::size_t N>
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.

Template Parameters
Nsize of the array of material properties
Parameters
[out]bdbehaviour description
[in,out]mpsarray of material property
[in]tvariable type
[in]nvariable name
[in]gglossary entry

◆ generateMaterialPropertiesInitializationCode()

template<std::size_t N>
std::string mfront::bbrick::generateMaterialPropertiesInitializationCode ( const AbstractBehaviourDSL & dsl,
const BehaviourDescription & bd,
const std::string & n,
const std::array< BehaviourDescription::MaterialProperty, N > & mps )
Returns
the code initializing the arrays of variables containing the material properties' values at (t+\theta\,dt).
Note
If all the material properties are constant, an empty string is returned, as those material properties are assumed to be associated with an array of parameters.
Parameters
[in]dslabstract behaviour dsl.
[in]bdbehaviour description
[in]nname of the variable storing the material property value.
[in]mpsarray of material property description.

◆ getArrayOfBehaviourDescriptionMaterialProperties()

template<std::size_t N>
std::array< BehaviourDescription::MaterialProperty, N > mfront::bbrick::getArrayOfBehaviourDescriptionMaterialProperties ( AbstractBehaviourDSL & dsl,
const std::string_view n,
const tfel::utilities::Data & d )
Returns
a fixed-sized array of material properties from the data read in an input file.
Template Parameters
Nnumber of material properties to be read
Parameters
[in]bsldomain specific language
[in]nname of the material properties
[in]ddata in which the material properties are stored.