tfel
Loading...
Searching...
No Matches
mfront Namespace Reference

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

Namespaces

namespace  generic_parallel

Classes

struct  BehaviourDocumentationGenerator
struct  DocumentationGeneratorBase
struct  MaterialPropertyDocumentationGenerator
struct  BehaviourQuery
 class used by the mfront-query tool to extract information from behaviour implementation More...
struct  MaterialPropertyQuery
 class used by the mfront-query tool to extract information from the implementation of a material property More...
struct  ModelQuery
 class used by the mfront-query tool to extract information from model implementation More...
struct  QueryHandlerBase
 base class for queries handler More...
struct  AbaqusExplicitInterface
struct  AbaqusExplicitSymbolsGenerator
struct  AbaqusInterface
 the interface the Abaqus Standard finite element solver More...
struct  AbaqusInterfaceBase
 base class for the interfaces to: More...
struct  AbaqusSymbolsGenerator
struct  AbstractBehaviourBrick
 an a behaviour' brick is a way to alleviate to build a complex behaviour. More...
struct  AbstractBehaviourCodeGenerator
 a deleguate class aimed a generating the code associated with a behaviour. More...
struct  AbstractBehaviourDSL
 interface class for all domain specific languages associated with behaviours. More...
struct  AbstractBehaviourInterface
 abstract interface of all behaviour interfaces More...
struct  AbstractDSL
 interface class for all domain specific languages. More...
struct  AbstractLinearSystemSolver
 Base class for linear system solver used by implicit domain specific languages. More...
struct  AbstractMaterialPropertyInterface
 abstract interface for material property interface. More...
struct  AbstractModelInterface
struct  AbstractNonLinearSystemSolver
 Base class for non linear system solver used in by implicit parser. More...
struct  AmitexInterface
 Interface for behaviours for use in the AMITEX_FFTP solver based on Fast-Fourier transform. More...
struct  AnsysInterface
 This class provide an interface to the Ansys/APDL finite element solver. More...
struct  AnsysSymbolsGenerator
struct  AsterInterface
struct  AsterSymbolsGenerator
 This class provides some helper function for behaviours interfaces based on the umat standard. More...
struct  BehaviourBrickBase
struct  BehaviourBrickDescription
 structure holding the main characteristics of a behaviour brick. More...
struct  BehaviourBrickFactory
 abstract factor for behaviour bricks More...
struct  BehaviourCodeGeneratorBase
 base class for all behaviour's code generator More...
struct  BehaviourData
struct  BehaviourDescription
struct  CheckInitializeMethodsOptions
struct  BehaviourDSLBase
 an helper structure. In versions of TFEL prior to 3.3, keywords were associated with member functions and CRTP was used to provide this functionnality. This mechanism has been deprecated in favor of using std::function. As a consequence, BehaviourDSLBase is now mostly useless. More...
struct  BehaviourDSLCommon
 this class provides most functionnalities used by mechanical behaviour parsers. More...
struct  BehaviourDSLDescription
 structure used to give information about a DSL. More...
struct  BehaviourInterfaceBase
struct  BehaviourInterfaceFactory
struct  BehaviourInterfaceProxy
struct  BehaviourMaterialProperty
struct  BuildMaterialPropertiesListOptions
 help structure defining the options of the buildMaterialPropertiesList function More...
struct  BehaviourProfiler
struct  BehaviourVariableDescription
 this class describes a variable associated with an external behaviour. More...
struct  BroydenSolverBase
 Base class for non linear system solver based on the Broyden algorithm. More...
struct  BroydenSolver
 the standard Broyden Solver More...
struct  PowellDogLegBroydenSolver
 The standard Broyden Solver coupled with Powell' dog leg algorithm. More...
struct  CalculiXInterface
 the interface the CalculiX Standard finite element solver More...
struct  CalculiXSymbolsGenerator
struct  Castem21Interface
 Interface for behaviours for use in the Cast3M finite element solver for versions higher than Cast3M 2021. More...
struct  Castem21MaterialPropertyInterface
struct  Castem21ModelInterface
struct  CastemInterface
 Interface for behaviours for use in the Cast3M finite element code. More...
struct  CastemMaterialPropertyInterface
struct  CastemModelInterface
 an interface for point-wise models implemented using the Model domain specific language based for the Cast3M solver. More...
struct  CastemSymbolsGenerator
struct  CMaterialPropertyInterface
struct  CMaterialPropertyInterfaceBase
 Base class for a set of material properties interface. More...
struct  CodeBlock
 structure describing a raw code block More...
struct  CompatibilityMode
 struct describing the various compatibility modes available More...
struct  CompiledTargetDescriptionBase
 This structure is used to build the compilation rules for an compiled target. More...
struct  ComsolInterface
 the interface to Comsol More...
struct  ConfigurationManager
 class holding the global configuration of MFront More...
struct  CppMaterialPropertyInterface
 Interface for C++ material properties. More...
struct  CppTestMaterialPropertyInterface
struct  CyranoInterface
struct  CyranoMaterialPropertyInterface
 material properties' interface for EDF' Cyrano fuel performance code. More...
struct  CyranoSymbolsGenerator
 this class provides some helper function for behaviours interfaces based on the umat standard More...
struct  SingleVariableInterpolatedData
 a structure representing the interpolation of data of a single variable More...
struct  DDIF2Brick
struct  DefaultCodeGeneratorBase
struct  DefaultCZMCodeGenerator
struct  DefaultCZMDSL
 DSL associated with Cohesive Zone Models. More...
struct  DefaultDSL
 a DSL handling strain based behaviours integrated using an user defined scheme. More...
struct  DefaultDSLBase
struct  DefaultFiniteStrainCodeGenerator
struct  DefaultFiniteStrainDSL
struct  DefaultGenericBehaviourDSL
 Implementation of a generic behaviour. More...
struct  DefaultLinearSystemSolver
struct  DefaultModelDSL
 default implementation of a generic model More...
struct  DianaFEAInterface
 the interface the DianaFEA Standard finite element solver More...
struct  DianaFEASymbolsGenerator
struct  DSLBase
 base structure for domain specific languages More...
struct  DSLFactory
 an abstract factory for the domain specific languages supported by MFront implemented using the singleton pattern. More...
struct  DSLProxy
 structure used to register a DSL generator More...
struct  ExcelMaterialPropertyInterface
struct  ExcelMaterialPropertyInternalInterface
struct  ExecutableDescription
 This structure is used to build the compilation rules for an executable. More...
struct  FileDescription
 this class gathers some information about the MFront file being treated More...
struct  FiniteStrainBehaviourTangentOperatorConversion
 structure describing a conversion between two tangent operator More...
struct  FiniteStrainBehaviourTangentOperatorConversionPath
struct  FiniteStrainSingleCrystalBrick
struct  Fortran03MaterialPropertyInterface
struct  FortranMaterialPropertyInterface
struct  GeneratorOptions
 a data structure holding options passed to generators More...
struct  GenericBehaviourFiniteStrainMTestFileGenerator
struct  GenericBehaviourInterface
 a generic behaviour interface See https://github.com/thelfer/MFrontGenericInterfaceSupport More...
struct  GenericBehaviourMTestFileGenerator
struct  GenericBehaviourSmallStrainMTestFileGenerator
struct  GenericBehaviourSymbolsGenerator
struct  GenericMaterialPropertyInterface
 generic interface for material properties More...
struct  GenericMaterialPropertyInterfaceBase
 a base class for material properties' interfaces such as the cyrano and generic interfaces. More...
struct  GenericModelInterface
 a generic interface for point-wise models implemented using the Model domain specific language. More...
struct  GenericParallelMaterialPropertyInterface
 the generic-parallel interface for material properties, built on the generic interface: the code evaluating a material property at a point is written by GenericMaterialPropertyInterfaceBase (see writePointEvaluation) in a function object. The generated function of batches gives this function object to the runtime of the interface (see MFront/GenericParallelMaterialProperty/Evaluate.hxx), with the primitive of the backend (see MFront/GenericParallel/Batch.hxx). More...
struct  GlobalDomainSpecificLanguageOptionsManager
 a class handling global options passed to domain specific languages. Those global options are generally defined by command-line arguments More...
struct  GnuplotMaterialPropertyInterface
struct  Gradient
struct  ImplicitCodeGeneratorBase
struct  ImplicitCZMDSL
 DSL associated with Cohesive Zone Models. More...
struct  ImplicitDSL
 a DSL handling strain based behaviours integrated using an implicit scheme. More...
struct  ImplicitDSLBase
 Base class for all parser based on an implicit scheme. More...
struct  ImplicitDSLII
 a DSLII handling strain base behaviours integrated using an implicit scheme. More...
struct  ImplicitFiniteStrainDSL
 a DSL handling finite strain behaviours integrated using an implicit scheme. More...
struct  ImplicitGenericBehaviourDSL
 Implementation of a generic behaviour. More...
struct  ImplicitModelDSL
 Implementation of a generic model. More...
struct  InterfaceBase
 a helper class which provides useful methods to build interfaces. More...
struct  IsotropicBehaviourCodeGeneratorBase
struct  IsotropicBehaviourDSLBase
struct  IsotropicMisesCreepCodeGenerator
struct  IsotropicMisesCreepDSL
struct  IsotropicMisesPlasticFlowCodeGenerator
struct  IsotropicMisesPlasticFlowDSL
 a dsl dedicated to isotropic mises plastic flows More...
struct  IsotropicStrainHardeningMisesCreepCodeGenerator
struct  IsotropicStrainHardeningMisesCreepDSL
struct  JavaMaterialPropertyInterface
struct  LawFunction
 a simple structure wrapping the body of a material property More...
struct  LevenbergMarquardtSolverBase
 base class for non linear system solvers based on the the Levenberg-Marquart algorithm. More...
struct  LevenbergMarquardtSolver
 the standard Levenberg-Marquart algorithm More...
struct  LevenbergMarquardtNumericalJacobianSolver
 the standard Levenberg-Marquart algorithm using on a numerical jacobian More...
struct  LibraryDescription
 This structure is used to build the compilation rules for a shared library or a module. More...
struct  LinearSystemSolverBase
 Base class for linear system solver used by implicit domain specific languages. More...
struct  LocalDataStructure
struct  LSDYNAInterface
struct  LSDYNASymbolsGenerator
struct  MaterialKnowledgeDescription
 base class for the description of material knowledge More...
struct  MaterialPropertyDescription
 structure describing a material property More...
struct  MaterialPropertyDSL
 domain specific language handling material properties More...
struct  MaterialPropertyInterfaceFactory
struct  MaterialPropertyInterfaceProxy
struct  WriteMaterialPropertyParametersHandlerArguments
struct  WriteMaterialPropertyParametersSetterFunctionArguments
struct  MFront
 the main class of MFront More...
struct  MFrontBase
 base class for the MFront and MFrontQuery classes More...
struct  MFrontBehaviourInterface
 abstract interface of all behaviour interfaces More...
struct  MFrontDatabase
 a data structure containing the result of the analysis of some MFront libraries More...
struct  MFrontHeader
struct  MFrontLock
 The Great Mfront Lock. More...
struct  MFrontLockGuard
struct  MFrontMaterialPropertyInterface
struct  MFrontModelInterface
 interface used internally by MFront More...
struct  MFrontTemplateGenerationOptions
 structure holding various options used for the generation of code templates. More...
struct  ModelDescription
 class describing a model More...
struct  ModelDSL
 default class for analysing models More...
struct  ModelDSLBase
struct  ModelDSLCommon
 base class for domain specific languages for models More...
struct  ModelInterfaceFactory
struct  ModelInterfaceProxy
struct  MTestFileGeneratorBase
 a base class for mtest files generation More...
struct  MultipleIsotropicMisesFlowsCodeGenerator
struct  MultipleIsotropicMisesFlowsDSL
struct  NewtonRaphsonSolverBase
 base class for non linear system solver based on the Newton-Raphson algorithm. The Newton-Raphson algorithm can be coupled with the PowellDogLegAlgorithm for increased robustness. More...
struct  NewtonRaphsonSolver
 the standard Newton-Raphson Solver More...
struct  NewtonRaphsonNumericalJacobianSolver
 the standard Newton-Raphson solver with a numerical jacobian More...
struct  PowellDogLegNewtonRaphsonSolver
 the standard Newton-Raphson Solver coupled with a Powell' dog leg algorithm. More...
struct  PowellDogLegNewtonRaphsonNumericalJacobianSolver
 the standard Newton-Raphson Solver with numerical jacobian coupled with a Powell' dog leg algorithm. More...
struct  NonLinearSystemSolverBase
struct  NonLinearSystemSolverFactory
struct  OctaveMaterialPropertyInterface
struct  OverridableStringInformationTags
 an helper structure that contains an enumeration list the string valuated information in a MFront file that can be overriden. More...
struct  OverridableStringInformation
 overridable string valuated information More...
struct  OverridableImplementation
 a data structure representing the implementation of a material knowledge based on MFront. More...
struct  PathSpecifier
 a structure allowing to specify paths of MFront implementations in a file. More...
struct  PowellDogLegAlgorithmBase
struct  PythonMaterialPropertyInterface
struct  RungeKuttaCodeGeneratorBase
struct  RungeKuttaDSL
 DSL for integrating a mechanical behaviour using Runge-Kutta algorithms. More...
struct  RungeKuttaDSLBase
struct  RungeKuttaFiniteStrainDSL
 a structure describing a dsl dedicated to the implementation of finite strain behaviours using explicit algorithms. More...
struct  RungeKuttaGenericBehaviourDSL
 Implementation of a generic behaviour using explicit algorithms. More...
struct  RungeKuttaModelDSL
 Implementation of a model using explicit algorithms. More...
struct  SearchPathsHandler
struct  SecondBroydenSolver
 Non linear system solver based on the second Broyden algorithm. More...
struct  SpecificTargetDescription
struct  StandardElasticityBrick
struct  StandardElastoViscoPlasticityBrick
 The StandardElastoViscoPlasticityBrick is meant to describe a behaviour based on: More...
struct  StaticVariableDescription
 class representing a static variable More...
struct  StaticVariableDescriptionContainer
 a simple wrapper around the std::vector class More...
struct  SupportedTypes
 class handling all type variables types supported by MFront More...
struct  SymbolsGenerator
struct  TargetsDescription
 structure containing the results of the analysis of a MFront file. This structure is used to build the compilation rules for the libraries and specific targets defined by MFront interfaces. More...
