103 std::string full_name =
name() +
":" + data_name;
105 return data_ptr->
set();
108 template <
typename T>
113 return data_ptr->
set();
116 template <
typename T>
120 std::string data_name = getParam<std::string>(param_name);
121 return getControlDataByName<T>(data_name);
124 template <
typename T>
128 std::string data_name = getParam<std::string>(param_name);
129 return getControlDataOldByName<T>(data_name);
132 template <
typename T>
137 if (data_ptr ==
nullptr)
140 "', but it does not exist in the system. Check your spelling.");
147 return data_ptr->
get();
150 template <
typename T>
155 if (data_ptr ==
nullptr)
158 "', but it does not exist in the system. Check your spelling.");
160 return data_ptr->
getOld();
163 template <
typename T>
167 std::string full_name =
name() +
":" + data_name;
168 return getControlDataOldByName<T>(full_name);
Specialization of FEProblem to run with component subsystem.
THMControl(const InputParameters ¶meters)
const T & getControlData(const std::string ¶m_name)
Get a reference to control data that are specified in the input parameter 'param_name'.
const std::vector< std::string > & getControlDataDependencies() const
Return the Controls that must run before this Control.
T & declareControlData(const std::string &data_name)
Declare control data with name 'data_name'.
virtual const std::string & name() const
Concrete definition of a parameter value for a specified type.
std::vector< std::string > _control_data_depends_on
A list of control data that are required to run before this control may run.
static InputParameters validParams()
const T & getControlDataOldByName(const std::string &data_name)
Get a reference to control data value from previous time step that is specified by 'data_name' name...
ControlData< T > * declareControlData(const std::string &name, THMControl *ctrl)
Declare control data of type T and name 'name', if it does not exist it will be created.
ControlData< T > * getControlData(const std::string &name)
Get control data of type T and name 'name', if it does not exist it will be created.
const T & getControlDataOld(const std::string ¶m_name)
Get a reference to control data value from a previous time step that is specified in the input parame...
void mooseError(Args &&... args) const
const InputParameters & parameters() const
T & declareComponentControlData(const std::string &data_name)
Declare control data with name 'component:data_name'.
const T & getControlDataByName(const std::string &data_name)
Get a reference to control data that are specified by 'data_name' name.
const T & getComponentControlDataOld(const std::string &data_name)
Get a reference to a component control data value from previous time step.