a base class for material properties' interfaces such as the cyrano and generic interfaces.
More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericMaterialPropertyInterfaceBase.hxx>
|
| static void | writePointEvaluation (std::ostream &, const MaterialPropertyDescription &, const PointEvaluationOptions &) |
| | write the code evaluating a material property at a point, shared by the generic, cyrano and generic-parallel interfaces: physical bounds of the inputs, bounds of the inputs, body of the material property, physical bounds and bounds of the output. The variables are checked in the order of the inputs, the output being the last one. The physical bounds always make the evaluation fail. The bounds make it fail with the strict policy, and are reported with the warning policy: as with the generic interface, an unknown policy is treated as the None policy. The checks are disabled by the given macro, or not written if the runtime checks are disabled. The variables (inputs, parameters, output) and the out of bounds policy (mfront_out_of_bounds_policy) must be declared by the caller.
|
| static std::size_t | getPhysicalBoundCheck (const std::size_t, const bool) |
| static std::size_t | getBoundCheck (const MaterialPropertyDescription &, const std::size_t, const bool) |
|
|
static constexpr std::size_t | invalid_result_check = 0 |
| | identifier of the check of the finiteness of the result
|
a base class for material properties' interfaces such as the cyrano and generic interfaces.
◆ getBoundCheck()
| std::size_t mfront::GenericMaterialPropertyInterfaceBase::getBoundCheck |
( |
const MaterialPropertyDescription & | , |
|
|
const std::size_t | , |
|
|
const bool | ) |
|
staticnodiscard |
- Returns
- the identifier of the check of a bound
- Parameters
-
| [in] | mpd | material property description |
| [in] | i | index of the variable (the output is after the inputs) |
| [in] | upper | true for the upper bound |
◆ getFunctionName()
◆ getHeaderFileName()
| virtual std::string mfront::GenericMaterialPropertyInterfaceBase::getHeaderFileName |
( |
const std::string & | | ) |
const |
|
nodiscardprotectedvirtual |
◆ getLibraryDescription()
append the generated material property to the given library description. This method allows to choose to which library is attached the material property (which is not the case of the getTargetsDescription method).
- Parameters
-
| [in] | d | targets description |
| [in] | l | library description |
| [in] | mpd | material property description |
Reimplemented in mfront::GenericParallelMaterialPropertyInterface.
◆ getPhysicalBoundCheck()
| std::size_t mfront::GenericMaterialPropertyInterfaceBase::getPhysicalBoundCheck |
( |
const std::size_t | , |
|
|
const bool | ) |
|
staticnodiscard |
- Returns
- the identifier of the check of a physical bound
- Parameters
-
| [in] | i | index of the variable (the output is after the inputs) |
| [in] | upper | true for the upper bound |
◆ getSourceFileName()
| virtual std::string mfront::GenericMaterialPropertyInterfaceBase::getSourceFileName |
( |
const std::string & | | ) |
const |
|
nodiscardprotectedvirtual |
◆ getTargetsDescription()
◆ setOptions()
| void mfront::GenericMaterialPropertyInterfaceBase::setOptions |
( |
const DataMap & | | ) |
|
|
overridevirtual |
◆ treatKeyword()
◆ writeHeaderFile()
◆ writeOutputFiles()
◆ writePointEvaluation()
write the code evaluating a material property at a point, shared by the generic, cyrano and generic-parallel interfaces: physical bounds of the inputs, bounds of the inputs, body of the material property, physical bounds and bounds of the output. The variables are checked in the order of the inputs, the output being the last one. The physical bounds always make the evaluation fail. The bounds make it fail with the strict policy, and are reported with the warning policy: as with the generic interface, an unknown policy is treated as the None policy. The checks are disabled by the given macro, or not written if the runtime checks are disabled. The variables (inputs, parameters, output) and the out of bounds policy (mfront_out_of_bounds_policy) must be declared by the caller.
- Parameters
-
| [out] | os | output stream |
| [in] | mpd | material property description |
| [in] | opts | options |
◆ writePointwiseFunction()
write the function evaluating a material property at a point, with the conventions of the generic interface (try block, errno, statuses -2 to -6). The parameters handler and the header declaring the function must have been written.
- Parameters
-
| [out] | os | output stream |
| [in] | mpd | material property description |
| [in] | fd | file description |
| [in] | name | name of the function |
| [in] | d | names and types |
◆ writeSrcFile()
The documentation for this struct was generated from the following file: