---
url: /dyad/stable/stdlib/ThermalComponents/components/Components.Convection.md
description: >-
  Dyad Components.Convection docs.  Models heat transfer by convection where the
  thermal conductance is a signal input.
---

# `Components.Convection` {#Components.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_flow`, 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:

$$Q\_{flow} = G_c \cdot \Delta T$$

The temperature difference `ΔT` and the heat flow `Q_flow` are typically defined in or inherited from the base class `ConvectiveElement1D`.

This component extends from [`ThermalComponents.Interfaces.ConvectiveElement1D`](../types/Interfaces.ConvectiveElement1D.md)

## Usage {#Usage}

`ThermalComponents.Components.Convection()`

## Connectors {#Connectors}

* `solid` - This connector represents a thermal port with temperature and heat flow as the potential and flow variables, respectively. ([`HeatPort`](/stdlib/Dyad/connectors/HeatPort#HeatPort))

* `fluid` - This connector represents a thermal port with temperature and heat flow as the potential and flow variables, respectively. ([`HeatPort`](/stdlib/Dyad/connectors/HeatPort#HeatPort))

* `Gc` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

## Variables {#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 {#Behavior}

$$ \begin{align}
\mathtt{{\Delta}T}\left( t \right) &=  - \mathtt{fluid.T}\left( t \right) + \mathtt{solid.T}\left( t \right) \\
\mathtt{solid.Q_flow}\left( t \right) &= \mathtt{Q_flow}\left( t \right) \\
\mathtt{fluid.Q_flow}\left( t \right) &=  - \mathtt{Q_flow}\left( t \right) \\
\mathtt{Q_flow}\left( t \right) &= \mathtt{Gc}\left( t \right) ~ \mathtt{{\Delta}T}\left( t \right)
\end{align}
$$

## Source {#Source}

````dyad
"""
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_flow`, 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_{flow} = G_c \cdot \Delta T
```
The temperature difference `ΔT` and the heat flow `Q_flow` are typically
defined in or inherited from the base class `ConvectiveElement1D`.
"""
component Convection
  extends ThermalComponents.Interfaces.ConvectiveElement1D
  "Signal representing the convective thermal conductance"
  Gc = RealInput() {
    "Dyad": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50, "rot": 90}}}
  }
relations
  Q_flow = Gc * ΔT
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/Convection.svg"}
  }
}
end
````

````dyad
"""
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_flow`, 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_{flow} = G_c \cdot \Delta T
```
The temperature difference `ΔT` and the heat flow `Q_flow` are typically
defined in or inherited from the base class `ConvectiveElement1D`.
"""
component Convection
  "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 conductance"
  Gc = 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
  Q_flow = Gc * ΔT
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/Convection.svg"}
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
