27 "value",
"FunctionExpression",
"The user defined function.",
"Use 'expression' instead.");
30 "expression",
"FunctionExpression",
"The user defined function.");
40 _value(verifyFunction(this->template getRenamedParam<
std::string>(
"value",
"expression")))
47 mooseAssert(
_function_ptr,
"ParsedFunction should have been initialized");
54 mooseAssert(
_function_ptr,
"ParsedFunction should have been initialized");
61 mooseAssert(
_function_ptr,
"ParsedFunction should have been initialized");
68 mooseError(
"The vectorValue method is not defined in ParsedFunction");
84 "The only variables supported by ParsedFunction are scalar variables, and var '" +
85 _vars[i] +
"' is not scalar.");
93 tid = this->
template getParam<THREAD_ID>(
"_tid");
virtual bool hasVariable(const std::string &var_name) const override
Whether or not this problem has the variable.
std::unique_ptr< MooseParsedFunctionWrapper > _function_ptr
Pointer to the Parsed function wrapper object for the scalar.
Base class for function objects.
virtual RealVectorValue vectorValue(Real t, const Point &p) const override
Method invalid for ParsedGradFunction.
Adds user facing parameters for parsed function.
MooseParsedFunction(const InputParameters ¶meters)
registerMooseObjectRenamed("MooseApp", ADParsedFunction, "02/03/2024 00:00", MooseParsedFunction)
FEProblemBase & _pfb_feproblem
Reference to the FEProblemBase class for this object.
const std::vector< std::string > _vals
Values passed by the user, they may be Reals for Postprocessors.
This class is used to evaluate symbolic equations passed in to Moose through the input file...
virtual void initialSetup() override
Creates the parsed function.
virtual Real value(Real t, const Point &pt) const override
Evaluate the equation at the given location.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
registerMooseObjectAliased("MooseApp", MooseParsedFunction, "ParsedFunction")
static InputParameters validParams()
Created from MooseSystem via the FunctionFactory.
bool hasPostprocessorValueByName(const PostprocessorName &name) const
Whether or not a Postprocessor value exists by a given name.
std::string _value
The function defined by the user.
virtual RealGradient gradient(Real t, const Point &p) const override
Evaluate the gradient of the function.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
Class constructor for the interface.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
virtual Real timeDerivative(Real t, const Point &p) const override
Evaluate the time derivative of the function.
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.
virtual bool hasFunction(const std::string &name, const THREAD_ID tid=0)
static InputParameters validParams()
Class constructor.
auto index_range(const T &sizable)