18 params.
addRequiredParam<std::string>(
"input",
"The name of the control data that we read in.");
20 "The name of the control data with the set point.");
26 "Integral Derivative logic on the 'value' control data to set it.");
32 _value(getControlData<
Real>(
"input")),
33 _set_point(getControlData<
Real>(
"set_point")),
34 _K_p(getParam<
Real>(
"K_p")),
35 _K_i(getParam<
Real>(
"K_i")),
36 _K_d(getParam<
Real>(
"K_d")),
37 _output(declareComponentControlData<
Real>(
"output")),
38 _initial_value(getParam<
Real>(
"initial_value")),
39 _integral(declareComponentControlData<
Real>(
"integral")),
40 _integral_old(getComponentControlDataOld<
Real>(
"integral")),
41 _error(declareComponentControlData<
Real>(
"error")),
42 _error_old(getComponentControlDataOld<
Real>(
"error"))
static InputParameters validParams()
const Real & _K_d
The coefficient for the derivative term.
Real & _output
The output computed by the PID controller.
const Real & _integral_old
The old value of _integral.
registerMooseObject("ThermalHydraulicsApp", PIDControl)
static InputParameters validParams()
const Real & _initial_value
Initial value.
const Real & _K_i
The coefficient for the integral term.
const Real & _value
input data
Real & _integral
The integral value accumulated over time.
const Real & _set_point
set point
const Real & _error_old
The old value of the error.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
PIDControl(const InputParameters ¶meters)
Real & _error
The current value of the error.
This block represents a proportional-integral-derivative controller (PID controller).
const Real & _K_p
The coefficient for the proportional term.