18 params.
addRequiredParam<std::string>(
"input",
"The name of the control data that we read in.");
20 params.
addParam<
Real>(
"initial_value", 0.,
"Initial value");
27 _initial_value(getParam<
Real>(
"initial_value")),
28 _input(getControlData<
Real>(
"input")),
29 _tau(getParam<
Real>(
"tau")),
30 _value(declareComponentControlData<
Real>(
"value")),
31 _input_time(declareRecoverableData<
std::deque<
Real>>(
"input_time")),
32 _input_vals(declareRecoverableData<
std::deque<
Real>>(
"input_vals"))
35 mooseError(
"Negative values of 'tau' are not allowed.");
70 for (
unsigned int i = 0; i + 1 <
_input_time.size(); ++i)
75 throw std::out_of_range(
"Unreachable");
const Real & _initial_value
Initial value.
void addFnPoint(const Real &t, const Real &val)
Add a node to linear interpolation.
registerMooseObject("ThermalHydraulicsApp", DelayControl)
std::deque< Real > & _input_time
Times when 'input' was sampled.
static InputParameters validParams()
const Real & _input
Input data.
static InputParameters validParams()
Real & _value
Output value.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
std::deque< Real > & _input_vals
Values of 'input' corresponding to _input_time.
DelayControl(const InputParameters ¶meters)
Real sampleFunction(const Real &t) const
Linear interpolation.