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.");
static InputParameters validParams()
virtual void execute() override
Execute method.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
ChainControlDataPostprocessor(const InputParameters ¶meters)
static InputParameters validParams()
const ChainControlData< Real > * _real_data
Chain control data if it has type 'Real'.
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...
registerMooseObject("MooseApp", ChainControlDataPostprocessor)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
ChainControlDataSystem & getChainControlDataSystem()
Gets the system that manages the ChainControls.
Gets a Real or bool chain control value.
const ChainControlData< bool > * _bool_data
Chain control data if it has type 'bool'.
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.