22 "Parses and evaluates a function expression to populate a control value.");
25 "expression",
"FunctionExpression",
"Expression to parse to create the function to evaluate");
26 params.
addParam<Point>(
"point", Point(),
"Spatial point at which to evaluate the function");
34 _function_expression(verifyFunction(getParam<
std::string>(
"expression"))),
35 _value(declareChainControlData<
Real>(
"value")),
36 _point(getParam<Point>(
"point"))
47 tid = getParam<THREAD_ID>(
"_tid");
49 _function_ptr = std::make_unique<ChainControlParsedFunctionWrapper>(
60 for (
auto & data_ptr :
_function_ptr->getRealChainControlData())
62 for (
auto & data_ptr :
_function_ptr->getBoolChainControlData())
ParsedChainControl(const InputParameters ¶meters)
const std::string _function_expression
Function expression to parse and evaluate.
static InputParameters validParams()
Adds user facing parameters for parsed function.
virtual void init() override
Initialization that occurs in ChainControlSetupAction, right before the dependencies are added...
std::unique_ptr< ChainControlParsedFunctionWrapper > _function_ptr
Pointer to the Parsed chain control function.
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.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
const Point _point
Spatial point at which to evaluate the function.
Parses and evaluates a function expression to populate a control value.
static InputParameters validParams()
registerMooseObject("MooseApp", ParsedChainControl)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void execute() override
Execute the control.
static InputParameters validParams()
Class constructor for the interface.
void addChainControlDataDependency(const std::string &data_name)
Adds a chain control data dependency into the list.
void buildFunction()
Builds the function that will be evaluated by this control.
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.
Real & _value
Control value to populate.
Control that additionally provides the capability to produce/consume data values, to allow control op...