Skip to content
RelativeTemperatureSensor.md

RelativeTemperatureSensor ​

Measures the temperature difference between two thermal nodes.

This sensor calculates the temperature difference between two connection points, node_a and node_b. It is ideal because it does not draw any heat flow from the system to which it is connected; specifically, the heat flows node_a.Q and node_b.Q are both constrained to be zero. The temperatures at these nodes are node_a.T and node_b.T. The relative temperature output T_rel is given by the equation:

Trel=node_a.T−node_b.T

Usage ​

ThermalComponents.RelativeTemperatureSensor()

Connectors ​

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

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

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

Behavior ​

T_rel(t)=−node_b.T(t)+node_a.T(t)0=node_a.Q(t)0=node_b.Q(t)

Source ​

dyad
"""
Measures the temperature difference between two thermal nodes.

This sensor calculates the temperature difference between two connection points,
`node_a` and `node_b`. It is ideal because it does not draw any
heat flow from the system to which it is connected; specifically, the heat
flows `node_a.Q` and `node_b.Q` are both constrained to be zero.
The temperatures at these nodes are `node_a.T` and `node_b.T`.
The relative temperature output `T_rel` is given by the equation:

math T_{rel} = node_a.T - node_b.T

"""
component RelativeTemperatureSensor
  "First thermal connection point"
  node_a = Node() {
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }
  "Second thermal connection point"
  node_b = Node() {
    "Dyad": {
      "placement": {"icon": {"iconName": "node_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  "Relative temperature as output signal"
  T_rel = RealOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 450, "y1": 1000, "x2": 550, "y2": 1100, "rot": 90},
        "diagram": {"iconName": "default", "x1": 450, "y1": 1000, "x2": 550, "y2": 1100, "rot": 90}
      },
      "tags": []
    }
  }
relations
  T_rel = node_a.T - node_b.T
  0 = node_a.Q
  0 = node_b.Q
metadata {
  "Dyad": {
    "labels": [
      {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
      {"label": "K", "x": 565.6, "y": 545.5, "rot": 0}
    ],
    "icons": {"default": "dyad://ThermalComponents/RelativeTemperatureSensor.svg"}
  }
}
end
Flattened Source
dyad
"""
Measures the temperature difference between two thermal nodes.

This sensor calculates the temperature difference between two connection points,
`node_a` and `node_b`. It is ideal because it does not draw any
heat flow from the system to which it is connected; specifically, the heat
flows `node_a.Q` and `node_b.Q` are both constrained to be zero.
The temperatures at these nodes are `node_a.T` and `node_b.T`.
The relative temperature output `T_rel` is given by the equation:

math T_{rel} = node_a.T - node_b.T

"""
component RelativeTemperatureSensor
  "First thermal connection point"
  node_a = Node() {
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }
  "Second thermal connection point"
  node_b = Node() {
    "Dyad": {
      "placement": {"icon": {"iconName": "node_b", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  "Relative temperature as output signal"
  T_rel = RealOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 450, "y1": 1000, "x2": 550, "y2": 1100, "rot": 90},
        "diagram": {"iconName": "default", "x1": 450, "y1": 1000, "x2": 550, "y2": 1100, "rot": 90}
      },
      "tags": []
    }
  }
relations
  T_rel = node_a.T - node_b.T
  0 = node_a.Q
  0 = node_b.Q
metadata {
  "Dyad": {
    "labels": [
      {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
      {"label": "K", "x": 565.6, "y": 545.5, "rot": 0}
    ],
    "icons": {"default": "dyad://ThermalComponents/RelativeTemperatureSensor.svg"}
  }
}
end


Test Cases ​

No test cases defined.