https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ParsedChainControl.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "ChainControl.h"
14
16
21{
22public:
24
26
27 virtual void init() override;
28 virtual void execute() override;
29
30protected:
34 void buildFunction();
35
37 const std::string _function_expression;
39 Real & _value;
41 std::unique_ptr<ChainControlParsedFunctionWrapper> _function_ptr;
43 const Point _point;
44};
Wraps libMesh::ParsedFunction for use in ChainControls.
Control that additionally provides the capability to produce/consume data values, to allow control op...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Adds user facing parameters for parsed function.
Parses and evaluates a function expression to populate a control value.
Real & _value
Control value to populate.
static InputParameters validParams()
virtual void init() override
Initialization that occurs in ChainControlSetupAction, right before the dependencies are added.
const std::string _function_expression
Function expression to parse and evaluate.
void buildFunction()
Builds the function that will be evaluated by this control.
virtual void execute() override
Execute the control.
std::unique_ptr< ChainControlParsedFunctionWrapper > _function_ptr
Pointer to the Parsed chain control function.
const Point _point
Spatial point at which to evaluate the function.