modelPartialModularPort_b

Base model for all modular models with one inlet port and multiple outlet ports

Information

This component transports fluid between its single inlet port and multiple outlet ports, without storing mass or energy. Energy may be exchanged with the environment though, for example, in the form of work. PartialModularPort_a is intended as base class for devices like modular expansion valves that are used, for example, in modular heat pumps.

Three equations need to be added by an extending class using this component:

  • The momentum balance specifying the relationship between the pressure drops dp_i and the mass flow rates m_flow_i if these variables are introduced by the modeller
  • port_b.h_outflow_i for flow in design direction.
  • port_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 drop
  • m_flow_small for regularization of zero flow.
  • dp_nominal for nominal pressure drop.
  • m_flow_nominal for nominal mass flow rate.

Parameters

TypeNameDefaultDescription
Modular approach
IntegernPorts1Number of outlet ports
Assumptions › General
BooleanallowFlowReversaltrue= false to simplify equations, assuming, but not enforcing, no flow reversal
Advanced › Initialisation medium
Modelica.Units.SI.PressureDifferencedp_start1e5Guess value of pressure difference for subcomponents
Medium.MassFlowRatem_flow_start0.5*m_flow_nominalGuess value of m_flow = port_a.m_flow
Advanced › Numeric limitations
Modelica.Units.SI.PressureDifferencedp_nominal7.5e5Pressure drop at nominal conditions
Medium.MassFlowRatem_flow_nominal0.1Nominal mass flow rate
Medium.MassFlowRatem_flow_small1e-6*m_flow_nominalSmall mass flow rate for regularization of zero flow

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts]ports_bFluid connectors b (positive design flow direction is from port_a to port_b)

Contents

NameDescription
Medium

Revisions

  • October 16, 2017, by Mirko Engelpracht, Christian Vering:
    First implementation (see issue 457).