modelPartialFourPort

Partial model with four ports

Information

This model defines an interface for components with four ports. The parameters allowFlowReversal1 and allowFlowReversal2 may be used by models that extend this model to treat flow reversal.

This model is identical to Modelica.Fluid.Interfaces.PartialTwoPort, except for the fowllowing:

  1. it has four ports, and
  2. the parameters port_a_exposesState, port_b_exposesState and showDesignFlowDirection are not implemented.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal1true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 1
BooleanallowFlowReversal2true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 2

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1Fluid connector a1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_bport_b1Fluid connector b1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_aport_a2Fluid connector a2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Fluid.Interfaces.FluidPort_bport_b2Fluid connector b2 (positive design flow direction is from port_a2 to port_b2)

Contents

NameDescription
Medium1Medium 1 in the component
Medium2Medium 2 in the component

Revisions

  • August 27, 2024, by Jianjun Hu:
    Corrected dropdown media choice. See IBPSA #1924.
  • April 6, 2020, by Filip Jorissen:
    Added arrows to the icon indicating the intended flow direction when allowFlowReversal=false. See IBPSA #1336.
  • January 18, 2019, by Jianjun Hu:
    Limited the media choice. See IBPSA #1050.
  • July 8, 2018, by Filip Jorissen:
    Added nominal value of h_outflow in FluidPorts. See IBPSA #977.
  • November 12, 2015, by Michael Wetter:
    Renamed model from FourPort to PartialFourPort. Removed parameters h_outflow_a1_start, h_outflow_b1_start, h_outflow_a2_start and h_outflow_b2_start. This is for issue IBPSA #299.
  • October 30, 2015, by Matthis Thorade:
    Added partial keyword to model declaration.
  • October 6, 2014, by Michael Wetter:
    Changed medium declaration in ports to be final.
  • October 3, 2014, by Michael Wetter:
    Changed assignment of nominal value to avoid in OpenModelica the warning alias set with different nominal values.
  • November 12, 2013, by Michael Wetter:
    Removed import Modelica.Constants statement.
  • September 26, 2013 by Michael Wetter:
    Added missing each keyword in declaration of nominal value for Xi_outflow.
  • September 17, 2010 by Michael Wetter:
    Fixed bug: The start value for port_b1.h_outflow was set to h_outflow_b2_start instead of h_outflow_b1_start.
  • February 26, 2010 by Michael Wetter:
    Added start values for outflowing enthalpy because they are often iteration variables in nonlinear equation systems.