RelativeTemperatureSensor
IconRelativeTemperatureSensor
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:
\[T_{rel} = node\_a.T - node\_b.T\]
Usage
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
\[ \begin{align} \mathtt{T\_rel}\left( t \right) &= - \mathtt{node\_b.T}\left( t \right) + \mathtt{node\_a.T}\left( t \right) \\ 0 &= \mathtt{node\_a.Q}\left( t \right) \\ 0 &= \mathtt{node\_b.Q}\left( t \right) \end{align} \]
Source
# 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": -100, "y1": 400, "x2": 100, "y2": 600}}
}
}]
# Second thermal connection point
node_b = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
# Relative temperature as output signal
T_rel = RealOutput() [{"Dyad": {"placement": {"icon": {"x1": 400, "y1": 900, "x2": 600, "y2": 1100}}}}]
relations
T_rel = node_a.T-node_b.T
0 = node_a.Q
0 = node_b.Q
end
Flattened Source
# 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": -100, "y1": 400, "x2": 100, "y2": 600}}
}
}]
# Second thermal connection point
node_b = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
# Relative temperature as output signal
T_rel = RealOutput() [{"Dyad": {"placement": {"icon": {"x1": 400, "y1": 900, "x2": 600, "y2": 1100}}}}]
relations
T_rel = node_a.T-node_b.T
0 = node_a.Q
0 = node_b.Q
metadata {}
end
Test Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses
- Tests