Extends from Modelica.Icons.Library2 (Icon for library where additional icon elements shall be added).
Name | Description |
---|---|
TemperatureSensor | Absolute temperature sensor in Kelvin |
RelTemperatureSensor | Relative Temperature sensor |
HeatFlowSensor | Heat flow rate sensor |
This is an ideal absolute temperature sensor which returns the temperature of the connected port in Kelvin as an output signal. The sensor itself has no thermal interaction with whatever it is connected to. Furthermore, no thermocouple-like lags are associated with this sensor model.
Type | Name | Description |
---|---|---|
output RealOutput | T | |
HeatPort_a | port |
model TemperatureSensor "Absolute temperature sensor in Kelvin"Modelica.Blocks.Interfaces.RealOutput T; Interfaces.HeatPort_a port; equation T = port.T; port.Q_flow = 0;end TemperatureSensor;
The relative temperature "port_a.T - port_b.T" is determined between the two ports of this component and is provided as output signal in Kelvin.
Extends from Modelica.Icons.TranslationalSensor (Icon representing translational measurement device).
Type | Name | Description |
---|---|---|
HeatPort_a | port_a | |
HeatPort_b | port_b | |
output RealOutput | T_rel |
model RelTemperatureSensor "Relative Temperature sensor" extends Modelica.Icons.TranslationalSensor;Interfaces.HeatPort_a port_a; Interfaces.HeatPort_b port_b; Modelica.Blocks.Interfaces.RealOutput T_rel; equation T_rel = port_a.T - port_b.T; 0 = port_a.Q_flow; 0 = port_b.Q_flow;end RelTemperatureSensor;
This model is capable of monitoring the heat flow rate flowing through this component. The sensed value of heat flow rate is the amount that passes through this sensor while keeping the temperature drop across the sensor zero. This is an ideal model so it does not absorb any energy and it has no direct effect on the thermal response of a system it is included in. The output signal is positive, if the heat flows from port_a to port_b.
Extends from Modelica.Icons.RotationalSensor (Icon representing rotational measurement device).
Type | Name | Description |
---|---|---|
output RealOutput | Q_flow | Heat flow from port_a to port_b |
HeatPort_a | port_a | |
HeatPort_b | port_b |
model HeatFlowSensor "Heat flow rate sensor" extends Modelica.Icons.RotationalSensor;Modelica.Blocks.Interfaces.RealOutput Q_flow "Heat flow from port_a to port_b"; Interfaces.HeatPort_a port_a; Interfaces.HeatPort_b port_b; equation port_a.T = port_b.T; port_a.Q_flow + port_b.Q_flow = 0; Q_flow = port_a.Q_flow;end HeatFlowSensor;