model RelPressureSensor "Pressure difference sensor"
extends Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.RelativeSensor(y(unit = "Pa", displayUnit = "bar") "Pressure difference as output signal");
equation
y = flowPort_a.p - flowPort_b.p;
annotation (
Documentation(info = "<html>\n<p>The RelPressureSensor measures the pressure drop between flowPort_a and flowPort_b.</p>\n<p>Thermodynamic equations are defined by Partials.RelativeSensor.</p>\n</html>"),
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Text(
extent = {
{-30, -20},
{30, -60}},
textString = "dp")}));
end RelPressureSensor;