model TemperatureSensor "Absolute temperature sensor"
extends Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.AbsoluteSensor(y(unit = "K") "Absolute temperature as output signal");
equation
medium.cp * y = flowPort.h;
annotation (
Documentation(info = "<html>\n<p>The TempreatureSensor measures the absolute temperature (Kelvin).</p>\n<p>Thermodynamic equations are defined by Partials.AbsoluteSensor.</p>\n</html>"),
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Text(
extent = {
{-30, -20},
{30, -60}},
textString = "T")}));
end TemperatureSensor;