modelPartialEightPortInterface

Partial model with eight ports and declaration of quantities that are used by many models

Extends from Buildings.Fluid.Interfaces.EightPort (Partial model with eight ports).

Information

This component defines the interface for models with eight fluid ports and four fluid streams. It is similar to Buildings.Fluid.Interfaces.PartialTwoPortInterface, but it has eight ports instead of two.

The model is used by other models in this package that add heat transfer, mass transfer and pressure drop equations.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal1 (from EightPort)true= true to allow flow reversal in medium 1, false restricts to design direction (port_a -> port_b)
BooleanallowFlowReversal2 (from EightPort)true= true to allow flow reversal in medium 2, false restricts to design direction (port_a -> port_b)
BooleanallowFlowReversal3 (from EightPort)true= true to allow flow reversal in medium 3, false restricts to design direction (port_a -> port_b)
BooleanallowFlowReversal4 (from EightPort)true= true to allow flow reversal in medium 4, false restricts to design direction (port_a -> port_b)
Advanced › Initialization
Modelica.Units.SI.SpecificEnthalpyh_outflow_a1_start (from EightPort)Medium1.h_defaultStart value for enthalpy flowing out of port a1
Modelica.Units.SI.SpecificEnthalpyh_outflow_b1_start (from EightPort)Medium1.h_defaultStart value for enthalpy flowing out of port b1
Modelica.Units.SI.SpecificEnthalpyh_outflow_a2_start (from EightPort)Medium2.h_defaultStart value for enthalpy flowing out of port a2
Modelica.Units.SI.SpecificEnthalpyh_outflow_b2_start (from EightPort)Medium2.h_defaultStart value for enthalpy flowing out of port b2
Modelica.Units.SI.SpecificEnthalpyh_outflow_a3_start (from EightPort)Medium3.h_defaultStart value for enthalpy flowing out of port a1
Modelica.Units.SI.SpecificEnthalpyh_outflow_b3_start (from EightPort)Medium3.h_defaultStart value for enthalpy flowing out of port b1
Modelica.Units.SI.SpecificEnthalpyh_outflow_a4_start (from EightPort)Medium4.h_defaultStart value for enthalpy flowing out of port a1
Modelica.Units.SI.SpecificEnthalpyh_outflow_b4_start (from EightPort)Medium4.h_defaultStart value for enthalpy flowing out of port b1
Nominal condition
Modelica.Units.SI.MassFlowRatem1_flow_nominalNominal mass flow rate
Modelica.Units.SI.MassFlowRatem2_flow_nominalNominal mass flow rate
Modelica.Units.SI.MassFlowRatem3_flow_nominalNominal mass flow rate
Modelica.Units.SI.MassFlowRatem4_flow_nominalNominal mass flow rate
Advanced
Medium1.MassFlowRatem1_flow_small1E-4*abs(m1_flow_nominal)Small mass flow rate for regularization of zero flow
Medium2.MassFlowRatem2_flow_small1E-4*abs(m2_flow_nominal)Small mass flow rate for regularization of zero flow
Medium3.MassFlowRatem3_flow_small1E-4*abs(m3_flow_nominal)Small mass flow rate for regularization of zero flow
Medium4.MassFlowRatem4_flow_small1E-4*abs(m4_flow_nominal)Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_Tfalse= true, if actual temperature at port is computed

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1 (from EightPort)Fluid connector a1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_bport_b1 (from EightPort)Fluid connector b1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_aport_a2 (from EightPort)Fluid connector a2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Fluid.Interfaces.FluidPort_bport_b2 (from EightPort)Fluid connector b2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Fluid.Interfaces.FluidPort_aport_a3 (from EightPort)Fluid connector a1 (positive design flow direction is from port_a3 to port_b3)
Modelica.Fluid.Interfaces.FluidPort_bport_b3 (from EightPort)Fluid connector b2 (positive design flow direction is from port_a3 to port_b3)
Modelica.Fluid.Interfaces.FluidPort_aport_a4 (from EightPort)Fluid connector a1 (positive design flow direction is from port_a4 to port_b4)
Modelica.Fluid.Interfaces.FluidPort_bport_b4 (from EightPort)Fluid connector b2 (positive design flow direction is from port_a4 to port_b4)

Components

