21 "Returns a vector function based on string descriptions for each component.");
23 "value_x",
"x-component of function.",
"value_x is deprecated, use expression_x");
25 "value_y",
"y-component of function.",
"value_y is deprecated, use expression_y");
27 "value_z",
"z-component of function.",
"value_z is deprecated, use expression_z");
28 params.
addParam<std::string>(
"expression_x",
"0",
"x-component of function.");
29 params.
addParam<std::string>(
"expression_y",
"0",
"y-component of function.");
30 params.
addParam<std::string>(
"expression_z",
"0",
"z-component of function.");
31 params.
addParam<std::string>(
"curl_x",
"0",
"x-component of curl of function.");
32 params.
addParam<std::string>(
"curl_y",
"0",
"y-component of curl of function.");
33 params.
addParam<std::string>(
"curl_z",
"0",
"z-component of curl of function.");
34 params.
addParam<std::string>(
"div",
"0",
"divergence of function.");
41 _vector_value(verifyFunction(
std::string(
"{") +
42 getRenamedParam<
std::string>(
"value_x",
"expression_x") +
"}{" +
43 getRenamedParam<
std::string>(
"value_y",
"expression_y") +
"}{" +
44 getRenamedParam<
std::string>(
"value_z",
"expression_z") +
"}")),
45 _curl_value(verifyFunction(
std::string(
"{") + getParam<
std::string>(
"curl_x") +
"}{" +
46 getParam<
std::string>(
"curl_y") +
"}{" +
47 getParam<
std::string>(
"curl_z") +
"}")),
48 _div_value(verifyFunction(getParam<
std::string>(
"div")))
73 mooseError(
"The gradient method is not defined in MooseParsedVectorFunction");
81 tid = getParam<THREAD_ID>(
"_tid");
std::unique_ptr< MooseParsedFunctionWrapper > _function_ptr
Pointer to the Parsed function wrapper object for the scalar.
Base class for function objects.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
virtual RealVectorValue curl(Real t, const Point &p) const override
Override this to evaluate the curl of the vector function at a point (t,x,y,z), by default this retur...
Creates the 'vars' and 'vals' parameters used by all ParsedFunctions, the parameters provided from th...
registerMooseObjectAliased("MooseApp", MooseParsedVectorFunction, "ParsedVectorFunction")
virtual RealVectorValue vectorValue(Real t, const Point &p) const override
Override this to evaluate the vector function at a point (t,x,y,z), by default this returns a zero ve...
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.
std::string _vector_value
Storage for vector input function(s), in format ready for libMesh.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
static InputParameters validParams()
Class constructor.
std::string _curl_value
Storage for curl input function(s), in format ready for libMesh.
virtual Real div(Real t, const Point &p) const override
Override this to evaluate the divergence of the vector function at a point (t,x,y,z), by default this returns zero, you must override it.
virtual RealGradient gradient(Real t, const Point &p) const override
Function objects can optionally provide a gradient at a point.
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.
MooseParsedVectorFunction(const InputParameters ¶meters)
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.
std::unique_ptr< MooseParsedFunctionWrapper > _curl_function_ptr
Pointer to the Parsed function wrapper object for the curl.
static InputParameters validParams()
Class constructor.
This class is similar to ParsedFunction except it returns a vector function.
std::string _div_value
Storage for div input function, in format ready for libMesh.
std::unique_ptr< MooseParsedFunctionWrapper > _div_function_ptr
Pointer to the Parsed function wrapper object for the div.