PMeas $—$ Pressure sensor

The PMeas component describes an ideal sensor that measures the pressure p at the port in an ideal way and provides the result as an output signal in $\mathrm{Pa}$  (to be further processed with blocks of the Modelica.Blocks library).

 Equations ${m}_{\mathrm{flow}\left(A\right)}=0$ ${p}_{\mathrm{measured}}=\left\{\begin{array}{cc}{p}_{\mathrm{display}\left(\mathrm{max}\right)}& {p}_{\mathrm{display}\left(\mathrm{max}\right)}<\mathrm{port_A.p}\\ \left\{\begin{array}{cc}{p}_{\mathrm{display}\left(\mathrm{min}\right)}& \mathrm{port_A.p}<{p}_{\mathrm{display}\left(\mathrm{min}\right)}\\ \mathrm{port_A.p}& \mathrm{otherwise}\end{array}\right\& \mathrm{otherwise}\end{array}\right\$

Connections

 Name Description Modelica ID $\mathrm{oil}$ oil ${\mathrm{port}}_{A}$ Port A, where oil flows into the component ($0, ${p}_{B}<{p}_{A}$ means $0<\mathrm{Δp}$) port_A ${p}_{\mathrm{measured}}$ Measured pressure pMeasured

Parameters

 Name Default Units Description Modelica ID ${p}_{\mathrm{display}\left(\mathrm{min}\right)}$ [1] $\mathrm{Pa}$ Minimum pressure displayed by the sensor p_display_min ${p}_{\mathrm{display}\left(\mathrm{max}\right)}$ ${10}^{15}$ $\mathrm{Pa}$ Maximum pressure displayed by the sensor p_display_max

[1] ${\mathrm{oil.p}}_{\mathrm{vapour}}-{\mathrm{oil.p}}_{\mathrm{atm}}$