TypeNameDefaultDescription
Medium1.MassFlowRatem1_flowport_a1.m_flowMass flow rate from port_a1 to port_b1 (m1_flow > 0 is design flow direction)
Modelica.Units.SI.Pressuredp1port_a1.p - port_b1.pPressure difference between port_a1 and port_b1
Medium2.MassFlowRatem2_flowport_a2.m_flowMass flow rate from port_a2 to port_b2 (m2_flow > 0 is design flow direction)
Modelica.Units.SI.Pressuredp2port_a2.p - port_b2.pPressure difference between port_a2 and port_b2
Medium3.MassFlowRatem3_flowport_a3.m_flowMass flow rate from port_a3 to port_b3 (m3_flow > 0 is design flow direction)
Modelica.Units.SI.Pressuredp3port_a3.p - port_b3.pPressure difference between port_a3 and port_b3
Medium4.MassFlowRatem4_flowport_a4.m_flowMass flow rate from port_a4 to port_b4 (m4_flow > 0 is design flow direction)
Modelica.Units.SI.Pressuredp4port_a4.p - port_b4.pPressure difference between port_a4 and port_b4
Medium1.ThermodynamicStatesta_a1if allowFlowReversal1 then Medium1.setState_phX(port_a1.p, noEvent(actualStream(port_a1.h_outflow)), noEvent(actualStream(port_a1.Xi_outflow))) else Medium1.setState_phX(port_a1.p, inStream(port_a1.h_outflow), inStream(port_a1.Xi_outflow))Medium properties in port_a1
Medium1.ThermodynamicStatesta_b1if allowFlowReversal1 then Medium1.setState_phX(port_b1.p, noEvent(actualStream(port_b1.h_outflow)), noEvent(actualStream(port_b1.Xi_outflow))) else Medium1.setState_phX(port_b1.p, port_b1.h_outflow, port_b1.Xi_outflow)Medium properties in port_b1
Medium2.ThermodynamicStatesta_a2if allowFlowReversal2 then Medium2.setState_phX(port_a2.p, noEvent(actualStream(port_a2.h_outflow)), noEvent(actualStream(port_a2.Xi_outflow))) else Medium2.setState_phX(port_a2.p, inStream(port_a2.h_outflow), inStream(port_a2.Xi_outflow))Medium properties in port_a2
Medium2.ThermodynamicStatesta_b2if allowFlowReversal2 then Medium2.setState_phX(port_b2.p, noEvent(actualStream(port_b2.h_outflow)), noEvent(actualStream(port_b2.Xi_outflow))) else Medium2.setState_phX(port_b2.p, port_b2.h_outflow, port_b2.Xi_outflow)Medium properties in port_b2
Medium3.ThermodynamicStatesta_a3if allowFlowReversal3 then Medium3.setState_phX(port_a3.p, noEvent(actualStream(port_a3.h_outflow)), noEvent(actualStream(port_a3.Xi_outflow))) else Medium3.setState_phX(port_a3.p, inStream(port_a3.h_outflow), inStream(port_a3.Xi_outflow))Medium properties in port_a3
Medium3.ThermodynamicStatesta_b3if allowFlowReversal3 then Medium3.setState_phX(port_b3.p, noEvent(actualStream(port_b3.h_outflow)), noEvent(actualStream(port_b3.Xi_outflow))) else Medium3.setState_phX(port_b3.p, port_b3.h_outflow, port_b3.Xi_outflow)Medium properties in port_b3
Medium4.ThermodynamicStatesta_a4if allowFlowReversal4 then Medium4.setState_phX(port_a4.p, noEvent(actualStream(port_a4.h_outflow)), noEvent(actualStream(port_a4.Xi_outflow))) else Medium4.setState_phX(port_a4.p, inStream(port_a4.h_outflow), inStream(port_a4.Xi_outflow))Medium properties in port_a4
Medium4.ThermodynamicStatesta_b4if allowFlowReversal4 then Medium4.setState_phX(port_b4.p, noEvent(actualStream(port_b4.h_outflow)), noEvent(actualStream(port_b4.Xi_outflow))) else Medium4.setState_phX(port_b4.p, port_b4.h_outflow, port_b4.Xi_outflow)Medium properties in port_b4

Revisions

  • September 22, 2023, by Michael Wetter:
    Improved documentation.
    This is for IBPSA, #1796.
  • February 3, 2022, by Michael Wetter:
    If allowFlowReversal==false, removed noEvent() declaration for sta_a and for sta_b because the variable is either already used with inStream() in the computation of state_*_inflow, or the result of a variable of the model that already may generate an event.
    This is for IBPSA, #1578.
  • February 2, 2022, by Hongxiang Fu:
    If allowFlowReversal==false, replaced actualStream() with inStream() for sta_a and removed actualStream() for sta_b.
    This is for IBPSA, #1578.
  • March 30, 2021, by Michael Wetter:
    Added annotation HideResult=true.
    This is for IBPSA, #1459.
  • July 12, 2019, by Michael Wetter:
    Corrected wrong medium in declaration of m4_flow.
  • July 2014, by Damien Picard:
    First implementation.