---
url: /dyad/stable/stdlib/ThermalComponents/components/Sources.PrescribedTemperature.md
description: >-
  Dyad Sources.PrescribedTemperature docs.  Imposes a specified temperature at a
  thermal connection point.
---

# `Sources.PrescribedTemperature` {#Sources.PrescribedTemperature}

Imposes a specified temperature at a thermal connection point.

This component establishes a thermal boundary condition where the temperature is dictated by an external input signal. It acts as an ideal thermal reservoir, capable of instantaneously providing or absorbing the necessary heat flow to maintain its connection `port` at the temperature specified by the `RealInput` `T`. The core behavior is defined by the equation $port.T = T$, where `port.T` is the temperature of the thermal port and `T` is the input signal in Kelvin.

## Usage {#Usage}

`ThermalComponents.Sources.PrescribedTemperature()`

## 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))

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

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{port.T}\left( t \right) &= T\left( t \right)
\end{align}
$$

## Source {#Source}

```dyad
"""
Imposes a specified temperature at a thermal connection point.

This component establishes a thermal boundary condition where the temperature is dictated by an external input signal.
It acts as an ideal thermal reservoir, capable of instantaneously providing or absorbing the necessary heat flow
to maintain its connection `port` at the temperature specified by the `RealInput` `T`.
The core behavior is defined by the equation $port.T = T$,
where `port.T` is the temperature of the thermal port and `T` is the input signal in Kelvin.
"""
component PrescribedTemperature
  "Thermal connection point where the temperature is prescribed."
  port = HeatPort() {
    "Dyad": {
      "placement": {"icon": {"iconName": "port_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  "External real input signal representing the prescribed temperature in Kelvin."
  T = RealInput() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
relations
  port.T = T
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/PrescribedTemperature.svg"}
  }
}
end
```

```dyad
"""
Imposes a specified temperature at a thermal connection point.

This component establishes a thermal boundary condition where the temperature is dictated by an external input signal.
It acts as an ideal thermal reservoir, capable of instantaneously providing or absorbing the necessary heat flow
to maintain its connection `port` at the temperature specified by the `RealInput` `T`.
The core behavior is defined by the equation $port.T = T$,
where `port.T` is the temperature of the thermal port and `T` is the input signal in Kelvin.
"""
component PrescribedTemperature
  "Thermal connection point where the temperature is prescribed."
  port = HeatPort() {
    "Dyad": {
      "placement": {"icon": {"iconName": "port_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  "External real input signal representing the prescribed temperature in Kelvin."
  T = RealInput() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
relations
  port.T = T
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/PrescribedTemperature.svg"}
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
