#include <FunctionParserUtils.h>
Public Types | |
typedef GenericSymFunction< is_ad > | SymFunction |
Shorthand for an autodiff function parser object. More... | |
typedef std::shared_ptr< SymFunction > | SymFunctionPtr |
Shorthand for an smart pointer to an autodiff function parser object. More... | |
Public Member Functions | |
FunctionParserUtils (const InputParameters ¶meters) | |
void | setParserFeatureFlags (SymFunctionPtr &) |
apply input paramters to internal feature flags of the parser object More... | |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Types | |
enum | FailureMethod { FailureMethod::nan, FailureMethod::nan_warning, FailureMethod::error, FailureMethod::exception } |
Enum for failure method. More... | |
Protected Member Functions | |
GenericReal< is_ad > | evaluate (SymFunctionPtr &, const std::string &object_name="") |
Evaluate FParser object and check EvalError. More... | |
void | addFParserConstants (SymFunctionPtr &parser, const std::vector< std::string > &constant_names, const std::vector< std::string > &constant_expressions) |
add constants (which can be complex expressions) to the parser object More... | |
virtual void | functionsOptimize (SymFunctionPtr &parsed_function) |
template<> | |
void | functionsOptimize (SymFunctionPtr &parsed_function) |
template<> | |
void | functionsOptimize (SymFunctionPtr &parsed_function) |
Protected Attributes | |
enum FunctionParserUtils::FailureMethod | _evalerror_behavior |
const Real | _quiet_nan |
appropriate not a number value to return More... | |
std::vector< GenericReal< is_ad > > | _func_params |
Array to stage the parameters passed to the functions when calling Eval. More... | |
bool | _enable_jit |
bool | _enable_ad_cache |
bool | _disable_fpoptimizer |
bool | _enable_auto_optimize |
Static Protected Attributes | |
static const char * | _eval_error_msg [] |
table of FParser eval error codes More... | |
Definition at line 54 of file FunctionParserUtils.h.
typedef GenericSymFunction<is_ad> FunctionParserUtils< is_ad >::SymFunction |
Shorthand for an autodiff function parser object.
Definition at line 62 of file FunctionParserUtils.h.
typedef std::shared_ptr<SymFunction> FunctionParserUtils< is_ad >::SymFunctionPtr |
Shorthand for an smart pointer to an autodiff function parser object.
Definition at line 65 of file FunctionParserUtils.h.
|
strongprotected |
Enum for failure method.
Enumerator | |
---|---|
nan | |
nan_warning | |
error | |
exception |
Definition at line 90 of file FunctionParserUtils.h.
FunctionParserUtils< is_ad >::FunctionParserUtils | ( | const InputParameters & | parameters | ) |
Definition at line 59 of file FunctionParserUtils.C.
|
protected |
add constants (which can be complex expressions) to the parser object
Definition at line 134 of file FunctionParserUtils.C.
|
protected |
Evaluate FParser object and check EvalError.
Definition at line 86 of file FunctionParserUtils.C.
Referenced by ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl().
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 184 of file FunctionParserUtils.C.
void FunctionParserUtils< is_ad >::setParserFeatureFlags | ( | SymFunctionPtr & | parser | ) |
apply input paramters to internal feature flags of the parser object
Definition at line 78 of file FunctionParserUtils.C.
|
static |
Definition at line 18 of file FunctionParserUtils.C.
Referenced by ArrayParsedAux::validParams(), ParsedODEKernel::validParams(), ParsedAux::validParams(), ParsedSubdomainMeshGenerator::validParams(), ParsedVectorAux::validParams(), ParsedPostprocessor::validParams(), ParsedFunctorMaterialTempl< is_ad >::validParams(), ParsedCurveGenerator::validParams(), ParsedNodeTransformGenerator::validParams(), ParsedGenerateSideset::validParams(), TransfiniteMeshGenerator::validParams(), ParsedElementDeletionGenerator::validParams(), and ParsedMaterialHelper< is_ad >::validParams().
|
protected |
Definition at line 85 of file FunctionParserUtils.h.
|
protected |
Definition at line 84 of file FunctionParserUtils.h.
|
protected |
Definition at line 86 of file FunctionParserUtils.h.
|
protected |
Definition at line 83 of file FunctionParserUtils.h.
Referenced by FunctionParserUtils< false >::FunctionParserUtils().
|
staticprotected |
table of FParser eval error codes
Definition at line 96 of file FunctionParserUtils.h.
|
protected |
|
protected |
Array to stage the parameters passed to the functions when calling Eval.
Definition at line 99 of file FunctionParserUtils.h.
Referenced by ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl().
|
protected |
appropriate not a number value to return
Definition at line 93 of file FunctionParserUtils.h.