struct  TDLSLinearSystemSolver
struct  ThermodynamicForce
 structure describes the thermodynamic force associated with a driving variable. More...
struct  UmatFiniteStrainMTestFileGenerator
struct  UMATInterfaceBase
struct  UmatSmallStrainMTestFileGenerator
struct  UserDefinedNonLinearSystemSolver
 class for user defined non linear system solvers More...
struct  VariableBoundsDescription
 a structure in charge of describing bounds on a variable. Two kinds of bounds are considered: More...
struct  VariableDescription
 structure standing for a standard (non static) variable More...
struct  VariableDescriptionContainer
 a simple wrapper around the std::vector class More...
struct  VariableDescriptionBase
 structure standing for a variable. The support of fixed-sized arrays has been added lately. This variable is considered as an array if arraySize is greater than 1. More...
struct  ZMATInterface
struct  MFrontGerminalModelInterface
struct  MFrontPleiadesModelInterfaceBase
struct  PleiadesModelInterface
 Implements a interface for the PLEIADES 2.0 kernel. More...
struct  PleiadesMaterialPropertyInterface

Typedefs

using NonLinearSystemSolver = AbstractNonLinearSystemSolver
 a simple alias for backward compatibility
using GenericData = FileDescription
 typedef provided for backward compatibility
using MaterialKnowledgeAttributeTypes
 types that can be stored in a behaviour attribute
using MaterialKnowledgeAttribute
 a class storing mechanical behaviour attribute
typedef StaticVariableDescription StaticVarHandler
 a simple alias for backward compatibility
using StaticVarContainer = StaticVariableDescriptionContainer
 a simple alias for backward compatibility
using VariableAttributeTypes
 types that can be stored in a variable attribute
using VariableAttribute
 a class used to store a variable attribute
using VarHandler = VariableDescription
 a simple alias for backward compatibility
using VarContainer = VariableDescriptionContainer
 a simple alias for backward compatibility with previous version of TFEL

Enumerations

enum  BehaviourSymmetryType { ISOTROPIC , ORTHOTROPIC }
 symmetry of a behaviour
enum struct  IntegrationScheme {
  IMPLICITSCHEME , EXPLICITSCHEME , SPECIFICSCHEME , USERDEFINEDSCHEME ,
  UNDEFINEDINTEGRATIONSCHEME
}
 Available integration schemes. One of the first thing a dsl shall do is to set the integration scheme it uses. More...
enum class  MaterialKnowledgeType { MATERIALPROPERTY = 0 , BEHAVIOUR = 1 , MODEL = 2 }
 a simple structure describing the type of material knowledge treated.
enum  VerboseLevel {
  VERBOSE_QUIET = -1 , VERBOSE_LEVEL0 = 0 , VERBOSE_LEVEL1 = 1 , VERBOSE_LEVEL2 = 2 ,
  VERBOSE_LEVEL3 = 3 , VERBOSE_DEBUG = 4 , VERBOSE_FULL = 5
}
 list the possible values for the logging facilities provided by the getVerboseMode/getLogStream functions

Functions

void displayBounds (std::ostream &, const VariableBoundsDescription &)
 display the bounds on the given stream
void displayBoundsValue (std::ostream &, const VariableBoundsDescription &)
 display the values of the bounds on the given stream
MFRONT_VISIBILITY_EXPORT bool areCompatible (BehaviourDSLDescription &, const BehaviourBrickDescription &)
 check of if the the DSL' description is compatible with the description of the brick. This is mostly an hint provided to build the behaviour wizard of tfel-editor: additional checks are performed when the brick is added to the behaviour description.
MFRONT_VISIBILITY_EXPORT void complete (BehaviourDSLDescription &, const BehaviourBrickDescription &)
 complete the DSL' description using the description of the brick. The resulting description mixes both information.
MFRONT_VISIBILITY_EXPORT std::string getParametersFileName (const BehaviourDescription &)
MFRONT_VISIBILITY_EXPORT std::string getParametersFileName (const BehaviourDescription &, const BehaviourDescription::Hypothesis)
MFRONT_VISIBILITY_EXPORT void setElasticSymmetryType (BehaviourDescription &, const BehaviourSymmetryType)
 set the elastic symmetry of a material if not already defined. If already defined, check that the symmetry is the same as the one given in argument
MFRONT_VISIBILITY_EXPORT void checkIsStrictlyPositive (const BehaviourDescription::MaterialProperty &)
 check that the given material property description is strictly positive, when described by a constant material property
MFRONT_VISIBILITY_EXPORT void checkIsStrictlyNegative (const BehaviourDescription::MaterialProperty &)
 check that the given material property description is strictly negative,when described by a constant material property
MFRONT_VISIBILITY_EXPORT std::vector< std::string > checkInitializeMethods (const BehaviourDescription &, const BehaviourDescription::Hypothesis, const CheckInitializeMethodsOptions &={})
 this function checks if any of the code block BeforeInitializeLocalVariables, InitializeLocalVariables or AfterInitializeLocalVariables uses a variable in the given list.
MFRONT_VISIBILITY_EXPORT std::string makeTangentOperatorBlocksList (const BehaviourDescription &, const std::vector< std::pair< VariableDescription, VariableDescription > > &)
MFRONT_VISIBILITY_EXPORT bool isValidBehaviourName (const std::string &)
MFRONT_VISIBILITY_EXPORT BehaviourDSLDescription getDefaultStrainBasedBehaviourDSLDescription ()
MFRONT_VISIBILITY_EXPORT BehaviourDSLDescription getDefaultFiniteStrainBehaviourDSLDescription ()
MFRONT_VISIBILITY_EXPORT bool supportAllModellingHypothes (const BehaviourDSLDescription &)
 a small function checking of all the modelling hypotheses can be supported.
MFRONT_VISIBILITY_EXPORT BehaviourDescription::MaterialProperty getBehaviourDescriptionMaterialProperty (AbstractBehaviourDSL &, const std::string_view, const tfel::utilities::Data &)
 extract a material property usable in a behaviour from a value. If the material property is handled through an external mfront file, the generation of the associated sources is added to the compilation process handled by the DSL.
MFRONT_VISIBILITY_EXPORT void addThermalExpansionCoefficientsIfDefined (AbstractBehaviourDSL &, BehaviourDescription &, const tfel::utilities::DataMap &, const bool=true)
 extract the thermal expansion coefficients from the given options, if they are defined.
MFRONT_VISIBILITY_EXPORT std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > buildMaterialPropertiesList (const BehaviourDescription &, const std::set< BehaviourMaterialProperty::Hypothesis > &, const BuildMaterialPropertiesListOptions &)
MFRONT_VISIBILITY_EXPORT std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > buildMaterialPropertiesList (const BehaviourDescription &, const tfel::material::ModellingHypothesis::Hypothesis, const BuildMaterialPropertiesListOptions &)
MFRONT_VISIBILITY_EXPORT void appendToMaterialPropertiesList (std::vector< BehaviourMaterialProperty > &, const std::string &, const std::string &, const std::string &, const bool)
 append a variable to material property list
MFRONT_VISIBILITY_EXPORT void completeMaterialPropertiesList (std::vector< BehaviourMaterialProperty > &, const BehaviourDescription &, const BehaviourMaterialProperty::Hypothesis)
 complete the list of material properties. This method shall be called by the buildMaterialPropertiesList after that the mandatory material properties list have been filled.
MFRONT_VISIBILITY_EXPORT const BehaviourMaterialProperty & findBehaviourMaterialProperty (const std::vector< BehaviourMaterialProperty > &, const std::string &)
MFRONT_VISIBILITY_EXPORT VariableDescription applyNamesChanges (const BehaviourVariableDescription &, const VariableDescription &)
 create a new variable description by applying the names changes defined in the behaviour variable to the given variable description
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer getSharedMaterialProperties (const BehaviourVariableDescription &, const BehaviourVariableDescription::Hypothesis &)
 return the list of material properties which are shared with the behaviour using the behaviour variable
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer getEvaluatedMaterialProperties (const BehaviourVariableDescription &, const BehaviourVariableDescription::Hypothesis &)
 return the list of material properties which shall be evaluated by the behaviour using the behaviour variable
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer getUnSharedNorEvaluatedMaterialProperties (const BehaviourVariableDescription &, const BehaviourVariableDescription::Hypothesis &)
 return the list of material properties which are not shared nor evaluated by the behaviour using the behaviour variable
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer getSharedExternalStateVariables (const BehaviourVariableDescription &, const BehaviourVariableDescription::Hypothesis &)
 return the list of external state variables which are shared with the behaviour using the behaviour variable
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer getEvaluatedExternalStateVariables (const BehaviourVariableDescription &, const BehaviourVariableDescription::Hypothesis &)
 return the list of external state variables which shall be evaluated by the behaviour using the behaviour variable
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer getUnSharedNorEvaluatedExternalStateVariables (const BehaviourVariableDescription &, const BehaviourVariableDescription::Hypothesis &)
 return the list of external state variables which are not shared nor evaluated by the behaviour using the behaviour variable
MFRONT_VISIBILITY_EXPORT std::string getBehaviourWrapperClassName (const BehaviourVariableDescription &)
MFRONT_VISIBILITY_EXPORT std::string getBehaviourVariableFactoryClassName (const BehaviourVariableDescription &)
MFRONT_VISIBILITY_EXPORT void checkSharedVariableCompatibility (const BehaviourVariableDescription &, const VariableDescription &, const VariableDescription &)
 check if the variable of behaviour description is compatible with the variable declared by the calling behaviour
MFRONT_VISIBILITY_EXPORT void generateCMakeListsFile (const TargetsDescription &, const GeneratorOptions &, const std::string &="src")
 a function generating a standard CMake from a target description.
MFRONT_VISIBILITY_EXPORT void callCMake (const std::string &, const std::string &="src")
 a function calling the make utility in the given directory using the specified file.
template<typename T>
bool hasAttribute (const CodeBlock &, const std::string &)
 check if an attribute of the given type is defined
template<typename T>
const T & getAttribute (const CodeBlock &, const std::string &)
 return the value of an attribute.
template<typename T>
T getAttribute (const CodeBlock &, const std::string &, const T &)
 return the value of an attribute or a default value if the attribute is not defined.
MFRONT_VISIBILITY_EXPORT bool isSafe (const CodeBlock &) noexcept
template<typename ValueType>
void exportSymbol (std::ostream &, const std::string_view, const std::string_view, const ValueType &)
 export a symbol using the MFRONT_EXPORT_SYMBOL macro
MFRONT_VISIBILITY_EXPORT void exportStringSymbol (std::ostream &, const std::string_view, const std::string_view)
 export string symbol using the MFRONT_EXPORT_SYMBOL macro
MFRONT_VISIBILITY_EXPORT void exportUnsignedShortSymbol (std::ostream &, const std::string_view, const unsigned short)
 export string symbol using the MFRONT_EXPORT_SYMBOL macro
MFRONT_VISIBILITY_EXPORT void writeVariablesNamesSymbol (std::ostream &, const std::string_view, const mfront::MaterialPropertyDescription &)
 write the name of the variable
MFRONT_VISIBILITY_EXPORT void writeBoundsSymbol (std::ostream &, const std::string_view, const std::string_view, const std::string_view, const mfront::VariableBoundsDescription &)
 write the bounds
MFRONT_VISIBILITY_EXPORT void writeBoundsSymbols (std::ostream &, const std::string_view, const VariableDescriptionContainer &)
 write the bounds associated with the given variables
MFRONT_VISIBILITY_EXPORT void writePhysicalBoundsSymbols (std::ostream &, const std::string_view, const VariableDescriptionContainer &)
 write the physical bounds associated with the given variables
MFRONT_VISIBILITY_EXPORT void writeVariablesBoundsSymbols (std::ostream &, const std::string_view, const mfront::MaterialPropertyDescription &)
 write the name of the variable
MFRONT_VISIBILITY_EXPORT void writeFileDescriptionSymbols (std::ostream &, const std::string_view, const FileDescription &)
 write symbols associated with the file description.
MFRONT_VISIBILITY_EXPORT void writeValidatorSymbol (std::ostream &, const std::string_view, const MaterialKnowledgeDescription &)
 write a symbol associated with the validator.
MFRONT_VISIBILITY_EXPORT void writeCompatibilityModeSymbol (std::ostream &, const std::string_view, const MaterialKnowledgeDescription &)
 write a symbol associated with the compatibility mode.
MFRONT_VISIBILITY_EXPORT void writeBuildIdentifierSymbol (std::ostream &, const std::string_view, const MaterialKnowledgeDescription &)
 write a symbol associated with the build identifier.
MFRONT_VISIBILITY_EXPORT void writeEntryPointSymbol (std::ostream &, const std::string_view)
 write a specific symbol stating that a given name entry point (C-like function for example) has been created using MFront.
MFRONT_VISIBILITY_EXPORT void writeTFELVersionSymbol (std::ostream &, const std::string_view)
 write a specific symbol giving the version of MFront used to generate the given entry point.
MFRONT_VISIBILITY_EXPORT void writeUnitSystemSymbol (std::ostream &, const std::string_view, const MaterialKnowledgeDescription &)
 write a specific symbol giving the version of MFront used to generate the given entry point.
MFRONT_VISIBILITY_EXPORT void writeEntryPointSymbol (std::ostream &, const std::string_view, const std::string_view)
 write a specific symbol stating that a given name entry point (C-like function for example) has been created using MFront.
MFRONT_VISIBILITY_EXPORT void writeInterfaceSymbol (std::ostream &, const std::string_view, const std::string_view)
 write a specific symbol for the interface of an entry point.
MFRONT_VISIBILITY_EXPORT void writeLawSymbol (std::ostream &, const std::string_view, const std::string_view)
 write a symbol stating that a given entry point is associated to a material law.
MFRONT_VISIBILITY_EXPORT void writeMaterialSymbol (std::ostream &, const std::string_view, const std::string_view)
 write a symbol stating that a given entry point is associated to a material.
MFRONT_VISIBILITY_EXPORT void writeMaterialKnowledgeTypeSymbol (std::ostream &, const std::string_view, const MaterialKnowledgeType &)
 write the symbol giving the material knowledge type.
