Skip to content
TemperatureSensor.md

TemperatureSensor ​

Measures the absolute temperature at a thermal node.

This component represents an ideal sensor that measures the absolute temperature from a thermal Node. The temperature at the node is directly provided as a RealOutput signal. The sensor is considered ideal because it imposes no thermal load on the system it is connected to, which is enforced by the equation node.Q = 0. The output temperature T is thus defined as:

T=node.T

And the heat flow at the node is:

node.Q=0

Usage ​

ThermalComponents.TemperatureSensor()

Connectors ​

  • node - This connector represents a thermal node with temperature and heat flow as the potential and flow variables, respectively. (Node)

  • T - This connector represents a real signal as an output from a component (RealOutput)

Behavior ​

T(t)=node.T(t)node.Q(t)=0

Source ​

dyad
"""
Measures the absolute temperature at a thermal node.

This component represents an ideal sensor that measures the absolute temperature
from a thermal `Node`. The temperature at the `node` is directly provided as
a `RealOutput` signal. The sensor is considered ideal because it imposes no
thermal load on the system it is connected to, which is enforced by the
equation `node.Q = 0`. The output temperature `T` is thus defined as:

math T = node.T

And the heat flow at the node is:

math node.Q = 0

"""
component TemperatureSensor
  "Thermal connection point from which temperature is measured"
  node = Node() {
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }
  "Output signal representing the measured absolute temperature"
  T = RealOutput() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
relations
  T = node.T
  node.Q = 0
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/TemperatureSensor.svg"}
  }
}
end
Flattened Source
dyad
"""
Measures the absolute temperature at a thermal node.

This component represents an ideal sensor that measures the absolute temperature
from a thermal `Node`. The temperature at the `node` is directly provided as
a `RealOutput` signal. The sensor is considered ideal because it imposes no
thermal load on the system it is connected to, which is enforced by the
equation `node.Q = 0`. The output temperature `T` is thus defined as:

math T = node.T

And the heat flow at the node is:

math node.Q = 0

"""
component TemperatureSensor
  "Thermal connection point from which temperature is measured"
  node = Node() {
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }
  "Output signal representing the measured absolute temperature"
  T = RealOutput() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
relations
  T = node.T
  node.Q = 0
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://ThermalComponents/TemperatureSensor.svg"}
  }
}
end


Test Cases ​

No test cases defined.