Components.ConvectiveResistor
ConvectiveResistor is 1D thermal convective element with a dynamically supplied thermal resistance.
This component models one-dimensional heat convection where the thermal resistance Rc is not a fixed parameter but is provided as an external signal input. It extends ConvectiveElement1D, which provides the thermal interface (two nodes with temperatures and heat flow) and defines the variables ΔT (temperature difference) and Q_flow (heat flow rate). The central equation governing the component's behavior is:
This equation states that the temperature difference across the component is the product of the input convective resistance R_c and the heat flow Q_flow through it. The Rc input allows for modeling scenarios where the convective heat transfer coefficient (and thus resistance) changes over time due to varying flow conditions or other factors.
This component extends from ThermalComponents.Interfaces.ConvectiveElement1D
Usage
ThermalComponents.Components.ConvectiveResistor()
Connectors
solid- This connector represents a thermal port with temperature and heat flow as the potential and flow variables, respectively. (HeatPort)fluid- This connector represents a thermal port with temperature and heat flow as the potential and flow variables, respectively. (HeatPort)Rc- This connector represents a real signal as an input to a component (RealInput)
Variables
| Name | Description | Units |
|---|---|---|
ΔT | Temperature difference across the element, defined as solid.T - fluid.T. | K |
Q_flow | Heat flow rate from the solid node to the fluid node. | W |
Behavior
Source
"""
ConvectiveResistor is 1D thermal convective element with a dynamically supplied thermal resistance.
This component models one-dimensional heat convection where the thermal resistance `Rc`
is not a fixed parameter but is provided as an external signal input. It extends
`ConvectiveElement1D`, which provides the thermal interface (two nodes with
temperatures and heat flow) and defines the variables `ΔT` (temperature difference)
and `Q_flow` (heat flow rate). The central equation governing the component's behavior is:math \Delta T = R_c Q_
This equation states that the temperature difference across the component is the product
of the input convective resistance `R_c` and the heat flow `Q_flow` through it.
The `Rc` input allows for modeling scenarios where the convective heat transfer
coefficient (and thus resistance) changes over time due to varying flow conditions or other factors.
"""
component ConvectiveResistor
extends ThermalComponents.Interfaces.ConvectiveElement1D
"Signal representing the convective thermal resistance"
Rc = RealInput() {
"Dyad": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50, "rot": 90}}}
}
relations
ΔT = Rc * Q_flow
metadata {
"Dyad": {
"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://ThermalComponents/ConvectiveResistor.svg"}
}
}
endFlattened Source
"""
ConvectiveResistor is 1D thermal convective element with a dynamically supplied thermal resistance.
This component models one-dimensional heat convection where the thermal resistance `Rc`
is not a fixed parameter but is provided as an external signal input. It extends
`ConvectiveElement1D`, which provides the thermal interface (two nodes with
temperatures and heat flow) and defines the variables `ΔT` (temperature difference)
and `Q_flow` (heat flow rate). The central equation governing the component's behavior is:math \Delta T = R_c Q_
This equation states that the temperature difference across the component is the product
of the input convective resistance `R_c` and the heat flow `Q_flow` through it.
The `Rc` input allows for modeling scenarios where the convective heat transfer
coefficient (and thus resistance) changes over time due to varying flow conditions or other factors.
"""
component ConvectiveResistor
"Connector representing the solid side of the heat transfer interface."
solid = HeatPort() {
"Dyad": {
"placement": {"icon": {"iconName": "heat_port_a", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
}
}
"Connector representing the fluid side of the heat transfer interface."
fluid = HeatPort() {
"Dyad": {
"placement": {
"icon": {"iconName": "heat_port_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}
}
}
}
"Temperature difference across the element, defined as solid.T - fluid.T."
variable ΔT::Temperature
"Heat flow rate from the solid node to the fluid node."
variable Q_flow::HeatFlowRate
"Signal representing the convective thermal resistance"
Rc = RealInput() {
"Dyad": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50, "rot": 90}}}
}
relations
ΔT = solid.T - fluid.T
solid.Q_flow = Q_flow
fluid.Q_flow = -Q_flow
ΔT = Rc * Q_flow
metadata {
"Dyad": {
"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://ThermalComponents/ConvectiveResistor.svg"}
}
}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses