|
tfel
|
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 &) |
This namespace contains material used to build the MFront code generator.
a class storing mechanical behaviour attribute
types that can be stored in a behaviour attribute
a simple alias for backward compatibility
a class used to store a variable attribute
types that can be stored in a variable attribute
|
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. |
| MFRONT_VISIBILITY_EXPORT void mfront::addSymbol | ( | std::map< std::string, std::string > & | , |
| const std::string_view | , | ||
| const std::string_view | ) |
add the given symbol.
| [in,out] | symbols | mapping between a symbol and a replacement string |
| [in] | s | symbol |
| [in] | r | replacement string |
| 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.
| [in] | dsl | behaviour dsl |
| [in] | bd | behaviour description |
| [in] | d | options |
| [in] | allow_reference_temperature | boolean stating if the reference_temperature option is allowed. |
| MFRONT_VISIBILITY_EXPORT bool mfront::allowRuntimeModificationOfTheOutOfBoundsPolicy | ( | const MaterialKnowledgeDescription & | ) |
this function returns the value of the MaterialKnowledgeDescription::runtimeModificationOfTheOutOfBoundsPolicy attribute if it is defined, true otherwise.
| [in] | d | material knowledge description |
| MFRONT_VISIBILITY_EXPORT bool mfront::allowsParametersInitializationFromFile | ( | const MaterialKnowledgeDescription & | ) |
this function returns the value of the MaterialKnowledgeDescription::initializeParametersFromFile attribute if it is defined, true otherwise.
| [in] | d | material knowledge description |
| 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
| [out] | l | list of material properties |
| [in] | t | type of the variable |
| [in] | n | name of the variable |
| [in] | v | variable name |
| [in] | b | if true, this is a dummy variable |
| 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
| [in] | d | behaviour variable description |
| [in] | v | variable description |
| 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.
| [in] | d | behaviour DSL description |
| [in] | bbd | behaviour brick description |
| MFRONT_VISIBILITY_EXPORT bool mfront::areParametersTreatedAsStaticVariables | ( | const MaterialKnowledgeDescription & | ) |
this function returns the value of the MaterialKnowledgeDescription::parametersAsStaticVariables attribute if it is defined, false otherwise.
| [in] | d | material knowledge description |
| MFRONT_VISIBILITY_EXPORT bool mfront::areRuntimeChecksDisabled | ( | const MaterialKnowledgeDescription & | ) |
this function returns the value of the MaterialKnowledgeDescription::disableRuntimeChecks attribute if it is defined, false otherwise.
| [in] | d | material knowledge description |
| MFRONT_VISIBILITY_EXPORT std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > mfront::buildMaterialPropertiesList | ( | const BehaviourDescription & | , |
| const std::set< BehaviourMaterialProperty::Hypothesis > & | , | ||
| const BuildMaterialPropertiesListOptions & | ) |
| [in] | mb | behaviour description |
| [in] | mh | modelling hypotheses |
| [in] | opts | options |
| MFRONT_VISIBILITY_EXPORT std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > mfront::buildMaterialPropertiesList | ( | const BehaviourDescription & | , |
| const tfel::material::ModellingHypothesis::Hypothesis | , | ||
| const BuildMaterialPropertiesListOptions & | ) |
| [in] | mb | behaviour description |
| [in] | h | modelling hypothesis |
| [in] | opts | options |
| 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.
| [in] | t | : target name |
| [in] | d | : directory |
| [in] | f | : file name |
| 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.
| [in] | t | : target name |
| [in] | d | : directory |
| [in] | f | : file name |
| MFRONT_VISIBILITY_EXPORT void mfront::check | ( | const CompatibilityMode::Version & | ) |
check if the given version is ok
| [in] | v | version |
| MFRONT_VISIBILITY_EXPORT void mfront::checkAndCompletePhysicalBoundsDeclaration | ( | VariableDescription & | , |
| const std::string_view | ) |
declare the physical bounds of a variable if:
This method also checks if the declaration of the physical bounds are consistent with the one of the glossary entry.
| [in] | v | variable |
| [in] | s | unit system |
| MFRONT_VISIBILITY_EXPORT void mfront::checkAndCompletePhysicalBoundsDeclaration | ( | VariableDescriptionContainer & | , |
| const std::string_view | ) |
declare the physical bounds of all variables using the glossary
| [in] | variables | list of variables |
| [in] | s | unit system |
| 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.
| [in] | bd | behaviour description |
| [in] | h | modelling hypothesis |
| [in] | opts | modelling hypothesis |
| 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
| [in] | mp | material property description |
| 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
| [in] | mp | material property description |
| 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
| [in] | bv | behaviour variable |
| [in] | v1 | variable declared as shared by the behaviour variable |
| [in] | v2 | variable declared by the calling behaviour |
| 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.
| [in] | d | behaviour DSL description |
| [in] | bbd | behaviour brick description |
| 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.
| [out] | mprops | list of material properties |
| [in] | mb | behaviour description |
| [in] | h | : modelling hypothesis |
| MFRONT_VISIBILITY_EXPORT std::string mfront::convert | ( | const LibraryDescription::LibraryType | ) |
| [in] | t | : library type |
| MFRONT_VISIBILITY_EXPORT BehaviourDescription mfront::convertToBehaviourDescription | ( | const ModelDescription & | ) |
convert a model description to a behaviour description
| [in] | md | model description |
| MFRONT_VISIBILITY_EXPORT bool mfront::describes | ( | const TargetsDescription & | , |
| const std::string & | ) |
| [in] | t | : target description |
| [in] | n | : library name |
| void mfront::displayBounds | ( | std::ostream & | , |
| const VariableBoundsDescription & | ) |
display the bounds on the given stream
| [in] | os | output stream |
| [in] | b | bounds |
| void mfront::displayBoundsValue | ( | std::ostream & | , |
| const VariableBoundsDescription & | ) |
display the values of the bounds on the given stream
| [in] | os | output stream |
| [in] | b | bounds |
| MFRONT_VISIBILITY_EXPORT void mfront::displayGlossaryEntryCompleteDescription | ( | std::ostream & | , |
| const tfel::glossary::GlossaryEntry & | ) |
display the complete description of a glossary entry
| [out] | os | : output stream |
| [in] | e | : glossary entry |
| MFRONT_VISIBILITY_EXPORT const std::string & mfront::displayName | ( | const VariableDescriptionBase & | ) |
| [in] | v | variable |
| MFRONT_VISIBILITY_EXPORT void mfront::exportArrayOfIntegersSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const std::vector< int > & | ) |
write a symbol describing an array of integers
| [out] | os | output stream |
| [out] | n | name of the generated symbol |
| [out] | values | array of integers |
| 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
| [out] | os | output stream |
| [in] | n | name of the generated symbol |
| [in] | values | array of strings |
| 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
| [out] | os | output stream |
| [in] | n | name of the symbol |
| 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
| [out] | os | output stream |
| [in] | t | type of the symbol |
| [in] | n | name of the symbol |
| [in] | v | value of the symbol |
| MFRONT_VISIBILITY_EXPORT void mfront::exportUnsignedShortSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const unsigned short | ) |
export string symbol using the MFRONT_EXPORT_SYMBOL macro
| [out] | os | output stream |
| [in] | n | name of the symbol |
| 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.
| [in] | n | variable name and array position |
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}.
| MFRONT_VISIBILITY_EXPORT void mfront::finalizePathSpecifierArgumentsParsing | ( | std::vector< PathSpecifier > & | , |
| const PathSpecifier & | ) |
finalize the treatment of command line arguments associated with path specifiers.
| [in] | paths | registred path specifiers |
| [in] | s | current path specifier |
| MFRONT_VISIBILITY_EXPORT const BehaviourMaterialProperty & mfront::findBehaviourMaterialProperty | ( | const std::vector< BehaviourMaterialProperty > & | , |
| const std::string & | ) |
an helper function returning a material property
| [in] | mprops | : material properties |
| [in] | n | : glossary name |
| MFRONT_VISIBILITY_EXPORT VariableDescriptionContainer::const_iterator mfront::findByExternalName | ( | const VariableDescriptionContainer & | , |
| const std::string & | ) |
| [in] | c | variable container |
| [in] | n | external name |
| MFRONT_VISIBILITY_EXPORT void mfront::generateCMakeListsFile | ( | const TargetsDescription & | , |
| const GeneratorOptions & | , | ||
| const std::string & | = "src" ) |
a function generating a standard CMake from a target description.
| [in] | t | : target description |
| [in] | o | : options |
| [in] | d | : directory |
| [in] | f | : file name |
| 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.
| [in] | t | : target description |
| [in] | o | : options |
| [in] | d | : directory |
| [in] | f | : file name |
| const T & mfront::getAttribute | ( | const CodeBlock & | cb, |
| const std::string & | n ) |
return the value of an attribute.
| if | the attribute does not exist |
| if | the type of the attribute does not match |
| T | type of the attribute |
| [in] | cb | code block |
| [in] | n | name of the attribute |
| 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.
| if | the type of the attribute does not match |
| T | type of the attribute |
| [in] | cb | code block |
| [in] | n | name of the attribute |
| [in] | v | default value |
| 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.
| [in,out] | dsl | behaviour dsl |
| [in] | n | material property name |
| [in] | d | data |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getBehaviourVariableFactoryClassName | ( | const BehaviourVariableDescription & | ) |
| [in] | d | behaviour variable description |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getBehaviourWrapperClassName | ( | const BehaviourVariableDescription & | ) |
| [in] | d | behaviour variable description |
| 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.
| [in] | d | material knowledge description |
| MFRONT_VISIBILITY_EXPORT bool mfront::getDebugMode | ( | ) |
|
noexcept |
| if | the version is strictly lower than 5.2.0 |
| MFRONT_VISIBILITY_EXPORT BehaviourDSLDescription mfront::getDefaultFiniteStrainBehaviourDSLDescription | ( | ) |
| 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.
| [in] | d | material knowledge description |
| 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.
| [in] | d | material knowledge description |
| 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.
| [in] | d | material knowledge description |
| MFRONT_VISIBILITY_EXPORT BehaviourDSLDescription mfront::getDefaultStrainBasedBehaviourDSLDescription | ( | ) |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getDestinationPathInMadnexFile | ( | const OverridableImplementation & | ) |
return the implementation path where the given implementation will be written
| [in] | i | implementation |
| 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.
| [in] | d | material knowledge description |
| 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
| [in] | d | behaviour variable description |
| [in] | h | modelling hypothesis |
| 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
| [in] | d | behaviour variable description |
| [in] | h | modelling hypothesis |
|
noexcept |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getImplementationsPaths | ( | const PathSpecifier & | ) |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getImplementationsPaths | ( | const std::string & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | ) |
| [in] | f | file name |
| [in] | material_identifier | identifier of the material (may be empty). |
| [in] | behaviour_identifier | identifier for material properties. |
| [in] | behaviour_identifier | identifier for behaviours. |
| [in] | model_identifier | identifier for behaviours. |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getImplementationsPaths | ( | const std::vector< PathSpecifier > & | ) |
| 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.
| [out] | symbols | map between symbols and replacement strings. |
| [in] | v | variable description |
| 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.
| [out] | symbols | map between symbols and replacement strings. |
| [in] | c | variable description container |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getInstallPath | ( | ) |
| std::vector< std::string > mfront::getKeys | ( | const std::map< std::string, Value > & | m | ) |
| [in] | m | map |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT std::ostream & mfront::getLogStream | ( | ) |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getMaterialLawLibraryNameBase | ( | const MaterialPropertyDescription & | ) |
| [in] | mpd | material property description |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getMaterialPropertyParametersClassName | ( | const std::string & | ) |
| [in] | n | name of the material property |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getMaterialPropertyParametersHandlerClassName | ( | const std::string & | ) |
| [in] | n | name of the material property |
| MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::getOffset | ( | const VariableDescriptionContainer & | , |
| const std::string & | ) |
| [in] | c | variable description container |
| [in] | n | name of the variable |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName | ( | const BehaviourDescription & | ) |
| [in] | bd | behaviour description |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName | ( | const BehaviourDescription & | , |
| const BehaviourDescription::Hypothesis | ) |
| [in] | bd | behaviour description |
| [in] | h | modelling hypothesis |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName | ( | const MaterialPropertyDescription & | ) |
| [in] | mpd | material property description |
| MFRONT_VISIBILITY_EXPORT std::string mfront::getParametersFileName | ( | const ModelDescription & | ) |
| [in] | md | model description |
| MFRONT_VISIBILITY_EXPORT bool mfront::getPedanticMode | ( | ) |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getScalarTypeAliases | ( | ) |
| 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
| [in] | d | behaviour variable description |
| [in] | h | modelling hypothesis |
| 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
| [in] | d | behaviour variable description |
| [in] | h | modelling hypothesis |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getST2toST2TypeAliases | ( | ) |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getStensorTypeAliases | ( | ) |
| MFRONT_VISIBILITY_EXPORT void mfront::getSymbol | ( | std::map< std::string, std::string > & | , |
| const VariableDescription & | ) |
retrieve the symbol of the given variable description.
| [out] | symbols | map between symbols and replacement strings. |
| [in] | v | variable description |
| MFRONT_VISIBILITY_EXPORT void mfront::getSymbols | ( | std::map< std::string, std::string > & | , |
| const VariableDescriptionContainer & | ) |
retrieve all symbols in the given variables.
| [out] | symbols | map between symbols and replacement strings. |
| [in] | c | variable description container |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getTensorTypeAliases | ( | ) |
| 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.
| [out] | symbols | map between symbols and replacement strings. |
| [in] | v | variable description |
| 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.
| [out] | symbols | map between symbols and replacement strings. |
| [in] | c | variable description container |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getTinyVectorTypeAliases | ( | ) |
| MFRONT_VISIBILITY_EXPORT std::vector< std::string > mfront::getTypeAliases | ( | ) |
| MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::getTypeSize | ( | const VariableDescription & | ) |
| [in] | v | variable description |
| MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::getTypeSize | ( | const VariableDescriptionContainer & | ) |
| [in] | c | variable description container |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT bool mfront::getUnicodeOutputOption | ( | ) |
| 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
| [in] | d | behaviour variable description |
| [in] | h | modelling hypothesis |
| 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
| [in] | d | behaviour variable description |
| [in] | h | modelling hypothesis |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT VerboseLevel & mfront::getVerboseMode | ( | ) |
|
noexcept |
|
noexcept |
| bool mfront::hasAttribute | ( | const CodeBlock & | cb, |
| const std::string & | n ) |
check if an attribute of the given type is defined
| if | the type of the attribute does not match |
| T | type of the attribute |
| [in] | cb | code block |
| [in] | n | name of the attribute |
| MFRONT_VISIBILITY_EXPORT bool mfront::hasBounds | ( | const VariableDescription & | ) |
| [in] | v | variable description |
| MFRONT_VISIBILITY_EXPORT bool mfront::hasBounds | ( | const VariableDescription & | , |
| const unsigned short | ) |
| [in] | c | variable description container |
| [in] | i | index |
| MFRONT_VISIBILITY_EXPORT bool mfront::hasBounds | ( | const VariableDescriptionContainer & | ) |
| [in] | c | variable description container |
| MFRONT_VISIBILITY_EXPORT bool mfront::hasPhysicalBounds | ( | const VariableDescription & | ) |
| [in] | v | variable description |
| MFRONT_VISIBILITY_EXPORT bool mfront::hasPhysicalBounds | ( | const VariableDescription & | , |
| const unsigned short | ) |
| [in] | c | variable description container |
| [in] | i | index |
| MFRONT_VISIBILITY_EXPORT bool mfront::hasPhysicalBounds | ( | const VariableDescriptionContainer & | ) |
| [in] | c | variable description container |
|
noexcept |
| 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.
| 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.
| [out] | d | : destination |
| [in] | v | : value |
| void mfront::insert_if | ( | std::vector< std::string > & | d, |
| const Container & | s ) |
call insert_if on every element of a container.
| Container | : type of source |
| [out] | d | : destination |
| [in] | s | : source |
| 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.
| Value | : type of the objects of the initializer list |
| [out] | d | : destination |
| [in] | s | : source |
| 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.
| [out] | d | : destination |
| [in] | v | : value |
|
noexcept |
| MFRONT_VISIBILITY_EXPORT bool mfront::isValidBehaviourName | ( | const std::string & | ) |
| [in] | n | behaviour name |
| MFRONT_VISIBILITY_EXPORT bool mfront::isValidLibraryName | ( | std::string_view | ) |
| [in] | n | library name |
| MFRONT_VISIBILITY_EXPORT bool mfront::isValidMaterialName | ( | std::string_view | ) |
| [in] | n | material name |
| MFRONT_VISIBILITY_EXPORT bool mfront::isValidMaterialPropertyName | ( | const std::string & | ) |
| [in] | n | behaviour name |
| MFRONT_VISIBILITY_EXPORT bool mfront::isValidModelName | ( | const std::string & | ) |
| [in] | n | model name |
| MFRONT_VISIBILITY_EXPORT bool mfront::isValidUserDefinedVariableName | ( | std::string_view | ) |
| [in] | n | variable name |
The variable name must be a valid C++ variable and shall not start with mfront_.
| MFRONT_VISIBILITY_EXPORT std::string mfront::makeTangentOperatorBlocksList | ( | const BehaviourDescription & | , |
| const std::vector< std::pair< VariableDescription, VariableDescription > > & | ) |
| [in] | bd | behaviour description |
| [in] | tblocks | list of tangent operator blocks |
| MFRONT_VISIBILITY_EXPORT void mfront::mergeExecutableDescription | ( | ExecutableDescription & | , |
| const ExecutableDescription & | ) |
merge two executable description
| [out] | d | : destination |
| [in] | s | : source |
| MFRONT_VISIBILITY_EXPORT void mfront::mergeLibraryDescription | ( | LibraryDescription & | , |
| const LibraryDescription & | ) |
merge two library description
| [out] | d | : destination |
| [in] | s | : source |
| MFRONT_VISIBILITY_EXPORT void mfront::mergeTargetsDescription | ( | TargetsDescription & | , |
| const TargetsDescription & | , | ||
| const bool | ) |
merge two targets description
| [out] | d | : destination |
| [in] | s | : source |
| [in] | b | : override specific targets |
| MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::operator* | ( | const SupportedTypes::TypeSize & | , |
| const unsigned int | ) |
multiply a type size by a scalar
| [in] | a | factor |
| [in] | s | type size |
| MFRONT_VISIBILITY_EXPORT SupportedTypes::TypeSize mfront::operator* | ( | const unsigned int | , |
| const SupportedTypes::TypeSize & | ) |
multiply a type size by a scalar
| [in] | a | factor |
| [in] | s | type size |
| MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< | ( | std::ostream & | , |
| const ExecutableDescription & | ) |
write a executable description to a stream
| [out] | os | : output stream |
| [in] | t | : executable description |
| MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< | ( | std::ostream & | , |
| const LibraryDescription & | ) |
write a library description to a stream
| [out] | os | : output stream |
| [in] | t | : library description |
| MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< | ( | std::ostream & | , |
| const SupportedTypes::TypeSize & | ) |
output operator
| [out] | os | output stream |
| [in] | s | type size |
| MFRONT_VISIBILITY_EXPORT std::ostream & mfront::operator<< | ( | std::ostream & | , |
| const TargetsDescription & | ) |
write a target description to a stream
| [out] | os | : output stream |
| [in] | t | : target description |
| MFRONT_VISIBILITY_EXPORT void mfront::parseConfigurationFile | ( | const std::string & | ) |
parse a configuration file
| [in] | f | file name |
| 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.
| [in] | paths | registred path specifiers |
| [in] | s | current path specifier |
| [in] | a | current command line argument |
| MFRONT_VISIBILITY_EXPORT void mfront::performPedanticChecks | ( | const FileDescription & | ) |
various checks on file description
| [in] | fd | file description |
| 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
| [in] | ln | line number |
| [in] | f | file name |
| 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
| [os] | os: output stream | |
| [in] | ln | line number |
| [in] | f | file name |
| 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
| T | : type to be read |
| v | : value read |
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| MFRONT_VISIBILITY_EXPORT tfel::utilities::DataMap mfront::read | ( | tfel::utilities::CxxTokenizer::const_iterator & | , |
| const tfel::utilities::CxxTokenizer::const_iterator | ) |
read a data map from a stream created by the CxxTokenizer class
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| 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
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| 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
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| 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
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| T mfront::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
| T | : type to be read |
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| MFRONT_VISIBILITY_EXPORT ExecutableDescription mfront::read | ( | tfel::utilities::CxxTokenizer::const_iterator & | , |
| const tfel::utilities::CxxTokenizer::const_iterator | ) |
read a ExecutableDescription from a stream created by the CxxTokenizer class
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| MFRONT_VISIBILITY_EXPORT LibraryDescription mfront::read | ( | tfel::utilities::CxxTokenizer::const_iterator & | , |
| const tfel::utilities::CxxTokenizer::const_iterator | ) |
read a LibraryDescription from a stream created by the CxxTokenizer class
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| MFRONT_VISIBILITY_EXPORT TargetsDescription mfront::read | ( | tfel::utilities::CxxTokenizer::const_iterator & | , |
| const tfel::utilities::CxxTokenizer::const_iterator | ) |
read a TargetDescription from a stream created by the CxxTokenizer class
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
|
nodiscard |
read a configuration file and turn it into a DataMap
| [in] | f | file name |
| MFRONT_VISIBILITY_EXPORT bool mfront::readSafeOptionTypeIfPresent | ( | tfel::utilities::CxxTokenizer::const_iterator & | , |
| const tfel::utilities::CxxTokenizer::const_iterator | ) |
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| 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
| [in,out] | p | : current position in the stream |
| [in] | pe | : end of the stream |
| MFRONT_VISIBILITY_EXPORT void mfront::reportWarning | ( | const std::vector< std::string > & | ) |
report a list of warnings if warning mode is enabled
| [in] | warnings | warning messages |
| MFRONT_VISIBILITY_EXPORT void mfront::reportWarning | ( | std::string_view | ) |
report a warning if warning mode is enabled
| [in] | msg | warning message |
| MFRONT_VISIBILITY_EXPORT void mfront::setDebugMode | ( | const bool | ) |
enable or diable the debug mode
| [in] | b | : if true, set the debug mode |
| MFRONT_VISIBILITY_EXPORT void mfront::setDefaultCompatibilityMode | ( | const CompatibilityMode::Version & | ) |
set the default compatibility mode, stored in a global static variable.
| [in] | v | version |
| if | the version is strictly lower than 5.2.0 |
| MFRONT_VISIBILITY_EXPORT void mfront::setDefaultCompatibilityMode | ( | std::string_view | ) |
set the default compatibility mode, stored in a global static variable.
| [in] | v | version |
| if | the version is strictly lower than 5.2.0 |
| MFRONT_VISIBILITY_EXPORT void mfront::setDefaultOutOfBoundsPolicy | ( | MaterialKnowledgeDescription & | , |
| const std::string & | ) |
set the default out of bounds policy
| [out] | d | material knowledge description |
| [in] | policy | out of bounds policy |
| MFRONT_VISIBILITY_EXPORT void mfront::setDisableRuntimeChecks | ( | MaterialKnowledgeDescription & | , |
| const bool | ) |
set if runtime checks shall be disabled
| [out] | d | material knowledge description |
| [in] | b | boolean |
| 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
| [in,out] | bd | behaviour description |
| [in] | s | symmetry type |
| MFRONT_VISIBILITY_EXPORT void mfront::setInstallPath | ( | const std::string & | ) |
set the installation path
| [in] | p | installation path |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setLogStream | ( | const std::string & | f | ) |
set the current logging stream
| f | : file name |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setLogStream | ( | std::ostream & | ) |
set the current logging stream
| os | : new logging stream |
| MFRONT_VISIBILITY_EXPORT void mfront::setPedanticMode | ( | const bool | ) |
enable or diable the pedantic mode
| [in] | b | : if true, set the pedantic mode |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setUnicodeOutputOption | ( | const bool | ) |
set if MFront shall use unicode characters on output. In particular:
| MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setVerboseMode | ( | const std::string & | ) |
change the verbose level
| [in] | l | the new verbose level |
| MFRONTLOGSTREAM_VISIBILITY_EXPORT void mfront::setVerboseMode | ( | const VerboseLevel | = VERBOSE_LEVEL0 | ) |
change the verbose level
| the | new verbose level |
|
noexcept |
enable or diable the warning error mode
| [in] | b | : if true, set the warning mode mode |
|
noexcept |
enable or diable the warning mode
| [in] | b | : if true, set the warning mode |
| MFRONT_VISIBILITY_EXPORT bool mfront::supportAllModellingHypothes | ( | const BehaviourDSLDescription & | ) |
a small function checking of all the modelling hypotheses can be supported.
| [in] | d | behaviour DSL description |
| MFRONT_VISIBILITY_EXPORT std::string mfront::to_string | ( | const CompatibilityMode::Version & | ) |
| [in] | v | version |
| MFRONT_VISIBILITY_EXPORT std::string mfront::to_string | ( | const SupportedTypes::TypeSize & | ) |
convert to string
| [in] | s | type size |
| MFRONT_VISIBILITY_EXPORT bool mfront::useQuantities | ( | const MaterialPropertyDescription & | ) |
| [in] | mpd | material property description |
| MFRONT_VISIBILITY_EXPORT void mfront::write | ( | const OverridableImplementation & | , |
| const std::string & | ) |
write the implementation to the file
| [in] | i | implementation |
| [in] | f | file name |
The extension of the file is used to determine the driver used. Currently, the only driver available is associated with madnex files.
| MFRONT_VISIBILITY_EXPORT void mfront::write | ( | const OverridableImplementation & | , |
| const std::string & | , | ||
| const std::string & | ) |
write the implementation to the file
| [in] | i | implementation |
| [in] | t | path to a template file |
| [in] | f | file name |
The extension of the file is used to determine the driver used. Currently, the only driver available is associated with madnex files.
| 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
| [in] | os | : output stream |
| [in] | v | : vector of string |
| [in] | id | : identifier |
| MFRONT_VISIBILITY_EXPORT void mfront::writeAssignMaterialPropertyParameters | ( | std::ostream & | , |
| const MaterialPropertyDescription & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | ) |
| [out] | os | ouptut stream |
| [in] | mpd | material property description |
| [in] | n | name of the material property |
| [in] | t | type of the parameters |
| [in] | i | namespace associated with the interface |
| 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:
| [in,out] | os | output stream |
| [in] | mpd | material property description |
| [in] | fd | file description |
| [in] | numeric_type | numeric type used by the interface |
| [in] | areQuantitiesSupported | allow quantities |
| 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 | ) |
| [out] | os | output stream |
| [in] | v | variable description |
| [in] | n | name of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array. |
| [in] | space_dimension | string containing the space dimension |
| [in] | policy | name of the variable holding the policy |
| [in] | addThis | add "this->" in front of the variables |
| [in] | checkEndOfTimeStepValue | also check the value at the end of the time step given by the value of the variable plus its increment. |
| 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 | ) |
| [out] | os | output stream |
| [in] | v | variable description |
| [in] | bounds | bounds to be checked |
| [in] | n | name of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array. |
| [in] | space_dimension | string containing the space dimension |
| [in] | policy | name of the variable holding the policy |
| [in] | addThis | add "this->" in front of the variables |
| [in] | checkEndOfTimeStepValue | also check the value at the end of the time step given by the value of the variable plus its increment. |
| 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
| [out] | os | output stream |
| [in] | n | name of the law |
| [in] | vn | name of the variable |
| [in] | bt | type of bounds (physical or not) |
| [in] | b | bound description |
| MFRONT_VISIBILITY_EXPORT void mfront::writeBoundsSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const VariableDescriptionContainer & | ) |
write the bounds associated with the given variables
| [out] | os | output stream |
| [in] | n | name of the symbol |
| [in] | vc | variables |
| MFRONT_VISIBILITY_EXPORT void mfront::writeBuildIdentifierSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const MaterialKnowledgeDescription & | ) |
write a symbol associated with the build identifier.
| [out] | os | output stream |
| [in] | n | entry point name |
| [in] | d | description |
| 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
| [in] | idata | interpolated data |
| [in] | args | additional information |
| MFRONT_VISIBILITY_EXPORT void mfront::writeCompatibilityModeSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const MaterialKnowledgeDescription & | ) |
write a symbol associated with the compatibility mode.
| [out] | os | output stream |
| [in] | n | entry point name |
| [in] | d | description |
| 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.
| [out] | os | output stream |
| [in] | n | entry point name |
| 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.
| [out] | os | output stream |
| [out] | n | entry point alias |
| [out] | n2 | entry point name |
| MFRONT_VISIBILITY_EXPORT void mfront::writeExportDirectives | ( | std::ostream & | , |
| const bool | = true ) |
define the MFRONT_SHAREDOBJ macro which contains visibility attributes.
| [out] | os | output file |
| [in] | b | boolean stating if the MFRONT_COMPILING macro shall be taken into account. |
| 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.
| [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.
| MFRONT_VISIBILITY_EXPORT void mfront::writeFileDescriptionSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const FileDescription & | ) |
write symbols associated with the file description.
| [out] | os | output stream |
| [in] | n | entry point name |
| [in] | fd | file description |
| 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.
| [in] | f | file name |
| [in] | contents | contents of the file |
| 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.
| [out] | os | output stream |
| [out] | n | entry point alias |
| [out] | i | entry point name |
| 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.
| [out] | os | output stream |
| [out] | n | entry point name |
| [in] | l | law name name |
| 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
| [in] | idata | interpolated data |
| [in] | args | additional information |
| MFRONT_VISIBILITY_EXPORT void mfront::writeMaterialKnowledgeTypeSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const MaterialKnowledgeType & | ) |
write the symbol giving the material knowledge type.
| [out] | os | output stream |
| [in] | n | entry point |
| [in] | t | material knowledge type |
| MFRONT_VISIBILITY_EXPORT void mfront::writeMaterialPropertyParametersHandler | ( | std::ostream & | , |
| const MaterialPropertyDescription & | , | ||
| const std::string & | , | ||
| const std::string & | , | ||
| const std::string & | ) |
| [out] | os | ouptut stream |
| [in] | mpd | material property description |
| [in] | n | name of the material property |
| [in] | t | type of the parameters |
| [in] | i | namspace associated with the interface |
| 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.
| [out] | os | ouptut stream |
| [in] | mpd | material property description |
| [in] | args | additional arguments |
| 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.
| [out] | os | output stream |
| [out] | n | entry point name |
| [in] | m | material name name |
| MFRONT_VISIBILITY_EXPORT void mfront::writeParametersDeclarationSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const VariableDescriptionContainer & | ) |
export parameters declarations
| [out] | os | output stream |
| [out] | n | name of the entry point |
| [out] | parameters | list of parameters |
| MFRONT_VISIBILITY_EXPORT void mfront::writeParametersDefaultValuesSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const VariableDescriptionContainer & | ) |
export the default values of a set of parameters
| [out] | os | output stream |
| [out] | n | name of the entry point |
| [out] | parameters | list of parameters |
| 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
| [out] | os | ouptut stream |
| [in] | mpd | material property description |
| [in] | args | additional arguments |
| 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
| [out] | os | ouptut stream |
| [in] | mpd | material property description |
| [in] | args | additional arguments |
| MFRONT_VISIBILITY_EXPORT void mfront::writeParametersSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const MaterialPropertyDescription & | ) |
export all symbols related to parameters
| [out] | os | output stream |
| [out] | n | name of the entry point |
| [out] | parameters | list of parameters |
This functions calls successively:
| MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalBoundsChecks | ( | std::ostream & | , |
| const VariableDescription & | , | ||
| const std::string_view | , | ||
| const std::string_view | , | ||
| const bool | , | ||
| const bool | ) |
| [out] | os | output stream |
| [in] | v | variable description |
| [in] | n | name of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array. |
| [in] | space_dimension | string containing the space dimension |
| [in] | addThis | add "this->" in front of the variables |
| [in] | checkEndOfTimeStepValue | also check the value at the end of the time step given by the value of the variable plus its increment. |
| MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalBoundsChecks | ( | std::ostream & | , |
| const VariableDescription & | , | ||
| const VariableBoundsDescription & | , | ||
| const std::string_view | , | ||
| const std::string_view | , | ||
| const bool | , | ||
| const bool | ) |
| [out] | os | output stream |
| [in] | v | variable description |
| [in] | bounds | physical bounds to be checked |
| [in] | n | name of the variable tested. If the variable describes an array of variables, this argument may point to an element of this array. |
| [in] | space_dimension | string containing the space dimension |
| [in] | addThis | add "this->" in front of the variables |
| [in] | checkEndOfTimeStepValue | also check the value at the end of the time step given by the value of the variable plus its increment. |
| MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalBoundsSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const VariableDescriptionContainer & | ) |
write the physical bounds associated with the given variables
| [out] | os | output stream |
| [in] | n | name of the symbol |
| [in] | vc | variables |
| MFRONT_VISIBILITY_EXPORT void mfront::writePhysicalConstantsAlias | ( | std::ostream & | , |
| const MaterialKnowledgeDescription & | , | ||
| std::string_view | , | ||
| const bool | ) |
declare an alias to the PhysicalConstant class
| [in] | os | output stream |
| [in] | d | material knowledge description |
| [in] | numeric_type | numeric type |
| [in] | use_quantities | boolean stating if quantities are used |
| 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.
| [out] | os | output stream |
| [in] | md | model description |
| [in] | cn | name of the class holding the real parameters |
| 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.
| [in,out] | os | output stream |
| [in] | mpd | material property description |
| [in] | numeric_type | numeric type used by the interface |
| [in] | areQuantitiesSupported | allow quantities |
| void mfront::writeStandardPerformanceProfiling | ( | std::ostream & | , |
| std::string_view | , | ||
| std::string_view | , | ||
| std::string_view | = "" ) |
: an helper function to declare a timer
| [out] | os | : output stream |
| [in] | c | : class name |
| [in] | v | : code block name |
| [in] | s | : time temporary variable suffix |
| void mfront::writeStandardPerformanceProfilingBegin | ( | std::ostream & | , |
| std::string_view | , | ||
| std::string_view | , | ||
| std::string_view | = "" ) |
: an helper function writing the beginning of a performance measurement
| [out] | os | : output stream |
| [in] | c | : class name |
| [in] | v | : code block name |
| [in] | s | : time temporary variable suffix |
| void mfront::writeStandardPerformanceProfilingEnd | ( | std::ostream & | ) |
: an helper function writing the end of a performance measurement
| [out] | os | : output stream |
| 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.
| [out] | os | output stream |
| [in] | n | entry point name |
| 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.
| [out] | os | output stream |
| [in] | n | entry point name |
| [in] | d | description |
| MFRONT_VISIBILITY_EXPORT void mfront::writeValidatorSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const MaterialKnowledgeDescription & | ) |
write a symbol associated with the validator.
| [out] | os | output stream |
| [in] | n | entry point name |
| [in] | d | description |
| MFRONT_VISIBILITY_EXPORT void mfront::writeVariablesBoundsSymbols | ( | std::ostream & | , |
| const std::string_view | , | ||
| const mfront::MaterialPropertyDescription & | ) |
write the name of the variable
| [out] | os | output stream |
| [in] | n | name of the law |
| [in] | mpd | material property description |
| MFRONT_VISIBILITY_EXPORT void mfront::writeVariablesNamesSymbol | ( | std::ostream & | , |
| const std::string_view | , | ||
| const mfront::MaterialPropertyDescription & | ) |
write the name of the variable
| [out] | os | output stream |
| [in] | n | name of the law |
| [in] | mpd | material property description |