Go to the documentation of this file.
22 params.
addParam<std::string>(
"value",
"0",
"User defined function.");
23 params.
addParam<std::string>(
"grad_x",
"0",
"Partial with respect to x.");
24 params.
addParam<std::string>(
"grad_y",
"0",
"Partial with respect to y.");
25 params.
addParam<std::string>(
"grad_z",
"0",
"Partial with respect to z.");
32 _value(verifyFunction(getParam<
std::string>(
"value"))),
33 _grad_value(verifyFunction(
std::string(
"{") + getParam<
std::string>(
"grad_x") +
"}{" +
34 getParam<
std::string>(
"grad_y") +
"}{" +
35 getParam<
std::string>(
"grad_z") +
"}"))
58 mooseError(
"The vectorValue method is not defined in ParsedGradFunction");
66 tid = getParam<THREAD_ID>(
"_tid");
static InputParameters validParams()
Class constructor for the interface.
static InputParameters validParams()
Class constructor.
FEProblemBase & _pfb_feproblem
Reference to the FEProblemBase class for this object.
void mooseError(Args &&... args) const
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
virtual void initialSetup() override
Creates two libMesh::ParsedFunction objects for returning a vector via the 'gradient' method and a sc...
std::unique_ptr< MooseParsedFunctionWrapper > _function_ptr
Pointer to the Parsed function wrapper object for the scalar.
VectorValue< Real > RealVectorValue
virtual RealGradient gradient(Real t, const Point &p) const override
Compute the gradient of the function.
std::string _value
String for the scalar function string.
defineLegacyParams(MooseParsedGradFunction)
const std::vector< std::string > _vals
Values passed by the user, they may be Reals for Postprocessors.
virtual RealVectorValue vectorValue(Real t, const Point &p) const override
Method invalid for ParsedGradFunction.
MooseParsedGradFunction(const InputParameters ¶meters)
This class is similar to ParsedFunction except it also supports returning the gradient of the functio...
Adds user facing parameters for parsed function.
static InputParameters validParams()
Class constructor.
registerMooseObjectAliased("MooseApp", MooseParsedGradFunction, "ParsedGradFunction")
std::string _grad_value
String for the gradient, vector function string.
virtual ~MooseParsedGradFunction()
Destructor necessary for std::unique_ptr usage.
std::unique_ptr< MooseParsedFunctionWrapper > _grad_function_ptr
Pointer to the Parsed function wrapper object for the gradient.
Base class for function objects.
virtual Real value(Real t, const Point &p) const override
Return a scalar value from the function.
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.