- componentThe name of the component to be controlled.
C++ Type:std::string
Controllable:No
Description:The name of the component to be controlled.
- parameterThe name of the parameter in the component to be controlled.
C++ Type:std::string
Controllable:No
Description:The name of the parameter in the component to be controlled.
- valueThe name of control data to be set in the component.
C++ Type:std::string
Controllable:No
Description:The name of control data to be set in the component.
SetComponentRealValueControl
Control to set a floating point (Real) value of a component parameter with control data boolean
ControlData is only defined by the thermal hydraulics module control logic.
Example input syntax
In this example, the T0
parameter of the inlet
component using the value
ControlData of the T_inlet_fn
ControlLogic.
[Components<<<{"href": "../../syntax/Components/index.html"}>>>]
[pipe1]
type = FlowChannel1Phase<<<{"description": "1-phase 1D flow channel", "href": "../components/FlowChannel1Phase.html"}>>>
fp<<<{"description": "Fluid properties user object"}>>> = fp
position<<<{"description": "Start position of axis in 3-D space [m]"}>>> = '0 0 0'
orientation<<<{"description": "Direction of flow channel from start position to end position (no need to normalize). For curved flow channels, it is the (tangent) direction at the start position."}>>> = '1 0 0'
length<<<{"description": "Length of each axial section [m]"}>>> = 15.0
n_elems<<<{"description": "Number of elements in each axial section"}>>> = 10
A<<<{"description": "Area of the flow channel, can be a constant or a function"}>>> = 0.01
D_h<<<{"description": "Hydraulic diameter [m]"}>>> = 0.1
f<<<{"description": "Wall friction factor [-]"}>>> = 0.01
[]
[inlet]
type = InletStagnationPressureTemperature1Phase<<<{"description": "Boundary condition with prescribed stagnation pressure and temperature for 1-phase flow channels.", "href": "../components/InletStagnationPressureTemperature1Phase.html"}>>>
input<<<{"description": "Name of the input"}>>> = 'pipe1:in'
p0<<<{"description": "Prescribed stagnation pressure [Pa]"}>>> = 100.e3
T0<<<{"description": "Prescribed stagnation temperature [K]"}>>> = 350.
[]
[outlet]
type = Outlet1Phase<<<{"description": "Boundary condition with prescribed pressure for 1-phase flow channels.", "href": "../components/Outlet1Phase.html"}>>>
input<<<{"description": "Name of the input"}>>> = 'pipe1:out'
p<<<{"description": "Prescribed pressure [Pa]"}>>> = 100.0e3
[]
[]
[ControlLogic<<<{"href": "../../syntax/ControlLogic/index.html"}>>>]
[T_inlet_fn]
type = GetFunctionValueControl<<<{"description": "Sets a ControlData named 'value' with the value of a function", "href": "GetFunctionValueControl.html"}>>>
function<<<{"description": "The name of the function prescribing a value."}>>> = T0_fn
[]
[set_inlet_value]
type = SetComponentRealValueControl<<<{"description": "Control to set a floating point (Real) value of a component parameter with control data boolean", "href": "SetComponentRealValueControl.html"}>>>
component<<<{"description": "The name of the component to be controlled."}>>> = inlet
parameter<<<{"description": "The name of the parameter in the component to be controlled."}>>> = T0
value<<<{"description": "The name of control data to be set in the component."}>>> = T_inlet_fn:value
[]
[]
(moose/modules/thermal_hydraulics/test/tests/controls/set_component_real_value_control/test.i)Input Parameters
- depends_onThe Controls that this control relies upon (i.e. must execute before this one)
C++ Type:std::vector<std::string>
Controllable:No
Description:The Controls that this control relies upon (i.e. must execute before this one)
Optional Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector<std::string>
Controllable:No
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Controllable:No
Description:Set the enabled status of the MooseObject.
- implicitTrueDetermines whether this object is calculated using an implicit or explicit form
Default:True
C++ Type:bool
Controllable:No
Description:Determines whether this object is calculated using an implicit or explicit form