modelPortAThroughPortsB

Model to connect single port port_a to fluid port bus ports_b

Extends from PartialModularPort_b (Base model for all modular models with one inlet port and multiple outlet ports).

Information

This component transports fluid between its signle inlet and multiple outlet ports, without storing mass or energy. Therefore, all inlet ports ports_a are simply connected with the outlet port port_b[i].

Implementation

This component is required to connect models extending from PartialModularPort_a or PartialModularPort_ab with, for example, boundary models prestended in AixLib.Fluid.Sources. These models are not directly connectable because the models presented in AixLib.Fluid.Sources need undefined port sizes and that does not hold for models extending from PartialModularPort_a or PartialModularPort_ab.

Parameters

TypeNameDefaultDescription
General › Modular approach
IntegernVal1Number of valves - each valve will be connected to an individual port_b
Modular approach
IntegernPorts (from PartialModularPort_b)1Number of outlet ports
Assumptions › General
BooleanallowFlowReversal (from PartialModularPort_b)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Advanced › Initialisation medium
Modelica.Units.SI.PressureDifferencedp_start (from PartialModularPort_b)1e5Guess value of pressure difference for subcomponents
Medium.MassFlowRatem_flow_start (from PartialModularPort_b)0.5*m_flow_nominalGuess value of m_flow = port_a.m_flow
Advanced › Numeric limitations
Modelica.Units.SI.PressureDifferencedp_nominal (from PartialModularPort_b)7.5e5Pressure drop at nominal conditions
Medium.MassFlowRatem_flow_nominal (from PartialModularPort_b)0.1Nominal mass flow rate
Medium.MassFlowRatem_flow_small (from PartialModularPort_b)1e-6*m_flow_nominalSmall mass flow rate for regularization of zero flow

Connectors

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

Revisions

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