This component defines the interface for models that transports a fluid between two ports. It is similar to Modelica.Fluid.Interfaces.PartialTwoPortTransport, but it does not include the species balance
port_b.Xi_outflow = inStream(port_a.Xi_outflow);
Thus, it can be used as a base class for a heat and mass transfer component
The model is used by other models in this package that add heat transfer, mass transfer and pressure drop equations. See for example IBPSA.Fluid.Interfaces.StaticTwoPortHeatMassExchanger.
m_flow_start
to avoid
a name clash with
IBPSA.Fluid.Movers.FlowControlled_m_flow
which leads to an error as the definition were different,
and also renamed protected parameter dp_start
.
This is for
#552
import Modelica.Constants;
statement.
homotopyInitialization
as it is no longer used in this model.
sta_a
and sta_b
,
removed the branch that uses the homotopy operator.
The rational is that these variables are conditionally enables (because
of ... if show_T
). Therefore, the Modelica Language Specification
does not allow for these variables to be used in any equation. Hence,
the use of the homotopy operator is not needed here.
noEvent
to the computation of the states at the port.
This is correct, because the states are only used for reporting, but not
to compute any other variable.
Use of the states to compute other variables would violate the Modelica
language, as conditionally removed variables must not be used in any equation.
V_flow
and removed the parameter
show_V_flow
.
The reason is that the computation of V_flow
required
the use of sta_a
(to compute the density),
but sta_a
is also a variable that is conditionally
enabled. However, this was not correct Modelica syntax as conditional variables
can only be used in a connect
statement, not in an assignment. Dymola 2014 FD01 beta3 is checking
for this incorrect syntax. Hence, V_flow
was removed as its
conditional implementation would require a rather cumbersome implementation
that uses a new connector that carries the state of the medium.
dp
because it causes some problem with PyFMI.
sta_a
to also
compute the state at the inlet port if show_V_flow=true
.
The previous implementation resulted in a translation error
if show_V_flow=true
, but worked correctly otherwise
because the erroneous function call is removed if show_V_flow=false
.
homotopy
operator.
system.p_start
to Medium.p_default
since HVAC models may have water and
air, which are typically at different pressures.
C
and mC_flow
.