MFRONT_VISIBILITY_EXPORT void writeMaterialLaws (std::ostream &, const std::vector< std::string > &)
MFRONT_VISIBILITY_EXPORT void writeStaticVariables (std::ostream &, const StaticVariableDescriptionContainer &, const std::string_view)
MFRONT_VISIBILITY_EXPORT void writeF77FUNCMacros (std::ostream &)
 define the F77_FUNC and F77_FUNC_ macros. We support the GNU (gfortran) and the intel compilers. By default, the GNU fortran naming scheme is used. This can be changed when compiling mfront generated sources by defining the INTEL_FORTRAN_COMPILER flag.
MFRONT_VISIBILITY_EXPORT void writeExportDirectives (std::ostream &, const bool=true)
 define the MFRONT_SHAREDOBJ macro which contains visibility attributes.
MFRONT_VISIBILITY_EXPORT void writeParametersSymbols (std::ostream &, const std::string_view, const MaterialPropertyDescription &)
 export all symbols related to parameters
MFRONT_VISIBILITY_EXPORT void writeParametersDeclarationSymbols (std::ostream &, const std::string_view, const VariableDescriptionContainer &)
 export parameters declarations
MFRONT_VISIBILITY_EXPORT void writeParametersDefaultValuesSymbols (std::ostream &, const std::string_view, const VariableDescriptionContainer &)
 export the default values of a set of parameters
MFRONT_VISIBILITY_EXPORT void exportArrayOfIntegersSymbol (std::ostream &, const std::string_view, const std::vector< int > &)
 write a symbol describing an array of integers
MFRONT_VISIBILITY_EXPORT void exportArrayOfStringsSymbol (std::ostream &, const std::string_view, const std::vector< std::string > &)
 write a symbol describing an array of strings
MFRONT_VISIBILITY_EXPORT void writeBoundsChecks (std::ostream &, const VariableDescription &, const std::string_view, const std::string_view, const std::string_view, const bool, const bool)
MFRONT_VISIBILITY_EXPORT void writeBoundsChecks (std::ostream &, const VariableDescription &, const VariableBoundsDescription &, const std::string_view, const std::string_view, const std::string_view, const bool, const bool)
MFRONT_VISIBILITY_EXPORT void writePhysicalBoundsChecks (std::ostream &, const VariableDescription &, const std::string_view, const std::string_view, const bool, const bool)
MFRONT_VISIBILITY_EXPORT void writePhysicalBoundsChecks (std::ostream &, const VariableDescription &, const VariableBoundsDescription &, const std::string_view, const std::string_view, const bool, const bool)
MFRONT_VISIBILITY_EXPORT void printLinePragma (std::ostream &, const std::size_t, std::string_view)
 print a #line pragma indicating a line number and a file name
MFRONT_VISIBILITY_EXPORT std::string printLinePragma (const std::size_t, std::string_view)
 print a #line pragma indicating a line number and a file name
MFRONT_VISIBILITY_EXPORT void writePhysicalConstantsAlias (std::ostream &, const MaterialKnowledgeDescription &, std::string_view, const bool)
 declare an alias to the PhysicalConstant class
MFRONT_VISIBILITY_EXPORT bool writeIfDifferentFromExistingFileContent (const std::string &f, const std::string &contents)
 write the contents of a generated file only if the file does not exist or if its contents differ from the given contents.
MFRONT_VISIBILITY_EXPORT void setDefaultCompatibilityMode (const CompatibilityMode::Version &)
 set the default compatibility mode, stored in a global static variable.
MFRONT_VISIBILITY_EXPORT void setDefaultCompatibilityMode (std::string_view)
 set the default compatibility mode, stored in a global static variable.
MFRONT_VISIBILITY_EXPORT std::optional< CompatibilityMode::Version > getDefaultCompatibilityMode () noexcept
MFRONT_VISIBILITY_EXPORT CompatibilityMode::Version getGreatestCompatibilityMode () noexcept
MFRONT_VISIBILITY_EXPORT void check (const CompatibilityMode::Version &)
 check if the given version is ok
MFRONT_VISIBILITY_EXPORT std::string to_string (const CompatibilityMode::Version &)
MFRONT_VISIBILITY_EXPORT tfel::utilities::CxxTokenizerOptions getConfigurationParsingOptions () noexcept
 return the options used to read a configuration file
MFRONT_VISIBILITY_EXPORT tfel::utilities::DataMap readConfigurationFile (const std::string &)
 read a configuration file and turn it into a DataMap
MFRONT_VISIBILITY_EXPORT void parseConfigurationFile (const std::string &)
 parse a configuration file
MFRONT_VISIBILITY_EXPORT std::string writeLinearInterpolationValues (const SingleVariableInterpolatedData &, const SingleVariableInterpolatedData::WriteLinearInterpolationValuesArguments &)
 write the declarations of two constexpr arrays containing the abscissaes and the ordinates of interpolation data
MFRONT_VISIBILITY_EXPORT std::string writeCollocationPoints (const SingleVariableInterpolatedData &, const SingleVariableInterpolatedData::WriteCollocationPointsArguments &)
 write the collocations points computed from abscissaes and the ordinates of interpolation data
