23 params.
addRequiredParam<std::string>(
"chain_control_data_name",
"Chain control data name");
29 _data_name(getParam<
std::string>(
"chain_control_data_name")),
39 if (chain_control_system.hasChainControlData(
_data_name))
41 if (chain_control_system.hasChainControlDataOfType<Real>(
_data_name))
43 else if (chain_control_system.hasChainControlDataOfType<
bool>(
_data_name))
47 "The chain control data '",
_data_name,
"' exists but is not of type 'Real' or 'bool'.");
70 mooseAssert(
_bool_data,
"This point should not be reachable.");
registerMooseObject("MooseApp", ChainControlDataPostprocessor)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Gets a Real or bool chain control value.
static InputParameters validParams()
const std::string & _data_name
Chain control data name.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
ChainControlDataPostprocessor(const InputParameters ¶meters)
virtual void execute() override
Execute method.
const ChainControlData< bool > * _bool_data
Chain control data if it has type 'bool'.
const ChainControlData< Real > * _real_data
Chain control data if it has type 'Real'.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
ChainControlDataSystem & getChainControlDataSystem()
Gets the system that manages the ChainControls.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.