Partial model for flow resistances with three ports such as a flow mixer/splitter or a three way valve.
If energyDynamics ≠ Modelica.Fluid.Types.Dynamics.SteadyState
,
then at the junction of the three flows,
a mixing volume will be present. This will introduce a dynamic energy and momentum
balance, which often breaks algebraic loops.
The time constant of the mixing volume is determined by the parameter tau
.
final massDynamics=energyDynamics
.verifyFlowReversal=true
and portFlowDirection<>Bidirectional
.
See #1327.
verifyFlowReversal=true
and portFlowDirection<>Bidirectional
.
See #963.
h_outflow
in FluidPorts
.
See #977.
portFlowDirection
.
Added asserts that verify the consistency of
the values of portFlowDirection
.
See #902.
vol
, and added the conditional connnector
port_internal
.
This was already done when the parameter dynamicBalance
was present, but
was updated wrong when this parameter was removed.
Without these conditional components, the regression test for
AixLib.Fluid.Examples.ResistanceVolumeFlowReversal
fails to simulate.
redeclare final package Medium=Medium
as this is required for OpenModelica.
This is for
https://github.com/lbl-srg/modelica-buildings/issues/475.
dynamicBalance
as parameter for massDynamics
and energyDynamics
.
system.p_start
or (code T_start
)
to Medium.p_default
.
mC_flow
.