This component transports fluid between its two ports, without
storing mass or energy. Energy may be exchanged with the
environment though, e.g., in the form of work.
PartialTwoPortTransport
is intended as base class for
devices like orifices, valves and simple fluid machines.
Three equations need to be added by an extending class using this component:
dp
and the mass flow rate
m_flow
,port_b.h_outflow
for flow in design direction,
andport_a.h_outflow
for flow in reverse
direction.Moreover appropriate values shall be assigned to the following parameters:
dp_start
for a guess of the pressure dropm_flow_small
for regularization of zero flow.This is similar to Modelica.Fluid.Interfaces.PartialTwoPortTransport
except that it does not use the outer system
declaration. This declaration is omitted as in building energy
simulation, many models use multiple media, and in practice, users
have not used this global definition to assign parameters.
HideResult=true
.port_a_exposesState
and port_b_exposesState
in base class. This is for
#351.port_a.Xi_outflow
and port_a.C_outflow
when allowFlowReversal=false
. This is for #305.state_a
and
state_b
, as they were used outside of a connect
statement, which causes an error during pedantic model check in
Dymola 2016. This fixes #128.state_a
and state_p
conditional on show_T
or show_V_flow
.
This avoids computing temperature from enthalpy if temperature is a
state of the medium, and the result is not used.