Convection
Models heat transfer by convection where the thermal conductance is a signal input.
This component represents a lumped thermal element that experiences heat convection. The rate of heat transfer, Q, is determined by the product of the convective thermal conductance, Gc, and the temperature difference, ΔT, across the element. The convective thermal conductance Gc is not a fixed parameter but rather a time-varying signal input to the component. The governing equation is:
The temperature difference ΔT and the heat flow Q are typically defined in or inherited from the base class ConvectiveElement1D.
Usage
Convection()
Connectors
solid- This connector represents a thermal node with temperature and heat flow as the potential and flow variables, respectively. (Node)fluid- This connector represents a thermal node with temperature and heat flow as the potential and flow variables, respectively. (Node)Gc- 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 | Heat flow rate from the solid node to the fluid node. | W |
Behavior
using ThermalComponents #hide
using ModelingToolkit #hide
@named sys = Convection() #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source
# Models heat transfer by convection where the thermal conductance is a signal input.
#
# This component represents a lumped thermal element that experiences heat convection.
# The rate of heat transfer, `Q`, is determined by the product of the
# convective thermal conductance, `Gc`, and the temperature difference, `ΔT`,
# across the element. The convective thermal conductance `Gc` is not a fixed
# parameter but rather a time-varying signal input to the component.
# The governing equation is:
# ```math
# Q = G_c \cdot \Delta T
# ```
# The temperature difference `ΔT` and the heat flow `Q` are typically
# defined in or inherited from the base class `ConvectiveElement1D`.
component Convection
extends ConvectiveElement1D
# Signal representing the convective thermal conductance
Gc = RealInput() [{"Dyad": {"placement": {"icon": {"x1": 400, "y1": -100, "x2": 600, "y2": 100}}}}]
relations
Q = Gc*ΔT
endFlattened Source
# Models heat transfer by convection where the thermal conductance is a signal input.
#
# This component represents a lumped thermal element that experiences heat convection.
# The rate of heat transfer, `Q`, is determined by the product of the
# convective thermal conductance, `Gc`, and the temperature difference, `ΔT`,
# across the element. The convective thermal conductance `Gc` is not a fixed
# parameter but rather a time-varying signal input to the component.
# The governing equation is:
# ```math
# Q = G_c \cdot \Delta T
# ```
# The temperature difference `ΔT` and the heat flow `Q` are typically
# defined in or inherited from the base class `ConvectiveElement1D`.
component Convection
# Connector representing the solid side of the heat transfer interface.
solid = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}}
}
}]
# Connector representing the fluid side of the heat transfer interface.
fluid = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
# 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::HeatFlowRate
# Signal representing the convective thermal conductance
Gc = RealInput() [{"Dyad": {"placement": {"icon": {"x1": 400, "y1": -100, "x2": 600, "y2": 100}}}}]
relations
ΔT = solid.T-fluid.T
solid.Q = Q
fluid.Q = -Q
Q = Gc*ΔT
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses