This is a model for a differential pressure sensor that can be
enabled or disabled with the Boolean parameter have_sen
.
If disabled, the control input variable y
is removed
and the model simply consists of two fluid ports that are not connected
to each other and for which the following equations are used.
So the model must still be provided with pressure conditions
at each port.
// Zero flow equations
port_(a|b).m_flow = 0;
// No contribution of specific quantities
port_(a|b).h_outflow = 0;
port_(a|b).Xi_outflow = zeros(Medium.nXi);
port_(a|b).C_outflow = zeros(Medium.nC);