---
url: /dyad/stable/stdlib/ThermalComponents/components/Sources.FixedHeatFlow.md
description: >-
  Dyad Sources.FixedHeatFlow docs.  Fixed heat flow boundary condition,
  potentially temperature-dependent.
---

# `Sources.FixedHeatFlow` {#Sources.FixedHeatFlow}

Fixed heat flow boundary condition, potentially temperature-dependent.

This component represents a thermal boundary condition where a specific amount of heat flow rate is exchanged with a connected component through its single thermal port (`port`). The primary heat flow is determined by the parameter `Q_flow`. If `Q_flow` is positive, heat is supplied to the external system. An optional linear temperature dependency can be introduced using the parameter `alpha` (LinearTemperatureCoefficient) and `T_ref` (ReferenceTemperature). The heat flow `Q_{port}` at the port is defined by the equation:

$$Q\_{port} = -Q\_{flow} \cdot (1 + \alpha \cdot (T\_{port} - T\_{ref}))$$

where `Q_flow` is the specified heat flow rate parameter, `\alpha` is the temperature coefficient,  `T_{port}` is the temperature at the port (`port.T`), and `T_{ref}` is the reference temperature.

## Usage {#Usage}

`ThermalComponents.Sources.FixedHeatFlow(Q_flow, T_ref=293.15, alpha=0.0)`

## Parameters: {#Parameters:}

|     Name |                                                                                    Description | Units | Default value |
| --------:| ----------------------------------------------------------------------------------------------:| -----:| -------------:|
| `Q_flow` | Base heat flow rate injected at the port (positive for heat flowing into the connected system) |     W |               |
|  `T_ref` |                                      Reference temperature for temperature-dependent heat flow |     K |        293.15 |
|  `alpha` |               Linear temperature coefficient for heat flow rate dependency on port temperature |   1/K |           0.0 |

## Connectors {#Connectors}

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

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{port.Q_flow}\left( t \right) &=  - \mathtt{Q_flow} ~ \left( 1 + \left(  - \mathtt{T_ref} + \mathtt{port.T}\left( t \right) \right) ~ \mathtt{alpha} \right)
\end{align}
$$

## Source {#Source}

````dyad
"""
Fixed heat flow boundary condition, potentially temperature-dependent.

This component represents a thermal boundary condition where a specific amount of
heat flow rate is exchanged with a connected component through its single thermal port (`port`).
The primary heat flow is determined by the parameter `Q_flow`. If `Q_flow` is positive,
heat is supplied to the external system. An optional linear temperature dependency
can be introduced using the parameter `alpha` (LinearTemperatureCoefficient) and
`T_ref` (ReferenceTemperature).
The heat flow `Q_{port}` at the port is defined by the equation:
```math
Q_{port} = -Q_{flow} \cdot (1 + \alpha \cdot (T_{port} - T_{ref}))
```
where `Q_flow` is the specified heat flow rate parameter, `\alpha` is the temperature
coefficient,  `T_{port}` is the temperature at the port (`port.T`), and `T_{ref}`
is the reference temperature.
"""
component FixedHeatFlow
  "Thermal port for connecting to other thermal components"
  port = HeatPort() {
    "Dyad": {
      "placement": {"icon": {"iconName": "port_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  "Base heat flow rate injected at the port (positive for heat flowing into the connected system)"
  parameter Q_flow::HeatFlowRate
  "Reference temperature for temperature-dependent heat flow"
  parameter T_ref::Temperature = 293.15
  "Linear temperature coefficient for heat flow rate dependency on port temperature"
  parameter alpha::LinearTemperatureCoefficient = 0.0
relations
  port.Q_flow = -Q_flow * (1 + alpha * (port.T - T_ref))
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/FixedHeatFlow.svg"}
  }
}
end
````

````dyad
"""
Fixed heat flow boundary condition, potentially temperature-dependent.

This component represents a thermal boundary condition where a specific amount of
heat flow rate is exchanged with a connected component through its single thermal port (`port`).
The primary heat flow is determined by the parameter `Q_flow`. If `Q_flow` is positive,
heat is supplied to the external system. An optional linear temperature dependency
can be introduced using the parameter `alpha` (LinearTemperatureCoefficient) and
`T_ref` (ReferenceTemperature).
The heat flow `Q_{port}` at the port is defined by the equation:
```math
Q_{port} = -Q_{flow} \cdot (1 + \alpha \cdot (T_{port} - T_{ref}))
```
where `Q_flow` is the specified heat flow rate parameter, `\alpha` is the temperature
coefficient,  `T_{port}` is the temperature at the port (`port.T`), and `T_{ref}`
is the reference temperature.
"""
component FixedHeatFlow
  "Thermal port for connecting to other thermal components"
  port = HeatPort() {
    "Dyad": {
      "placement": {"icon": {"iconName": "port_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  "Base heat flow rate injected at the port (positive for heat flowing into the connected system)"
  parameter Q_flow::HeatFlowRate
  "Reference temperature for temperature-dependent heat flow"
  parameter T_ref::Temperature = 293.15
  "Linear temperature coefficient for heat flow rate dependency on port temperature"
  parameter alpha::LinearTemperatureCoefficient = 0.0
relations
  port.Q_flow = -Q_flow * (1 + alpha * (port.T - T_ref))
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/FixedHeatFlow.svg"}
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
