RelativeTemperatureSensor
IconRelativeTemperatureSensor
Relative temperature sensor
Usage
RelativeTemperatureSensor()
Connectors
node_a
- (Node
)node_b
- (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
# Relative temperature sensor
component RelativeTemperatureSensor
node_a = Node() [{
"JuliaSim": {
"placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}}
}
}]
node_b = Node() [{
"JuliaSim": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
# Relative temperature as output signal
T_rel = RealOutput() [{
"JuliaSim": {"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
# Relative temperature sensor component RelativeTemperatureSensor node_a = Node() [{ "JuliaSim": { "placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}} } }] node_b = Node() [{ "JuliaSim": { "placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}} } }] # Relative temperature as output signal T_rel = RealOutput() [{ "JuliaSim": {"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
Related
- Examples
- Experiments
- Analyses