MFRONT_VISIBILITY_EXPORT bool isValidMaterialName (std::string_view)
MFRONT_VISIBILITY_EXPORT bool isValidLibraryName (std::string_view)
MFRONT_VISIBILITY_EXPORT bool isValidUserDefinedVariableName (std::string_view)
MFRONT_VISIBILITY_EXPORT bool readSafeOptionTypeIfPresent (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
template<typename T>
T read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read an object of type T from a stream created by the CxxTokenizer class
template<>
MFRONT_VISIBILITY_EXPORT double read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a string from a stream created by the CxxTokenizer class
template<>
MFRONT_VISIBILITY_EXPORT std::string read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a string from a stream created by the CxxTokenizer class
template<>
MFRONT_VISIBILITY_EXPORT std::vector< std::string > read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a vector of strings from a stream created by the CxxTokenizer class
template<>
MFRONT_VISIBILITY_EXPORT tfel::utilities::DataMap read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a data map from a stream created by the CxxTokenizer class
template<typename T>
void read (T &, tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read an object of type T from a stream created by the CxxTokenizer class
MFRONT_VISIBILITY_EXPORT std::pair< std::string, VariableBoundsDescription > readVariableBounds (tfel::utilities::CxxTokenizer::const_iterator &p, const tfel::utilities::CxxTokenizer::const_iterator pe)
 read the bounds associated to a variable
MFRONT_VISIBILITY_EXPORT void mergeExecutableDescription (ExecutableDescription &, const ExecutableDescription &)
 merge two executable description
MFRONT_VISIBILITY_EXPORT std::ostream & operator<< (std::ostream &, const ExecutableDescription &)
 write a executable description to a stream
template<>
MFRONT_VISIBILITY_EXPORT ExecutableDescription read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a ExecutableDescription from a stream created by the CxxTokenizer class
MFRONT_VISIBILITY_EXPORT void performPedanticChecks (const FileDescription &)
 various checks on file description
MFRONT_VISIBILITY_EXPORT void initDSLs ()
 declare dls's delivered with mfront
MFRONT_VISIBILITY_EXPORT void initInterfaces ()
MFRONT_VISIBILITY_EXPORT void setInstallPath (const std::string &)
 set the installation path
MFRONT_VISIBILITY_EXPORT std::string getInstallPath ()
MFRONT_VISIBILITY_EXPORT std::string convert (const LibraryDescription::LibraryType)
MFRONT_VISIBILITY_EXPORT void mergeLibraryDescription (LibraryDescription &, const LibraryDescription &)
 merge two library description
MFRONT_VISIBILITY_EXPORT std::ostream & operator<< (std::ostream &, const LibraryDescription &)
 write a library description to a stream
template<>
MFRONT_VISIBILITY_EXPORT LibraryDescription read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a LibraryDescription from a stream created by the CxxTokenizer class
MFRONT_VISIBILITY_EXPORT void generateMakeFile (const TargetsDescription &, const GeneratorOptions &, const std::string &="src", const std::string &="Makefile.mfront")
 a function generating a standard Makefile from a target description.
MFRONT_VISIBILITY_EXPORT void callMake (const std::string &, const std::string &="src", const std::string &="Makefile.mfront")
 a function calling the make utility in the given directory using the specified file.
template<typename T>
constexpr bool isMaterialKnowledgeAttributeType ()
MFRONT_VISIBILITY_EXPORT void setDisableRuntimeChecks (MaterialKnowledgeDescription &, const bool)
 set if runtime checks shall be disabled
MFRONT_VISIBILITY_EXPORT bool areRuntimeChecksDisabled (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::disableRuntimeChecks attribute if it is defined, false otherwise.
MFRONT_VISIBILITY_EXPORT void setDefaultOutOfBoundsPolicy (MaterialKnowledgeDescription &, const std::string &)
 set the default out of bounds policy
MFRONT_VISIBILITY_EXPORT tfel::material::OutOfBoundsPolicy getDefaultOutOfBoundsPolicy (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::defaultOutOfBoundsPolicy attribute if it is defined, tfel::material::None otherwise.
MFRONT_VISIBILITY_EXPORT std::string getDefaultOutOfBoundsPolicyAsString (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::defaultOutOfBoundsPolicy attribute if it is defined, None otherwise.
MFRONT_VISIBILITY_EXPORT std::string getDefaultOutOfBoundsPolicyAsUpperCaseString (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::defaultOutOfBoundsPolicy attribute if it is defined, NONE otherwise.
MFRONT_VISIBILITY_EXPORT bool allowRuntimeModificationOfTheOutOfBoundsPolicy (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::runtimeModificationOfTheOutOfBoundsPolicy attribute if it is defined, true otherwise.
MFRONT_VISIBILITY_EXPORT bool areParametersTreatedAsStaticVariables (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::parametersAsStaticVariables attribute if it is defined, false otherwise.
MFRONT_VISIBILITY_EXPORT bool allowsParametersInitializationFromFile (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::initializeParametersFromFile attribute if it is defined, true otherwise.
MFRONT_VISIBILITY_EXPORT std::optional< CompatibilityMode::Version > getCompatibilityMode (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::compatibilityMode attribute if it is defined.
MFRONT_VISIBILITY_EXPORT CompatibilityMode::Version getEffectiveCompatibilityMode (const MaterialKnowledgeDescription &)
 this function returns the value of the MaterialKnowledgeDescription::compatibilityMode attribute if it is defined or the maximum known compatibility mode.
MFRONT_VISIBILITY_EXPORT bool useQuantities (const MaterialPropertyDescription &)
MFRONT_VISIBILITY_EXPORT void writeBeginningOfMaterialPropertyBody (std::ostream &, const MaterialPropertyDescription &, const FileDescription &, const std::string_view, const bool areQuantitiesSupported)
 an helper function which writes useful declarations at the beginning of the function body.
MFRONT_VISIBILITY_EXPORT void writeScalarStandardTypedefs (std::ostream &, const MaterialPropertyDescription &, const std::string_view, const bool areQuantitiesSupported)
 an helper function which writes the declaration of some TFEL standard scalar alias. The tfel::config::ScalarTypes class for details.
MFRONT_VISIBILITY_EXPORT std::string getParametersFileName (const MaterialPropertyDescription &)
MFRONT_VISIBILITY_EXPORT std::string getMaterialLawLibraryNameBase (const MaterialPropertyDescription &)
MFRONT_VISIBILITY_EXPORT bool isValidMaterialPropertyName (const std::string &)
MFRONT_VISIBILITY_EXPORT void writeMaterialPropertyParametersHandler (std::ostream &, const MaterialPropertyDescription &, const WriteMaterialPropertyParametersHandlerArguments &)
 write the implementation of the class able to manage the parameters of a material property for a given interface.
MFRONT_VISIBILITY_EXPORT void writeMaterialPropertyParametersHandler (std::ostream &, const MaterialPropertyDescription &, const std::string &, const std::string &, const std::string &)
MFRONT_VISIBILITY_EXPORT void writeAssignMaterialPropertyParameters (std::ostream &, const MaterialPropertyDescription &, const std::string &, const std::string &, const std::string &)
MFRONT_VISIBILITY_EXPORT std::string getMaterialPropertyParametersClassName (const std::string &)
MFRONT_VISIBILITY_EXPORT std::string getMaterialPropertyParametersHandlerClassName (const std::string &)
MFRONT_VISIBILITY_EXPORT void writeParametersSetterFunctionDeclaration (std::ostream &, const MaterialPropertyDescription &, const WriteMaterialPropertyParametersSetterFunctionArguments &)
 write the declaration of the function allowing the set the values of the parameters of a material property
MFRONT_VISIBILITY_EXPORT void writeParametersSetterFunctionImplementation (std::ostream &, const MaterialPropertyDescription &, const WriteMaterialPropertyParametersSetterFunctionArguments &)
 write the implementation of the function allowing the set the values of the parameters of a material property
MFRONT_VISIBILITY_EXPORT bool getDebugMode ()
MFRONT_VISIBILITY_EXPORT void setDebugMode (const bool)
 enable or diable the debug mode
MFRONTLOGSTREAM_VISIBILITY_EXPORT VerboseLevel & getVerboseMode ()
MFRONTLOGSTREAM_VISIBILITY_EXPORT void setVerboseMode (const VerboseLevel=VERBOSE_LEVEL0)
MFRONTLOGSTREAM_VISIBILITY_EXPORT void setVerboseMode (const std::string &)
 change the verbose level
MFRONTLOGSTREAM_VISIBILITY_EXPORT std::ostream & getLogStream ()
MFRONTLOGSTREAM_VISIBILITY_EXPORT void setLogStream (const std::string &f)
MFRONTLOGSTREAM_VISIBILITY_EXPORT void setLogStream (std::ostream &)
MFRONTLOGSTREAM_VISIBILITY_EXPORT void setUnicodeOutputOption (const bool)
 set if MFront shall use unicode characters on output. In particular:
MFRONTLOGSTREAM_VISIBILITY_EXPORT bool getUnicodeOutputOption ()
MFRONT_VISIBILITY_EXPORT void addSymbol (std::map< std::string, std::string > &, const std::string_view, const std::string_view)
 add the given symbol.
template<typename Value>
std::vector< std::string > getKeys (const std::map< std::string, Value > &)
MFRONT_VISIBILITY_EXPORT void insert_if (std::vector< std::string > &, const std::string &)
 conditionnally insert a string into a vector of string : an element is inserted if not already present or empty.
MFRONT_VISIBILITY_EXPORT void insert_if (std::vector< std::string > &, const char *const)
 conditionnally insert a string into a vector of string : an element is inserted if not already present or has zero size or is nulltpr.
template<typename Container>
void insert_if (std::vector< std::string > &, const Container &)
 call insert_if on every element of a container.
template<typename Value>
void insert_if (std::vector< std::string > &, const std::initializer_list< Value > &)
 call insert_if on every element of an initializer_list.
MFRONT_VISIBILITY_EXPORT void write (std::ostream &, const std::vector< std::string > &, const std::string &)
 write a vector of string to the output stream
MFRONT_VISIBILITY_EXPORT std::string makeUpperCase (std::string_view)
MFRONT_VISIBILITY_EXPORT std::string makeLowerCase (std::string_view)
MFRONT_VISIBILITY_EXPORT void displayGlossaryEntryCompleteDescription (std::ostream &, const tfel::glossary::GlossaryEntry &)
 display the complete description of a glossary entry
MFRONT_VISIBILITY_EXPORT std::tuple< std::string, bool, unsigned short > extractVariableNameAndArrayPosition (const std::string &)
 extract the name of a variable and an array position from a string.
MFRONT_VISIBILITY_EXPORT bool getWarningMode () noexcept
MFRONT_VISIBILITY_EXPORT void setWarningMode (const bool) noexcept
 enable or diable the warning mode
MFRONT_VISIBILITY_EXPORT bool getWarningErrorMode () noexcept
MFRONT_VISIBILITY_EXPORT void setWarningErrorMode (const bool) noexcept
 enable or diable the warning error mode
MFRONT_VISIBILITY_EXPORT void reportWarning (std::string_view)
 report a warning if warning mode is enabled
MFRONT_VISIBILITY_EXPORT void reportWarning (const std::vector< std::string > &)
 report a list of warnings if warning mode is enabled
MFRONT_VISIBILITY_EXPORT bool ignoreSafeOptionForWarnings () noexcept
MFRONT_VISIBILITY_EXPORT void setIgnoreSafeOptionForWarnings (const bool) noexcept
 set if the safe option for keywords or code blocks shall be ignored
MFRONT_VISIBILITY_EXPORT BehaviourDescription convertToBehaviourDescription (const ModelDescription &)
 convert a model description to a behaviour description
MFRONT_VISIBILITY_EXPORT std::string getParametersFileName (const ModelDescription &)
MFRONT_VISIBILITY_EXPORT void writeRealParametersInitializerConstructor (std::ostream &, const ModelDescription &, const std::string &)
 write the default constructor of the class holding the real parameters of a model.
MFRONT_VISIBILITY_EXPORT bool isValidModelName (const std::string &)
MFRONT_VISIBILITY_EXPORT void throwOverridenValueAlreadySet ()
 an helper function
MFRONT_VISIBILITY_EXPORT std::string getDestinationPathInMadnexFile (const OverridableImplementation &)
 return the implementation path where the given implementation will be written
MFRONT_VISIBILITY_EXPORT void write (const OverridableImplementation &, const std::string &)
 write the implementation to the file
MFRONT_VISIBILITY_EXPORT void write (const OverridableImplementation &, const std::string &, const std::string &)
 write the implementation to the file
MFRONT_VISIBILITY_EXPORT bool parsePathSpecifierArguments (std::vector< PathSpecifier > &, PathSpecifier &, const std::string &)
 treat command line arguments associated with the specification of a path specifier.
MFRONT_VISIBILITY_EXPORT void finalizePathSpecifierArgumentsParsing (std::vector< PathSpecifier > &, const PathSpecifier &)
 finalize the treatment of command line arguments associated with path specifiers.
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getImplementationsPaths (const std::string &, const std::string &, const std::string &, const std::string &, const std::string &)
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getImplementationsPaths (const PathSpecifier &)
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getImplementationsPaths (const std::vector< PathSpecifier > &)
MFRONT_VISIBILITY_EXPORT bool getPedanticMode ()
MFRONT_VISIBILITY_EXPORT void setPedanticMode (const bool)
 enable or diable the pedantic mode
void writeStandardPerformanceProfiling (std::ostream &, std::string_view, std::string_view, std::string_view="")
 : an helper function to declare a timer
void writeStandardPerformanceProfilingBegin (std::ostream &, std::string_view, std::string_view, std::string_view="")
 : an helper function writing the beginning of a performance measurement
void writeStandardPerformanceProfilingEnd (std::ostream &)
 : an helper function writing the end of a performance measurement
MFRONT_VISIBILITY_EXPORT std::string to_string (const SupportedTypes::TypeSize &)
 convert to string
MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize operator* (const SupportedTypes::TypeSize &, const unsigned int)
 multiply a type size by a scalar
MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize operator* (const unsigned int, const SupportedTypes::TypeSize &)
 multiply a type size by a scalar
MFRONT_VISIBILITY_EXPORT std::ostream & operator<< (std::ostream &, const SupportedTypes::TypeSize &)
 output operator
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getTypeAliases ()
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getScalarTypeAliases ()
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getTinyVectorTypeAliases ()
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getStensorTypeAliases ()
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getTensorTypeAliases ()
MFRONT_VISIBILITY_EXPORT std::vector< std::string > getST2toST2TypeAliases ()
MFRONT_VISIBILITY_EXPORT bool describes (const TargetsDescription &, const std::string &)
MFRONT_VISIBILITY_EXPORT void mergeTargetsDescription (TargetsDescription &, const TargetsDescription &, const bool)
 merge two targets description
MFRONT_VISIBILITY_EXPORT std::ostream & operator<< (std::ostream &, const TargetsDescription &)
 write a target description to a stream
template<>
MFRONT_VISIBILITY_EXPORT TargetsDescription read (tfel::utilities::CxxTokenizer::const_iterator &, const tfel::utilities::CxxTokenizer::const_iterator)
 read a TargetDescription from a stream created by the CxxTokenizer class
MFRONT_VISIBILITY_EXPORT void checkAndCompletePhysicalBoundsDeclaration (VariableDescription &, const std::string_view)
 declare the physical bounds of a variable if:
MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize getTypeSize (const VariableDescription &)
MFRONT_VISIBILITY_EXPORT bool hasBounds (const VariableDescription &)
MFRONT_VISIBILITY_EXPORT bool hasBounds (const VariableDescription &, const unsigned short)
MFRONT_VISIBILITY_EXPORT bool hasPhysicalBounds (const VariableDescription &)
MFRONT_VISIBILITY_EXPORT bool hasPhysicalBounds (const VariableDescription &, const unsigned short)
MFRONT_VISIBILITY_EXPORT void getSymbol (std::map< std::string, std::string > &, const VariableDescription &)
 retrieve the symbol of the given variable description.
MFRONT_VISIBILITY_EXPORT void getIncrementSymbol (std::map< std::string, std::string > &, const VariableDescription &)
 retrieve the symbols associated with the increment of the given variable.
MFRONT_VISIBILITY_EXPORT void getTimeDerivativeSymbol (std::map< std::string, std::string > &, const VariableDescription &)
 retrieve the symbols associated with the time derivative of the given variable.
MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer::const_iterator findByExternalName (const VariableDescriptionContainer &, const std::string &)
MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize getTypeSize (const VariableDescriptionContainer &)
MFRONT_VISIBILITY_EXPORT bool hasBounds (const VariableDescriptionContainer &)
MFRONT_VISIBILITY_EXPORT bool hasPhysicalBounds (const VariableDescriptionContainer &)
MFRONT_VISIBILITY_EXPORT void getSymbols (std::map< std::string, std::string > &, const VariableDescriptionContainer &)
 retrieve all symbols in the given variables.
MFRONT_VISIBILITY_EXPORT void getIncrementSymbols (std::map< std::string, std::string > &, const VariableDescriptionContainer &)
 retrieve all symbols associated with the increment of the given variables.
MFRONT_VISIBILITY_EXPORT void getTimeDerivativeSymbols (std::map< std::string, std::string > &, const VariableDescriptionContainer &)
 retrieve all symbols associated with the time derivative of the given variables.
MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize getOffset (const VariableDescriptionContainer &, const std::string &)
MFRONT_VISIBILITY_EXPORT void checkAndCompletePhysicalBoundsDeclaration (VariableDescriptionContainer &, const std::string_view)
 declare the physical bounds of all variables using the glossary
MFRONT_VISIBILITY_EXPORT const std::string & displayName (const VariableDescriptionBase &)

Detailed Description

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

Typedef Documentation

◆ MaterialKnowledgeAttribute

Initial value:

a class storing mechanical behaviour attribute

◆ MaterialKnowledgeAttributeTypes

Initial value:
tfel::meta::GenerateTypeList<bool,
unsigned short,
std::string,
std::vector<std::string>>::type

types that can be stored in a behaviour attribute

◆ NonLinearSystemSolver

◆ VariableAttribute

Initial value:

a class used to store a variable attribute

◆ VariableAttributeTypes

Initial value:
tfel::meta::GenerateTypeList<bool,
unsigned short,
int,
double,
std::string,
std::vector<double>,
std::vector<std::string>>::type

types that can be stored in a variable attribute

Enumeration Type Documentation

◆ IntegrationScheme

enum struct mfront::IntegrationScheme
strong

Available integration schemes. One of the first thing a dsl shall do is to set the integration scheme it uses.

Enumerator
IMPLICITSCHEME 

value set by the Implicit Dsl family

EXPLICITSCHEME 

value set by the Runge-Kutta Dsl

SPECIFICSCHEME 

value set by the IsotropicMisesCreepDSL, IsotropicMisesPlasticFlowDSL, IsotropicStrainHardeningMisesCreepDSL MultipleIsotropicMisesFlowsDSL dsls.

USERDEFINEDSCHEME 

default value.

UNDEFINEDINTEGRATIONSCHEME 

undefined value.

Function Documentation

◆ addSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::addSymbol ( std::map< std::string, std::string > & ,
const std::string_view ,
const std::string_view  )

add the given symbol.

Parameters
[in,out]symbolsmapping between a symbol and a replacement string
[in]ssymbol
[in]rreplacement string

◆ addThermalExpansionCoefficientsIfDefined()

MFRONT_VISIBILITY_EXPORT void mfront::addThermalExpansionCoefficientsIfDefined ( AbstractBehaviourDSL & ,
BehaviourDescription & ,
const tfel::utilities::DataMap & ,
const bool = true )

extract the thermal expansion coefficients from the given options, if they are defined.

Parameters
[in]dslbehaviour dsl
[in]bdbehaviour description
[in]doptions
[in]allow_reference_temperatureboolean stating if the reference_temperature option is allowed.

◆ allowRuntimeModificationOfTheOutOfBoundsPolicy()

MFRONT_VISIBILITY_EXPORT bool mfront::allowRuntimeModificationOfTheOutOfBoundsPolicy ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::runtimeModificationOfTheOutOfBoundsPolicy attribute if it is defined, true otherwise.

Parameters
[in]dmaterial knowledge description

◆ allowsParametersInitializationFromFile()

MFRONT_VISIBILITY_EXPORT bool mfront::allowsParametersInitializationFromFile ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::initializeParametersFromFile attribute if it is defined, true otherwise.

Returns
if the initialization of parameters from a file shall be allowed.
Parameters
[in]dmaterial knowledge description

◆ appendToMaterialPropertiesList()

MFRONT_VISIBILITY_EXPORT void mfront::appendToMaterialPropertiesList ( std::vector< BehaviourMaterialProperty > & ,
const std::string & ,
const std::string & ,
const std::string & ,
const bool  )

append a variable to material property list

Parameters
[out]llist of material properties
[in]ttype of the variable
[in]nname of the variable
[in]vvariable name
[in]bif true, this is a dummy variable

◆ applyNamesChanges()

MFRONT_VISIBILITY_EXPORT VariableDescription mfront::applyNamesChanges ( const BehaviourVariableDescription & ,
const VariableDescription &  )

create a new variable description by applying the names changes defined in the behaviour variable to the given variable description

Parameters
[in]dbehaviour variable description
[in]vvariable description

◆ areCompatible()

MFRONT_VISIBILITY_EXPORT bool mfront::areCompatible ( BehaviourDSLDescription & ,
const BehaviourBrickDescription &  )

check of if the the DSL' description is compatible with the description of the brick. This is mostly an hint provided to build the behaviour wizard of tfel-editor: additional checks are performed when the brick is added to the behaviour description.

Note
if the user want to see why the given arguments are not compatible, they must use the complete function and catch the exception (the BehaviourDSLDescription is not modified on error).
Parameters
[in]dbehaviour DSL description
[in]bbdbehaviour brick description
Returns
true if both description are compatible

◆ areParametersTreatedAsStaticVariables()

MFRONT_VISIBILITY_EXPORT bool mfront::areParametersTreatedAsStaticVariables ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::parametersAsStaticVariables attribute if it is defined, false otherwise.

Returns
if the parameters are treated as static variables.
Parameters
[in]dmaterial knowledge description

◆ areRuntimeChecksDisabled()

MFRONT_VISIBILITY_EXPORT bool mfront::areRuntimeChecksDisabled ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::disableRuntimeChecks attribute if it is defined, false otherwise.

Parameters
[in]dmaterial knowledge description

◆ buildMaterialPropertiesList() [1/2]

MFRONT_VISIBILITY_EXPORT std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > mfront::buildMaterialPropertiesList ( const BehaviourDescription & ,
const std::set< BehaviourMaterialProperty::Hypothesis > & ,
const BuildMaterialPropertiesListOptions &  )
Returns
a pair which first member gives the position of the material properties in the values given through the interface and whose second members is an offset giving the number of imposed material properties.
Parameters
[in]mbbehaviour description
[in]mhmodelling hypotheses
[in]optsoptions

◆ buildMaterialPropertiesList() [2/2]

MFRONT_VISIBILITY_EXPORT std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > mfront::buildMaterialPropertiesList ( const BehaviourDescription & ,
const tfel::material::ModellingHypothesis::Hypothesis ,
const BuildMaterialPropertiesListOptions &  )
Returns
a pair which first member gives the position of the material properties in the values given through the interface and whose second members is an offset giving the number of imposed material properties.
Parameters
[in]mbbehaviour description
[in]hmodelling hypothesis
[in]optsoptions

◆ callCMake()

MFRONT_VISIBILITY_EXPORT void mfront::callCMake ( const std::string & ,
const std::string & = "src" )

a function calling the make utility in the given directory using the specified file.

Parameters
[in]t: target name
[in]d: directory
[in]f: file name

◆ callMake()

MFRONT_VISIBILITY_EXPORT void mfront::callMake ( const std::string & ,
const std::string & = "src",
const std::string & = "Makefile.mfront" )

a function calling the make utility in the given directory using the specified file.

Parameters
[in]t: target name
[in]d: directory
[in]f: file name

◆ check()

MFRONT_VISIBILITY_EXPORT void mfront::check ( const CompatibilityMode::Version & )

check if the given version is ok

Parameters
[in]vversion

◆ checkAndCompletePhysicalBoundsDeclaration() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::checkAndCompletePhysicalBoundsDeclaration ( VariableDescription & ,
const std::string_view  )

declare the physical bounds of a variable if:

  • the variable is associated with a glossary name and the glossary entry declares lower or upper physical bounds
  • physical bounds were not already declared

This method also checks if the declaration of the physical bounds are consistent with the one of the glossary entry.

Parameters
[in]vvariable
[in]sunit system

◆ checkAndCompletePhysicalBoundsDeclaration() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::checkAndCompletePhysicalBoundsDeclaration ( VariableDescriptionContainer & ,
const std::string_view  )

declare the physical bounds of all variables using the glossary

Parameters
[in]variableslist of variables
[in]sunit system

◆ checkInitializeMethods()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::checkInitializeMethods ( const BehaviourDescription & ,
const BehaviourDescription::Hypothesis ,
const CheckInitializeMethodsOptions & = {} )

this function checks if any of the code block BeforeInitializeLocalVariables, InitializeLocalVariables or AfterInitializeLocalVariables uses a variable in the given list.

Parameters
[in]bdbehaviour description
[in]hmodelling hypothesis
[in]optsmodelling hypothesis
Returns
warnings describining the variables used

◆ checkIsStrictlyNegative()

MFRONT_VISIBILITY_EXPORT void mfront::checkIsStrictlyNegative ( const BehaviourDescription::MaterialProperty & )

check that the given material property description is strictly negative,when described by a constant material property

Parameters
[in]mpmaterial property description

◆ checkIsStrictlyPositive()

MFRONT_VISIBILITY_EXPORT void mfront::checkIsStrictlyPositive ( const BehaviourDescription::MaterialProperty & )

check that the given material property description is strictly positive, when described by a constant material property

Parameters
[in]mpmaterial property description

◆ checkSharedVariableCompatibility()

MFRONT_VISIBILITY_EXPORT void mfront::checkSharedVariableCompatibility ( const BehaviourVariableDescription & ,
const VariableDescription & ,
const VariableDescription &  )

check if the variable of behaviour description is compatible with the variable declared by the calling behaviour

Parameters
[in]bvbehaviour variable
[in]v1variable declared as shared by the behaviour variable
[in]v2variable declared by the calling behaviour

◆ complete()

MFRONT_VISIBILITY_EXPORT void mfront::complete ( BehaviourDSLDescription & ,
const BehaviourBrickDescription &  )

complete the DSL' description using the description of the brick. The resulting description mixes both information.

Parameters
[in]dbehaviour DSL description
[in]bbdbehaviour brick description
Note
on error, the behaviour DSL description is left unchanged

◆ completeMaterialPropertiesList()

MFRONT_VISIBILITY_EXPORT void mfront::completeMaterialPropertiesList ( std::vector< BehaviourMaterialProperty > & ,
const BehaviourDescription & ,
const BehaviourMaterialProperty::Hypothesis  )

complete the list of material properties. This method shall be called by the buildMaterialPropertiesList after that the mandatory material properties list have been filled.

Parameters
[out]mpropslist of material properties
[in]mbbehaviour description
[in]h: modelling hypothesis

◆ convert()

MFRONT_VISIBILITY_EXPORT std::string mfront::convert ( const LibraryDescription::LibraryType )
Returns
a string describing the library type
Parameters
[in]t: library type

◆ convertToBehaviourDescription()

MFRONT_VISIBILITY_EXPORT BehaviourDescription mfront::convertToBehaviourDescription ( const ModelDescription & )

convert a model description to a behaviour description

Returns
the behaviour description
Parameters
[in]mdmodel description

◆ describes()

MFRONT_VISIBILITY_EXPORT bool mfront::describes ( const TargetsDescription & ,
const std::string &  )
Returns
true if the target description describes a library with the given name
Parameters
[in]t: target description
[in]n: library name

◆ displayBounds()

void mfront::displayBounds ( std::ostream & ,
const VariableBoundsDescription &  )

display the bounds on the given stream

Parameters
[in]osoutput stream
[in]bbounds

◆ displayBoundsValue()

void mfront::displayBoundsValue ( std::ostream & ,
const VariableBoundsDescription &  )

display the values of the bounds on the given stream

Parameters
[in]osoutput stream
[in]bbounds

◆ displayGlossaryEntryCompleteDescription()

MFRONT_VISIBILITY_EXPORT void mfront::displayGlossaryEntryCompleteDescription ( std::ostream & ,
const tfel::glossary::GlossaryEntry &  )

display the complete description of a glossary entry

Parameters
[out]os: output stream
[in]e: glossary entry

◆ displayName()

MFRONT_VISIBILITY_EXPORT const std::string & mfront::displayName ( const VariableDescriptionBase & )
Returns
the symbolic representation of the variable if defined or the variable name.
Parameters
[in]vvariable

◆ exportArrayOfIntegersSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::exportArrayOfIntegersSymbol ( std::ostream & ,
const std::string_view ,
const std::vector< int > &  )

write a symbol describing an array of integers

Parameters
[out]osoutput stream
[out]nname of the generated symbol
[out]valuesarray of integers

◆ exportArrayOfStringsSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::exportArrayOfStringsSymbol ( std::ostream & ,
const std::string_view ,
const std::vector< std::string > &  )

write a symbol describing an array of strings

Parameters
[out]osoutput stream
[in]nname of the generated symbol
[in]valuesarray of strings

◆ exportStringSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::exportStringSymbol ( std::ostream & ,
const std::string_view ,
const std::string_view  )

export string symbol using the MFRONT_EXPORT_SYMBOL macro

Parameters
[out]osoutput stream
[in]nname of the symbol

◆ exportSymbol()

template<typename ValueType>
void mfront::exportSymbol ( std::ostream & os,
const std::string_view t,
const std::string_view n,
const ValueType & v )

export a symbol using the MFRONT_EXPORT_SYMBOL macro

Parameters
[out]osoutput stream
[in]ttype of the symbol
[in]nname of the symbol
[in]vvalue of the symbol

◆ exportUnsignedShortSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::exportUnsignedShortSymbol ( std::ostream & ,
const std::string_view ,
const unsigned short  )

export string symbol using the MFRONT_EXPORT_SYMBOL macro

Parameters
[out]osoutput stream
[in]nname of the symbol

◆ extractVariableNameAndArrayPosition()

MFRONT_VISIBILITY_EXPORT std::tuple< std::string, bool, unsigned short > mfront::extractVariableNameAndArrayPosition ( const std::string & )

extract the name of a variable and an array position from a string.

Parameters
[in]nvariable name and array position
Returns
a tuple giving the variable name, the fact that a position was read, the read position if any.

For example, calling this function with the A[10] argument results in the following tuple: {"A",true,10}.

With B as argument, the result is the following tuple: {"B",false,0}.

◆ finalizePathSpecifierArgumentsParsing()

MFRONT_VISIBILITY_EXPORT void mfront::finalizePathSpecifierArgumentsParsing ( std::vector< PathSpecifier > & ,
const PathSpecifier &  )

finalize the treatment of command line arguments associated with path specifiers.

Parameters
[in]pathsregistred path specifiers
[in]scurrent path specifier

◆ findBehaviourMaterialProperty()

MFRONT_VISIBILITY_EXPORT const BehaviourMaterialProperty & mfront::findBehaviourMaterialProperty ( const std::vector< BehaviourMaterialProperty > & ,
const std::string &  )

an helper function returning a material property

Parameters
[in]mprops: material properties
[in]n: glossary name
Returns
the umat material property with the given material property name

◆ findByExternalName()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer::const_iterator mfront::findByExternalName ( const VariableDescriptionContainer & ,
const std::string &  )
Returns
an iterator to the variable with the given external name
Parameters
[in]cvariable container
[in]nexternal name

◆ generateCMakeListsFile()

MFRONT_VISIBILITY_EXPORT void mfront::generateCMakeListsFile ( const TargetsDescription & ,
const GeneratorOptions & ,
const std::string & = "src" )

a function generating a standard CMake from a target description.

Parameters
[in]t: target description
[in]o: options
[in]d: directory
[in]f: file name

◆ generateMakeFile()

MFRONT_VISIBILITY_EXPORT void mfront::generateMakeFile ( const TargetsDescription & ,
const GeneratorOptions & ,
const std::string & = "src",
const std::string & = "Makefile.mfront" )

a function generating a standard Makefile from a target description.

Parameters
[in]t: target description
[in]o: options
[in]d: directory
[in]f: file name

◆ getAttribute() [1/2]

template<typename T>
const T & mfront::getAttribute ( const CodeBlock & cb,
const std::string & n )

return the value of an attribute.

Exceptions
ifthe attribute does not exist
ifthe type of the attribute does not match
Template Parameters
Ttype of the attribute
Parameters
[in]cbcode block
[in]nname of the attribute

◆ getAttribute() [2/2]

template<typename T>
T mfront::getAttribute ( const CodeBlock & cb,
const std::string & n,
const T & v )

return the value of an attribute or a default value if the attribute is not defined.

Exceptions
ifthe type of the attribute does not match
Template Parameters
Ttype of the attribute
Parameters
[in]cbcode block
[in]nname of the attribute
[in]vdefault value

◆ getBehaviourDescriptionMaterialProperty()

MFRONT_VISIBILITY_EXPORT BehaviourDescription::MaterialProperty mfront::getBehaviourDescriptionMaterialProperty ( AbstractBehaviourDSL & ,
const std::string_view ,
const tfel::utilities::Data &  )

extract a material property usable in a behaviour from a value. If the material property is handled through an external mfront file, the generation of the associated sources is added to the compilation process handled by the DSL.

Parameters
[in,out]dslbehaviour dsl
[in]nmaterial property name
[in]ddata

◆ getBehaviourVariableFactoryClassName()

MFRONT_VISIBILITY_EXPORT std::string mfront::getBehaviourVariableFactoryClassName ( const BehaviourVariableDescription & )
Returns
the name of behaviour variable factory class
Parameters
[in]dbehaviour variable description

◆ getBehaviourWrapperClassName()

MFRONT_VISIBILITY_EXPORT std::string mfront::getBehaviourWrapperClassName ( const BehaviourVariableDescription & )
Returns
the name of behaviour wrapper class
Parameters
[in]dbehaviour variable description

◆ getCompatibilityMode()

MFRONT_VISIBILITY_EXPORT std::optional< CompatibilityMode::Version > mfront::getCompatibilityMode ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::compatibilityMode attribute if it is defined.

Parameters
[in]dmaterial knowledge description

◆ getDebugMode()

MFRONT_VISIBILITY_EXPORT bool mfront::getDebugMode ( )
Returns
true if the debug mode is enabled

◆ getDefaultCompatibilityMode()

MFRONT_VISIBILITY_EXPORT std::optional< CompatibilityMode::Version > mfront::getDefaultCompatibilityMode ( )
noexcept
Returns
the default compatibility mode, if defined
Exceptions
ifthe version is strictly lower than 5.2.0

◆ getDefaultFiniteStrainBehaviourDSLDescription()

MFRONT_VISIBILITY_EXPORT BehaviourDSLDescription mfront::getDefaultFiniteStrainBehaviourDSLDescription ( )
Returns
a default description for DSLs handling finite strain behaviours.

◆ getDefaultOutOfBoundsPolicy()

MFRONT_VISIBILITY_EXPORT tfel::material::OutOfBoundsPolicy mfront::getDefaultOutOfBoundsPolicy ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::defaultOutOfBoundsPolicy attribute if it is defined, tfel::material::None otherwise.

Parameters
[in]dmaterial knowledge description

◆ getDefaultOutOfBoundsPolicyAsString()

MFRONT_VISIBILITY_EXPORT std::string mfront::getDefaultOutOfBoundsPolicyAsString ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::defaultOutOfBoundsPolicy attribute if it is defined, None otherwise.

Parameters
[in]dmaterial knowledge description

◆ getDefaultOutOfBoundsPolicyAsUpperCaseString()

MFRONT_VISIBILITY_EXPORT std::string mfront::getDefaultOutOfBoundsPolicyAsUpperCaseString ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::defaultOutOfBoundsPolicy attribute if it is defined, NONE otherwise.

Parameters
[in]dmaterial knowledge description

◆ getDefaultStrainBasedBehaviourDSLDescription()

MFRONT_VISIBILITY_EXPORT BehaviourDSLDescription mfront::getDefaultStrainBasedBehaviourDSLDescription ( )
Returns
a default description for DSLs handling strain based behaviours.

◆ getDestinationPathInMadnexFile()

MFRONT_VISIBILITY_EXPORT std::string mfront::getDestinationPathInMadnexFile ( const OverridableImplementation & )

return the implementation path where the given implementation will be written

Parameters
[in]iimplementation

◆ getEffectiveCompatibilityMode()

MFRONT_VISIBILITY_EXPORT CompatibilityMode::Version mfront::getEffectiveCompatibilityMode ( const MaterialKnowledgeDescription & )

this function returns the value of the MaterialKnowledgeDescription::compatibilityMode attribute if it is defined or the maximum known compatibility mode.

Parameters
[in]dmaterial knowledge description

◆ getEvaluatedExternalStateVariables()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer mfront::getEvaluatedExternalStateVariables ( const BehaviourVariableDescription & ,
const BehaviourVariableDescription::Hypothesis &  )

return the list of external state variables which shall be evaluated by the behaviour using the behaviour variable

Parameters
[in]dbehaviour variable description
[in]hmodelling hypothesis

◆ getEvaluatedMaterialProperties()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer mfront::getEvaluatedMaterialProperties ( const BehaviourVariableDescription & ,
const BehaviourVariableDescription::Hypothesis &  )

return the list of material properties which shall be evaluated by the behaviour using the behaviour variable

Parameters
[in]dbehaviour variable description
[in]hmodelling hypothesis

◆ getGreatestCompatibilityMode()

MFRONT_VISIBILITY_EXPORT CompatibilityMode::Version mfront::getGreatestCompatibilityMode ( )
noexcept
Returns
the greatest known compatibility mode

◆ getImplementationsPaths() [1/3]

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getImplementationsPaths ( const PathSpecifier & )
Returns
the paths to MFront implementations given a path specifier.
Parameters
[in]ppath specifier
Note
Standard MFront files only contains one implementations. Madnex files may contain several implementations.

◆ getImplementationsPaths() [2/3]

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getImplementationsPaths ( const std::string & ,
const std::string & ,
const std::string & ,
const std::string & ,
const std::string &  )
Returns
the paths to MFront implementations matching the given pattern in the given file.
Parameters
[in]ffile name
[in]material_identifieridentifier of the material (may be empty).
[in]behaviour_identifieridentifier for material properties.
[in]behaviour_identifieridentifier for behaviours.
[in]model_identifieridentifier for behaviours.
Note
Standard MFront files only contains one implementations. Madnex files may contain several implementations.

◆ getImplementationsPaths() [3/3]

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getImplementationsPaths ( const std::vector< PathSpecifier > & )
Returns
the paths to MFront implementations given a set of path specifiers.
Parameters
[in]pathspath specifiers
Note
Standard MFront files only contains one implementations. Madnex files may contain several implementations.

◆ getIncrementSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::getIncrementSymbol ( std::map< std::string, std::string > & ,
const VariableDescription &  )

retrieve the symbols associated with the increment of the given variable.

Parameters
[out]symbolsmap between symbols and replacement strings.
[in]vvariable description

◆ getIncrementSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::getIncrementSymbols ( std::map< std::string, std::string > & ,
const VariableDescriptionContainer &  )

retrieve all symbols associated with the increment of the given variables.

Parameters
[out]symbolsmap between symbols and replacement strings.
[in]cvariable description container

◆ getInstallPath()

MFRONT_VISIBILITY_EXPORT std::string mfront::getInstallPath ( )
Returns
the installation path, if defined
Note
if no installation path has been specified, one try to retrieve this path from the MFRONT_INSTALL_PREFIX environment variable.

◆ getKeys()

template<typename Value>
std::vector< std::string > mfront::getKeys ( const std::map< std::string, Value > & m)
Returns
the keys of a map
Parameters
[in]mmap

◆ getLogStream()

MFRONTLOGSTREAM_VISIBILITY_EXPORT std::ostream & mfront::getLogStream ( )
Returns
the current logging stream

◆ getMaterialLawLibraryNameBase()

MFRONT_VISIBILITY_EXPORT std::string mfront::getMaterialLawLibraryNameBase ( const MaterialPropertyDescription & )
Returns
the base name (without interface specification) of the library to be generated by MFront.
Parameters
[in]mpdmaterial property description

◆ getMaterialPropertyParametersClassName()

MFRONT_VISIBILITY_EXPORT std::string mfront::getMaterialPropertyParametersClassName ( const std::string & )
Parameters
[in]nname of the material property

◆ getMaterialPropertyParametersHandlerClassName()

MFRONT_VISIBILITY_EXPORT std::string mfront::getMaterialPropertyParametersHandlerClassName ( const std::string & )
Parameters
[in]nname of the material property

◆ getOffset()

MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::getOffset ( const VariableDescriptionContainer & ,
const std::string &  )
Returns
the offset of the given variable.
Parameters
[in]cvariable description container
[in]nname of the variable

◆ getParametersFileName() [1/4]

MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName ( const BehaviourDescription & )
Returns
the name of a text file allowing the change the name of the parameters of the given behaviour
Parameters
[in]bdbehaviour description

◆ getParametersFileName() [2/4]

MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName ( const BehaviourDescription & ,
const BehaviourDescription::Hypothesis  )
Returns
the name of a text file allowing the change the name of the parameters of the given behaviour for the given hypothesis
Parameters
[in]bdbehaviour description
[in]hmodelling hypothesis
Note
h must not be the undefined hypothesis.

◆ getParametersFileName() [3/4]

MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName ( const MaterialPropertyDescription & )
Returns
the name of a text file allowing the change the name of the parameters of the given material property
Parameters
[in]mpdmaterial property description

◆ getParametersFileName() [4/4]

MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName ( const ModelDescription & )
Returns
the name of the file which can be used to override the default values of the parameters of a model.
Parameters
[in]mdmodel description

◆ getPedanticMode()

MFRONT_VISIBILITY_EXPORT bool mfront::getPedanticMode ( )
Returns
true if the pedantic mode is enabled

◆ getScalarTypeAliases()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getScalarTypeAliases ( )
Returns
a list of standard scalar types defined in the tfel::config::Type type

◆ getSharedExternalStateVariables()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer mfront::getSharedExternalStateVariables ( const BehaviourVariableDescription & ,
const BehaviourVariableDescription::Hypothesis &  )

return the list of external state variables which are shared with the behaviour using the behaviour variable

Parameters
[in]dbehaviour variable description
[in]hmodelling hypothesis

◆ getSharedMaterialProperties()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer mfront::getSharedMaterialProperties ( const BehaviourVariableDescription & ,
const BehaviourVariableDescription::Hypothesis &  )

return the list of material properties which are shared with the behaviour using the behaviour variable

Parameters
[in]dbehaviour variable description
[in]hmodelling hypothesis

◆ getST2toST2TypeAliases()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getST2toST2TypeAliases ( )
Returns
a list of standard st2tost2 types defined in the tfel::config::Type type

◆ getStensorTypeAliases()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getStensorTypeAliases ( )
Returns
a list of standard symmetric tensor types defined in the tfel::config::Type type

◆ getSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::getSymbol ( std::map< std::string, std::string > & ,
const VariableDescription &  )

retrieve the symbol of the given variable description.

Parameters
[out]symbolsmap between symbols and replacement strings.
[in]vvariable description

◆ getSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::getSymbols ( std::map< std::string, std::string > & ,
const VariableDescriptionContainer &  )

retrieve all symbols in the given variables.

Parameters
[out]symbolsmap between symbols and replacement strings.
[in]cvariable description container

◆ getTensorTypeAliases()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getTensorTypeAliases ( )
Returns
a list of standard tensor types defined in the tfel::config::Type type

◆ getTimeDerivativeSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::getTimeDerivativeSymbol ( std::map< std::string, std::string > & ,
const VariableDescription &  )

retrieve the symbols associated with the time derivative of the given variable.

Parameters
[out]symbolsmap between symbols and replacement strings.
[in]vvariable description

◆ getTimeDerivativeSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::getTimeDerivativeSymbols ( std::map< std::string, std::string > & ,
const VariableDescriptionContainer &  )

retrieve all symbols associated with the time derivative of the given variables.

Parameters
[out]symbolsmap between symbols and replacement strings.
[in]cvariable description container

◆ getTinyVectorTypeAliases()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getTinyVectorTypeAliases ( )
Returns
a list of standard tiny vector types defined in the tfel::config::Type type

◆ getTypeAliases()

MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getTypeAliases ( )
Returns
a list of standard types defined in the tfel::config::Type type
Note
this method internally calls the getStandardScalarTFELTypedefs function.

◆ getTypeSize() [1/2]

MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::getTypeSize ( const VariableDescription & )
Returns
the size of the variable
Parameters
[in]vvariable description

◆ getTypeSize() [2/2]

MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::getTypeSize ( const VariableDescriptionContainer & )
Returns
the sum of the sizes of all the variables
Parameters
[in]cvariable description container

◆ getUnicodeOutputOption()

MFRONTLOGSTREAM_VISIBILITY_EXPORT bool mfront::getUnicodeOutputOption ( )
Returns
if MFront shall use unicode characters on output.

◆ getUnSharedNorEvaluatedExternalStateVariables()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer mfront::getUnSharedNorEvaluatedExternalStateVariables ( const BehaviourVariableDescription & ,
const BehaviourVariableDescription::Hypothesis &  )

return the list of external state variables which are not shared nor evaluated by the behaviour using the behaviour variable

Parameters
[in]dbehaviour variable description
[in]hmodelling hypothesis

◆ getUnSharedNorEvaluatedMaterialProperties()

MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer mfront::getUnSharedNorEvaluatedMaterialProperties ( const BehaviourVariableDescription & ,
const BehaviourVariableDescription::Hypothesis &  )

return the list of material properties which are not shared nor evaluated by the behaviour using the behaviour variable

Parameters
[in]dbehaviour variable description
[in]hmodelling hypothesis

◆ getVerboseMode()

MFRONTLOGSTREAM_VISIBILITY_EXPORT VerboseLevel & mfront::getVerboseMode ( )
Returns
the current verbose level

◆ getWarningErrorMode()

MFRONT_VISIBILITY_EXPORT bool mfront::getWarningErrorMode ( )
noexcept
Returns
true if the warning error mode is enabled

◆ getWarningMode()

MFRONT_VISIBILITY_EXPORT bool mfront::getWarningMode ( )
noexcept
Returns
true if the warning mode is enabled

◆ hasAttribute()

template<typename T>
bool mfront::hasAttribute ( const CodeBlock & cb,
const std::string & n )

check if an attribute of the given type is defined

Exceptions
ifthe type of the attribute does not match
Template Parameters
Ttype of the attribute
Parameters
[in]cbcode block
[in]nname of the attribute

◆ hasBounds() [1/3]

MFRONT_VISIBILITY_EXPORT bool mfront::hasBounds ( const VariableDescription & )
Returns
true if the variable has bounds.
Parameters
[in]vvariable description
Note
this is a simple wrapper around the hasBounds method

◆ hasBounds() [2/3]

MFRONT_VISIBILITY_EXPORT bool mfront::hasBounds ( const VariableDescription & ,
const unsigned short  )
Returns
true if the variable has bounds.
Parameters
[in]cvariable description container
[in]iindex
Note
this is a simple wrapper around the hasBounds method

◆ hasBounds() [3/3]

MFRONT_VISIBILITY_EXPORT bool mfront::hasBounds ( const VariableDescriptionContainer & )
Returns
true if one of the variables has bounds.
Parameters
[in]cvariable description container

◆ hasPhysicalBounds() [1/3]

MFRONT_VISIBILITY_EXPORT bool mfront::hasPhysicalBounds ( const VariableDescription & )
Returns
true if the variable has physical bounds.
Parameters
[in]vvariable description
Note
this is a simple wrapper around the hasPhysicalBounds method.

◆ hasPhysicalBounds() [2/3]

MFRONT_VISIBILITY_EXPORT bool mfront::hasPhysicalBounds ( const VariableDescription & ,
const unsigned short  )
Returns
true if the variable has physical bounds.
Parameters
[in]cvariable description container
[in]iindex
Note
this is a simple wrapper around the hasPhysicalBounds method.

◆ hasPhysicalBounds() [3/3]

MFRONT_VISIBILITY_EXPORT bool mfront::hasPhysicalBounds ( const VariableDescriptionContainer & )
Returns
true if one of the variables has physical bounds.
Parameters
[in]cvariable description container

◆ ignoreSafeOptionForWarnings()

MFRONT_VISIBILITY_EXPORT bool mfront::ignoreSafeOptionForWarnings ( )
noexcept
Returns
if the safe option for keywords or code blocks shall be ignored

◆ initDSLs()

MFRONT_VISIBILITY_EXPORT void mfront::initDSLs ( )

declare dls's delivered with mfront

Users can use the MFRONT_ADDITIONAL_LIBRARIES environment to load their own libraries. See the DSLProxy class for details.

◆ insert_if() [1/4]

MFRONT_VISIBILITY_EXPORT void mfront::insert_if ( std::vector< std::string > & ,
const char * const  )

conditionnally insert a string into a vector of string : an element is inserted if not already present or has zero size or is nulltpr.

Parameters
[out]d: destination
[in]v: value

◆ insert_if() [2/4]

template<typename Container>
void mfront::insert_if ( std::vector< std::string > & d,
const Container & s )

call insert_if on every element of a container.

Precondition
Container::value_type must be convertible to a string
Template Parameters
Container: type of source
Parameters
[out]d: destination
[in]s: source

◆ insert_if() [3/4]

template<typename Value>
void mfront::insert_if ( std::vector< std::string > & d,
const std::initializer_list< Value > & s )

call insert_if on every element of an initializer_list.

Precondition
Value must be convertible to a string
Template Parameters
Value: type of the objects of the initializer list
Parameters
[out]d: destination
[in]s: source

◆ insert_if() [4/4]

MFRONT_VISIBILITY_EXPORT void mfront::insert_if ( std::vector< std::string > & ,
const std::string &  )

conditionnally insert a string into a vector of string : an element is inserted if not already present or empty.

Parameters
[out]d: destination
[in]v: value

◆ isSafe()

MFRONT_VISIBILITY_EXPORT bool mfront::isSafe ( const CodeBlock & )
noexcept
Returns
if the code block has been declare safe, i.e. all warnings shall be ignored.
Note
if the ignoreSafe returns true, this method always returns false.
if the safe attribute is not defined, this method returns false.

◆ isValidBehaviourName()

MFRONT_VISIBILITY_EXPORT bool mfront::isValidBehaviourName ( const std::string & )
Returns
if the given name is valid
Parameters
[in]nbehaviour name

◆ isValidLibraryName()

MFRONT_VISIBILITY_EXPORT bool mfront::isValidLibraryName ( std::string_view )
Returns
if the given name is valid
Parameters
[in]nlibrary name

◆ isValidMaterialName()

MFRONT_VISIBILITY_EXPORT bool mfront::isValidMaterialName ( std::string_view )
Returns
if the given name is valid
Parameters
[in]nmaterial name

◆ isValidMaterialPropertyName()

MFRONT_VISIBILITY_EXPORT bool mfront::isValidMaterialPropertyName ( const std::string & )
Returns
if the given name is valid
Parameters
[in]nbehaviour name

◆ isValidModelName()

MFRONT_VISIBILITY_EXPORT bool mfront::isValidModelName ( const std::string & )
Returns
if the given name is valid
Parameters
[in]nmodel name

◆ isValidUserDefinedVariableName()

MFRONT_VISIBILITY_EXPORT bool mfront::isValidUserDefinedVariableName ( std::string_view )
Returns
if the given name, provided by the user, is valid.
Parameters
[in]nvariable name

The variable name must be a valid C++ variable and shall not start with mfront_.

◆ makeTangentOperatorBlocksList()

MFRONT_VISIBILITY_EXPORT std::string mfront::makeTangentOperatorBlocksList ( const BehaviourDescription & ,
const std::vector< std::pair< VariableDescription, VariableDescription > > &  )
Returns
a list of the consistent tangent operator blocks, separated by a comma.
Parameters
[in]bdbehaviour description
[in]tblockslist of tangent operator blocks

◆ mergeExecutableDescription()

MFRONT_VISIBILITY_EXPORT void mfront::mergeExecutableDescription ( ExecutableDescription & ,
const ExecutableDescription &  )

merge two executable description

Parameters
[out]d: destination
[in]s: source

◆ mergeLibraryDescription()

MFRONT_VISIBILITY_EXPORT void mfront::mergeLibraryDescription ( LibraryDescription & ,
const LibraryDescription &  )

merge two library description

Parameters
[out]d: destination
[in]s: source

◆ mergeTargetsDescription()

MFRONT_VISIBILITY_EXPORT void mfront::mergeTargetsDescription ( TargetsDescription & ,
const TargetsDescription & ,
const bool  )

merge two targets description

Parameters
[out]d: destination
[in]s: source
[in]b: override specific targets

◆ operator*() [1/2]

MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::operator* ( const SupportedTypes::TypeSize & ,
const unsigned int  )

multiply a type size by a scalar

Parameters
[in]afactor
[in]stype size

◆ operator*() [2/2]

MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::operator* ( const unsigned int ,
const SupportedTypes::TypeSize &  )

multiply a type size by a scalar

Parameters
[in]afactor
[in]stype size

◆ operator<<() [1/4]

MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< ( std::ostream & ,
const ExecutableDescription &  )

write a executable description to a stream

Parameters
[out]os: output stream
[in]t: executable description

◆ operator<<() [2/4]

MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< ( std::ostream & ,
const LibraryDescription &  )

write a library description to a stream

Parameters
[out]os: output stream
[in]t: library description

◆ operator<<() [3/4]

MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< ( std::ostream & ,
const SupportedTypes::TypeSize &  )

output operator

Parameters
[out]osoutput stream
[in]stype size

◆ operator<<() [4/4]

MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< ( std::ostream & ,
const TargetsDescription &  )

write a target description to a stream

Parameters
[out]os: output stream
[in]t: target description

◆ parseConfigurationFile()

MFRONT_VISIBILITY_EXPORT void mfront::parseConfigurationFile ( const std::string & )

parse a configuration file

Parameters
[in]ffile name

◆ parsePathSpecifierArguments()

MFRONT_VISIBILITY_EXPORT bool mfront::parsePathSpecifierArguments ( std::vector< PathSpecifier > & ,
PathSpecifier & ,
const std::string &  )

treat command line arguments associated with the specification of a path specifier.

Returns
true if the argument was treated
Parameters
[in]pathsregistred path specifiers
[in]scurrent path specifier
[in]acurrent command line argument

◆ performPedanticChecks()

MFRONT_VISIBILITY_EXPORT void mfront::performPedanticChecks ( const FileDescription & )

various checks on file description

Parameters
[in]fdfile description

◆ printLinePragma() [1/2]

MFRONT_VISIBILITY_EXPORT std::string mfront::printLinePragma ( const std::size_t ,
std::string_view  )

print a #line pragma indicating a line number and a file name

Parameters
[in]lnline number
[in]ffile name

◆ printLinePragma() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::printLinePragma ( std::ostream & ,
const std::size_t ,
std::string_view  )

print a #line pragma indicating a line number and a file name

Parameters
[os]os: output stream
[in]lnline number
[in]ffile name

◆ read() [1/9]

template<typename T>
void mfront::read ( T & r,
tfel::utilities::CxxTokenizer::const_iterator & p,
const tfel::utilities::CxxTokenizer::const_iterator pe )

read an object of type T from a stream created by the CxxTokenizer class

Template Parameters
T: type to be read
v: value read
Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the object read. If this function succeed, p points past the last token treated. If this function fails, p shall be unchanged.

◆ read() [2/9]

read a data map from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the DataMap read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ read() [3/9]

template<>
MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::read ( tfel::utilities::CxxTokenizer::const_iterator & ,
const tfel::utilities::CxxTokenizer::const_iterator  )

read a vector of strings from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the vector read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ read() [4/9]

template<>
MFRONT_VISIBILITY_EXPORT std::string mfront::read ( tfel::utilities::CxxTokenizer::const_iterator & ,
const tfel::utilities::CxxTokenizer::const_iterator  )

read a string from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the string read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ read() [5/9]

template<>
MFRONT_VISIBILITY_EXPORT double mfront::read ( tfel::utilities::CxxTokenizer::const_iterator & ,
const tfel::utilities::CxxTokenizer::const_iterator  )

read a string from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the string read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ read() [6/9]

read an object of type T from a stream created by the CxxTokenizer class

Template Parameters
T: type to be read
Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the object read. If this function succeed, p points past the last token treated. If this function fails, p shall be unchanged.

◆ read() [7/9]

read a ExecutableDescription from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the executable description read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ read() [8/9]

read a LibraryDescription from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the library description read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ read() [9/9]

read a TargetDescription from a stream created by the CxxTokenizer class

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
the target description read. If this function succeed, p points past the last token treated. If this function fails, p is unchanged.

◆ readConfigurationFile()

MFRONT_VISIBILITY_EXPORT tfel::utilities::DataMap mfront::readConfigurationFile ( const std::string & )
nodiscard

read a configuration file and turn it into a DataMap

Parameters
[in]ffile name

◆ readSafeOptionTypeIfPresent()

MFRONT_VISIBILITY_EXPORT bool mfront::readSafeOptionTypeIfPresent ( tfel::utilities::CxxTokenizer::const_iterator & ,
const tfel::utilities::CxxTokenizer::const_iterator  )
Returns
true if the next tokens are '<safe>', false otherwise
Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream

◆ readVariableBounds()

MFRONT_VISIBILITY_EXPORT std::pair< std::string, VariableBoundsDescription > mfront::readVariableBounds ( tfel::utilities::CxxTokenizer::const_iterator & p,
const tfel::utilities::CxxTokenizer::const_iterator pe )

read the bounds associated to a variable

Parameters
[in,out]p: current position in the stream
[in]pe: end of the stream
Returns
a tuple giving the variable name and the bounds

◆ reportWarning() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::reportWarning ( const std::vector< std::string > & )

report a list of warnings if warning mode is enabled

Parameters
[in]warningswarning messages
Note
if the warning error mode is enabled, reporting warnings throws an exception. Otherwise, the warnings are displayed on the standard log stream.

◆ reportWarning() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::reportWarning ( std::string_view )

report a warning if warning mode is enabled

Parameters
[in]msgwarning message
Note
if the warning error mode is enabled, reporting a warning throws an exception. Otherwise, the warning is displayed on the standard log stream

◆ setDebugMode()

MFRONT_VISIBILITY_EXPORT void mfront::setDebugMode ( const bool )

enable or diable the debug mode

Parameters
[in]b: if true, set the debug mode

◆ setDefaultCompatibilityMode() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::setDefaultCompatibilityMode ( const CompatibilityMode::Version & )

set the default compatibility mode, stored in a global static variable.

Parameters
[in]vversion
Exceptions
ifthe version is strictly lower than 5.2.0

◆ setDefaultCompatibilityMode() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::setDefaultCompatibilityMode ( std::string_view )

set the default compatibility mode, stored in a global static variable.

Parameters
[in]vversion
Exceptions
ifthe version is strictly lower than 5.2.0

◆ setDefaultOutOfBoundsPolicy()

MFRONT_VISIBILITY_EXPORT void mfront::setDefaultOutOfBoundsPolicy ( MaterialKnowledgeDescription & ,
const std::string &  )

set the default out of bounds policy

Parameters
[out]dmaterial knowledge description
[in]policyout of bounds policy

◆ setDisableRuntimeChecks()

MFRONT_VISIBILITY_EXPORT void mfront::setDisableRuntimeChecks ( MaterialKnowledgeDescription & ,
const bool  )

set if runtime checks shall be disabled

Parameters
[out]dmaterial knowledge description
[in]bboolean

◆ setElasticSymmetryType()

MFRONT_VISIBILITY_EXPORT void mfront::setElasticSymmetryType ( BehaviourDescription & ,
const BehaviourSymmetryType  )

set the elastic symmetry of a material if not already defined. If already defined, check that the symmetry is the same as the one given in argument

Parameters
[in,out]bdbehaviour description
[in]ssymmetry type

◆ setInstallPath()

MFRONT_VISIBILITY_EXPORT void mfront::setInstallPath ( const std::string & )

set the installation path

Parameters
[in]pinstallation path
Note
an exception is thrown if the installation path has already been set.

◆ setLogStream() [1/2]

MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setLogStream ( const std::string & f)

set the current logging stream

Parameters
f: file name

◆ setLogStream() [2/2]

MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setLogStream ( std::ostream & )

set the current logging stream

Parameters
os: new logging stream
Warning
the stream is not handled by this function. The user has to take care of it

◆ setPedanticMode()

MFRONT_VISIBILITY_EXPORT void mfront::setPedanticMode ( const bool )

enable or diable the pedantic mode

Parameters
[in]b: if true, set the pedantic mode

◆ setUnicodeOutputOption()

MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setUnicodeOutputOption ( const bool )

set if MFront shall use unicode characters on output. In particular:

  • if true, the variable names will be displayed using their symbolic name.
  • if false, the variable names will be displayed using their mangled name.

◆ setVerboseMode() [1/2]

MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setVerboseMode ( const std::string & )

change the verbose level

Parameters
[in]lthe new verbose level

◆ setVerboseMode() [2/2]

MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setVerboseMode ( const VerboseLevel = VERBOSE_LEVEL0)

change the verbose level

Parameters
thenew verbose level

◆ setWarningErrorMode()

MFRONT_VISIBILITY_EXPORT void mfront::setWarningErrorMode ( const bool )
noexcept

enable or diable the warning error mode

Parameters
[in]b: if true, set the warning mode mode

◆ setWarningMode()

MFRONT_VISIBILITY_EXPORT void mfront::setWarningMode ( const bool )
noexcept

enable or diable the warning mode

Parameters
[in]b: if true, set the warning mode

◆ supportAllModellingHypothes()

MFRONT_VISIBILITY_EXPORT bool mfront::supportAllModellingHypothes ( const BehaviourDSLDescription & )

a small function checking of all the modelling hypotheses can be supported.

Parameters
[in]dbehaviour DSL description
Returns
true if all modelling hypotheses can be supported

◆ to_string() [1/2]

MFRONT_VISIBILITY_EXPORT std::string mfront::to_string ( const CompatibilityMode::Version & )
Returns
a string representation of the given version
Parameters
[in]vversion

◆ to_string() [2/2]

MFRONT_VISIBILITY_EXPORT std::string mfront::to_string ( const SupportedTypes::TypeSize & )

convert to string

Parameters
[in]stype size

◆ useQuantities()

MFRONT_VISIBILITY_EXPORT bool mfront::useQuantities ( const MaterialPropertyDescription & )
Returns
if the material property shall use quantities
Parameters
[in]mpdmaterial property description

◆ write() [1/3]

MFRONT_VISIBILITY_EXPORT void mfront::write ( const OverridableImplementation & ,
const std::string &  )

write the implementation to the file

Parameters
[in]iimplementation
[in]ffile name

The extension of the file is used to determine the driver used. Currently, the only driver available is associated with madnex files.

◆ write() [2/3]

MFRONT_VISIBILITY_EXPORT void mfront::write ( const OverridableImplementation & ,
const std::string & ,
const std::string &  )

write the implementation to the file

Parameters
[in]iimplementation
[in]tpath to a template file
[in]ffile name

The extension of the file is used to determine the driver used. Currently, the only driver available is associated with madnex files.

◆ write() [3/3]

MFRONT_VISIBILITY_EXPORT void mfront::write ( std::ostream & ,
const std::vector< std::string > & ,
const std::string &  )

write a vector of string to the output stream

Parameters
[in]os: output stream
[in]v: vector of string
[in]id: identifier

◆ writeAssignMaterialPropertyParameters()

MFRONT_VISIBILITY_EXPORT void mfront::writeAssignMaterialPropertyParameters ( std::ostream & ,
const MaterialPropertyDescription & ,
const std::string & ,
const std::string & ,
const std::string &  )
Parameters
[out]osouptut stream
[in]mpdmaterial property description
[in]nname of the material property
[in]ttype of the parameters
[in]inamespace associated with the interface

◆ writeBeginningOfMaterialPropertyBody()

MFRONT_VISIBILITY_EXPORT void mfront::writeBeginningOfMaterialPropertyBody ( std::ostream & ,
const MaterialPropertyDescription & ,
const FileDescription & ,
const std::string_view ,
const bool areQuantitiesSupported )

an helper function which writes useful declarations at the beginning of the function body.

This function:

  • imports the namespace std (using namespace std)
  • declares TFEL scalar type aliases (see the writeScalarStandardTypedefs function).
  • imports material laws used by the material property (see the writeMaterialLaws function).
  • declares the static variables declared by the material property (see the writeStaticVariables function).
Parameters
[in,out]osoutput stream
[in]mpdmaterial property description
[in]fdfile description
[in]numeric_typenumeric type used by the interface
[in]areQuantitiesSupportedallow quantities

◆ writeBoundsChecks() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::writeBoundsChecks ( std::ostream & ,
const VariableDescription & ,
const std::string_view ,
const std::string_view ,
const std::string_view ,
const bool ,
const bool  )
Parameters
[out]osoutput stream
[in]vvariable description
[in]nname of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array.
[in]space_dimensionstring containing the space dimension
[in]policyname of the variable holding the policy
[in]addThisadd "this->" in front of the variables
[in]checkEndOfTimeStepValuealso check the value at the end of the time step given by the value of the variable plus its increment.

◆ writeBoundsChecks() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::writeBoundsChecks ( std::ostream & ,
const VariableDescription & ,
const VariableBoundsDescription & ,
const std::string_view ,
const std::string_view ,
const std::string_view ,
const bool ,
const bool  )
Parameters
[out]osoutput stream
[in]vvariable description
[in]boundsbounds to be checked
[in]nname of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array.
[in]space_dimensionstring containing the space dimension
[in]policyname of the variable holding the policy
[in]addThisadd "this->" in front of the variables
[in]checkEndOfTimeStepValuealso check the value at the end of the time step given by the value of the variable plus its increment.

◆ writeBoundsSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeBoundsSymbol ( std::ostream & ,
const std::string_view ,
const std::string_view ,
const std::string_view ,
const mfront::VariableBoundsDescription &  )

write the bounds

Parameters
[out]osoutput stream
[in]nname of the law
[in]vnname of the variable
[in]bttype of bounds (physical or not)
[in]bbound description

◆ writeBoundsSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writeBoundsSymbols ( std::ostream & ,
const std::string_view ,
const VariableDescriptionContainer &  )

write the bounds associated with the given variables

Parameters
[out]osoutput stream
[in]nname of the symbol
[in]vcvariables

◆ writeBuildIdentifierSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeBuildIdentifierSymbol ( std::ostream & ,
const std::string_view ,
const MaterialKnowledgeDescription &  )

write a symbol associated with the build identifier.

Parameters
[out]osoutput stream
[in]nentry point name
[in]ddescription

◆ writeCollocationPoints()

MFRONT_VISIBILITY_EXPORT std::string mfront::writeCollocationPoints ( const SingleVariableInterpolatedData & ,
const SingleVariableInterpolatedData::WriteCollocationPointsArguments &  )

write the collocations points computed from abscissaes and the ordinates of interpolation data

Parameters
[in]idatainterpolated data
[in]argsadditional information

◆ writeCompatibilityModeSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeCompatibilityModeSymbol ( std::ostream & ,
const std::string_view ,
const MaterialKnowledgeDescription &  )

write a symbol associated with the compatibility mode.

Parameters
[out]osoutput stream
[in]nentry point name
[in]ddescription

◆ writeEntryPointSymbol() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::writeEntryPointSymbol ( std::ostream & ,
const std::string_view  )

write a specific symbol stating that a given name entry point (C-like function for example) has been created using MFront.

Parameters
[out]osoutput stream
[in]nentry point name

◆ writeEntryPointSymbol() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::writeEntryPointSymbol ( std::ostream & ,
const std::string_view ,
const std::string_view  )

write a specific symbol stating that a given name entry point (C-like function for example) has been created using MFront.

Parameters
[out]osoutput stream
[out]nentry point alias
[out]n2entry point name

◆ writeExportDirectives()

MFRONT_VISIBILITY_EXPORT void mfront::writeExportDirectives ( std::ostream & ,
const bool = true )

define the MFRONT_SHAREDOBJ macro which contains visibility attributes.

Parameters
[out]osoutput file
[in]bboolean stating if the MFRONT_COMPILING macro shall be taken into account.

◆ writeF77FUNCMacros()

MFRONT_VISIBILITY_EXPORT void mfront::writeF77FUNCMacros ( std::ostream & )

define the F77_FUNC and F77_FUNC_ macros. We support the GNU (gfortran) and the intel compilers. By default, the GNU fortran naming scheme is used. This can be changed when compiling mfront generated sources by defining the INTEL_FORTRAN_COMPILER flag.

Parameters
[out]f: output file

https://en.wikipedia.org/wiki/Name_mangling :

Many compilers, including SGI's IRIX compilers, GNU Fortran, and Intel's Fortran compiler (except on Microsoft Windows), convert all identifiers to lower case plus an underscore ("foo_" and "foo_bar_"). On Microsoft Windows, the Intel Fortran compiler defaults to uppercase without an underscore.[2]

[2] User and Reference Guide for the Intel Fortran Compiler 15.0, Intel Corporation (2014), Summary of Mixed-Language Issues. Accessed 17 Nov. 2014.

◆ writeFileDescriptionSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writeFileDescriptionSymbols ( std::ostream & ,
const std::string_view ,
const FileDescription &  )

write symbols associated with the file description.

Parameters
[out]osoutput stream
[in]nentry point name
[in]fdfile description

◆ writeIfDifferentFromExistingFileContent()

MFRONT_VISIBILITY_EXPORT bool mfront::writeIfDifferentFromExistingFileContent ( const std::string & f,
const std::string & contents )

write the contents of a generated file only if the file does not exist or if its contents differ from the given contents.

Several mfront processes may generate the files associated with an external mfront file in the same directory (for instance when several behaviours use the same external mfront file and are compiled in parallel). Rewriting such a file which may be concurrently opened by another process or by the compiler can lead to spurious failures, in particular on Windows, and triggers useless rebuilds. This function avoids both by only writing the file when its contents actually change.

Parameters
[in]ffile name
[in]contentscontents of the file
Returns
true if the file has been written, false if it was up-to-date.

◆ writeInterfaceSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeInterfaceSymbol ( std::ostream & ,
const std::string_view ,
const std::string_view  )

write a specific symbol for the interface of an entry point.

Parameters
[out]osoutput stream
[out]nentry point alias
[out]ientry point name

◆ writeLawSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeLawSymbol ( std::ostream & ,
const std::string_view ,
const std::string_view  )

write a symbol stating that a given entry point is associated to a material law.

Parameters
[out]osoutput stream
[out]nentry point name
[in]llaw name name

◆ writeLinearInterpolationValues()

MFRONT_VISIBILITY_EXPORT std::string mfront::writeLinearInterpolationValues ( const SingleVariableInterpolatedData & ,
const SingleVariableInterpolatedData::WriteLinearInterpolationValuesArguments &  )

write the declarations of two constexpr arrays containing the abscissaes and the ordinates of interpolation data

Parameters
[in]idatainterpolated data
[in]argsadditional information

◆ writeMaterialKnowledgeTypeSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeMaterialKnowledgeTypeSymbol ( std::ostream & ,
const std::string_view ,
const MaterialKnowledgeType &  )

write the symbol giving the material knowledge type.

Parameters
[out]osoutput stream
[in]nentry point
[in]tmaterial knowledge type

◆ writeMaterialPropertyParametersHandler() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::writeMaterialPropertyParametersHandler ( std::ostream & ,
const MaterialPropertyDescription & ,
const std::string & ,
const std::string & ,
const std::string &  )
Parameters
[out]osouptut stream
[in]mpdmaterial property description
[in]nname of the material property
[in]ttype of the parameters
[in]inamspace associated with the interface

◆ writeMaterialPropertyParametersHandler() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::writeMaterialPropertyParametersHandler ( std::ostream & ,
const MaterialPropertyDescription & ,
const WriteMaterialPropertyParametersHandlerArguments &  )

write the implementation of the class able to manage the parameters of a material property for a given interface.

The class has a hidden visibility (TFEL_VISIBILITY_LOCAL): its unique instance is shared by the sources of a library, but not by different libraries loaded in the same process.

Parameters
[out]osouptut stream
[in]mpdmaterial property description
[in]argsadditional arguments

◆ writeMaterialSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeMaterialSymbol ( std::ostream & ,
const std::string_view ,
const std::string_view  )

write a symbol stating that a given entry point is associated to a material.

Parameters
[out]osoutput stream
[out]nentry point name
[in]mmaterial name name

◆ writeParametersDeclarationSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writeParametersDeclarationSymbols ( std::ostream & ,
const std::string_view ,
const VariableDescriptionContainer &  )

export parameters declarations

Parameters
[out]osoutput stream
[out]nname of the entry point
[out]parameterslist of parameters

◆ writeParametersDefaultValuesSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writeParametersDefaultValuesSymbols ( std::ostream & ,
const std::string_view ,
const VariableDescriptionContainer &  )

export the default values of a set of parameters

Parameters
[out]osoutput stream
[out]nname of the entry point
[out]parameterslist of parameters

◆ writeParametersSetterFunctionDeclaration()

MFRONT_VISIBILITY_EXPORT void mfront::writeParametersSetterFunctionDeclaration ( std::ostream & ,
const MaterialPropertyDescription & ,
const WriteMaterialPropertyParametersSetterFunctionArguments &  )

write the declaration of the function allowing the set the values of the parameters of a material property

Parameters
[out]osouptut stream
[in]mpdmaterial property description
[in]argsadditional arguments

◆ writeParametersSetterFunctionImplementation()

MFRONT_VISIBILITY_EXPORT void mfront::writeParametersSetterFunctionImplementation ( std::ostream & ,
const MaterialPropertyDescription & ,
const WriteMaterialPropertyParametersSetterFunctionArguments &  )

write the implementation of the function allowing the set the values of the parameters of a material property

Parameters
[out]osouptut stream
[in]mpdmaterial property description
[in]argsadditional arguments

◆ writeParametersSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writeParametersSymbols ( std::ostream & ,
const std::string_view ,
const MaterialPropertyDescription &  )

export all symbols related to parameters

Parameters
[out]osoutput stream
[out]nname of the entry point
[out]parameterslist of parameters

This functions calls successively:

◆ writePhysicalBoundsChecks() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalBoundsChecks ( std::ostream & ,
const VariableDescription & ,
const std::string_view ,
const std::string_view ,
const bool ,
const bool  )
Parameters
[out]osoutput stream
[in]vvariable description
[in]nname of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array.
[in]space_dimensionstring containing the space dimension
[in]addThisadd "this->" in front of the variables
[in]checkEndOfTimeStepValuealso check the value at the end of the time step given by the value of the variable plus its increment.

◆ writePhysicalBoundsChecks() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalBoundsChecks ( std::ostream & ,
const VariableDescription & ,
const VariableBoundsDescription & ,
const std::string_view ,
const std::string_view ,
const bool ,
const bool  )
Parameters
[out]osoutput stream
[in]vvariable description
[in]boundsphysical bounds to be checked
[in]nname of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array.
[in]space_dimensionstring containing the space dimension
[in]addThisadd "this->" in front of the variables
[in]checkEndOfTimeStepValuealso check the value at the end of the time step given by the value of the variable plus its increment.

◆ writePhysicalBoundsSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalBoundsSymbols ( std::ostream & ,
const std::string_view ,
const VariableDescriptionContainer &  )

write the physical bounds associated with the given variables

Parameters
[out]osoutput stream
[in]nname of the symbol
[in]vcvariables

◆ writePhysicalConstantsAlias()

MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalConstantsAlias ( std::ostream & ,
const MaterialKnowledgeDescription & ,
std::string_view ,
const bool  )

declare an alias to the PhysicalConstant class

Parameters
[in]osoutput stream
[in]dmaterial knowledge description
[in]numeric_typenumeric type
[in]use_quantitiesboolean stating if quantities are used

◆ writeRealParametersInitializerConstructor()

MFRONT_VISIBILITY_EXPORT void mfront::writeRealParametersInitializerConstructor ( std::ostream & ,
const ModelDescription & ,
const std::string &  )

write the default constructor of the class holding the real parameters of a model.

If the parameters can be initialized from a file (see the allowsParametersInitializationFromFile function), this constructor reads the file returned by the getParametersFileName function, if it exists, to override the default values of the parameters. The generated code requires the <cerrno>, <string>, <vector>, <fstream>, <sstream>, <locale> and TFEL/Raise.hxx headers.

Parameters
[out]osoutput stream
[in]mdmodel description
[in]cnname of the class holding the real parameters

◆ writeScalarStandardTypedefs()

MFRONT_VISIBILITY_EXPORT void mfront::writeScalarStandardTypedefs ( std::ostream & ,
const MaterialPropertyDescription & ,
const std::string_view ,
const bool areQuantitiesSupported )

an helper function which writes the declaration of some TFEL standard scalar alias. The tfel::config::ScalarTypes class for details.

Parameters
[in,out]osoutput stream
[in]mpdmaterial property description
[in]numeric_typenumeric type used by the interface
[in]areQuantitiesSupportedallow quantities

◆ writeStandardPerformanceProfiling()

void mfront::writeStandardPerformanceProfiling ( std::ostream & ,
std::string_view ,
std::string_view ,
std::string_view = "" )

: an helper function to declare a timer

Parameters
[out]os: output stream
[in]c: class name
[in]v: code block name
[in]s: time temporary variable suffix

◆ writeStandardPerformanceProfilingBegin()

void mfront::writeStandardPerformanceProfilingBegin ( std::ostream & ,
std::string_view ,
std::string_view ,
std::string_view = "" )

: an helper function writing the beginning of a performance measurement

Parameters
[out]os: output stream
[in]c: class name
[in]v: code block name
[in]s: time temporary variable suffix

◆ writeStandardPerformanceProfilingEnd()

void mfront::writeStandardPerformanceProfilingEnd ( std::ostream & )

: an helper function writing the end of a performance measurement

Parameters
[out]os: output stream

◆ writeTFELVersionSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeTFELVersionSymbol ( std::ostream & ,
const std::string_view  )

write a specific symbol giving the version of MFront used to generate the given entry point.

Parameters
[out]osoutput stream
[in]nentry point name

◆ writeUnitSystemSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeUnitSystemSymbol ( std::ostream & ,
const std::string_view ,
const MaterialKnowledgeDescription &  )

write a specific symbol giving the version of MFront used to generate the given entry point.

Parameters
[out]osoutput stream
[in]nentry point name
[in]ddescription

◆ writeValidatorSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeValidatorSymbol ( std::ostream & ,
const std::string_view ,
const MaterialKnowledgeDescription &  )

write a symbol associated with the validator.

Parameters
[out]osoutput stream
[in]nentry point name
[in]ddescription

◆ writeVariablesBoundsSymbols()

MFRONT_VISIBILITY_EXPORT void mfront::writeVariablesBoundsSymbols ( std::ostream & ,
const std::string_view ,
const mfront::MaterialPropertyDescription &  )

write the name of the variable

Parameters
[out]osoutput stream
[in]nname of the law
[in]mpdmaterial property description

◆ writeVariablesNamesSymbol()

MFRONT_VISIBILITY_EXPORT void mfront::writeVariablesNamesSymbol ( std::ostream & ,
const std::string_view ,
const mfront::MaterialPropertyDescription &  )

write the name of the variable

Parameters
[out]osoutput stream
[in]nname of the law
[in]mpdmaterial property description