modelPartialFourPortInterface

Partial model with four ports and declaration of quantities that are used by CDU models

Extends from Buildings.Fluid.DataCenterEquipment.CDUs.BaseClasses.PartialFourPort (Partial model with four ports).

Information

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

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversalPla (from PartialFourPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal for plant-side medium
BooleanallowFlowReversalRac (from PartialFourPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal for rack-side medium
Nominal condition
Modelica.Units.SI.MassFlowRatemPla_flow_nominalNominal mass flow rate
Modelica.Units.SI.MassFlowRatemRac_flow_nominalNominal mass flow rate
Advanced
MediumPla.MassFlowRatemPla_flow_small1E-4*abs(mPla_flow_nominal)Small mass flow rate for regularization of zero flow
MediumRac.MassFlowRatemRac_flow_small1E-4*abs(mRac_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_aPla (from PartialFourPort)Fluid connector aPla (positive design flow direction is from port_aPla to port_bPla)
Modelica.Fluid.Interfaces.FluidPort_bport_bPla (from PartialFourPort)Fluid connector bPla (positive design flow direction is from port_aPla to port_bPla)
Modelica.Fluid.Interfaces.FluidPort_aport_aRac (from PartialFourPort)Fluid connector aRac (positive design flow direction is from port_aRac to port_bRac)
Modelica.Fluid.Interfaces.FluidPort_bport_bRac (from PartialFourPort)Fluid connector bRac (positive design flow direction is from port_aRac to port_bRac)

Components

TypeNameDefaultDescription
MediumPla.MassFlowRatemPla_flowport_aPla.m_flowMass flow rate from port_aPla to port_bPla (mPla_flow > 0 is design flow direction)
Modelica.Units.SI.PressureDifferencedpPlaport_aPla.p - port_bPla.pPressure difference between port_aPla and port_bPla
MediumRac.MassFlowRatemRac_flowport_aRac.m_flowMass flow rate from port_aRac to port_bRac (mRac_flow > 0 is design flow direction)
Modelica.Units.SI.PressureDifferencedpRacport_aRac.p - port_bRac.pPressure difference between port_aRac and port_bRac
MediumPla.ThermodynamicStatesta_aPlaif allowFlowReversalPla then MediumPla.setState_phX(port_aPla.p, noEvent(actualStream(port_aPla.h_outflow)), noEvent(actualStream(port_aPla.Xi_outflow))) else MediumPla.setState_phX(port_aPla.p, inStream(port_aPla.h_outflow), inStream(port_aPla.Xi_outflow))Medium properties in port_aPla
MediumPla.ThermodynamicStatesta_bPlaif allowFlowReversalPla then MediumPla.setState_phX(port_bPla.p, noEvent(actualStream(port_bPla.h_outflow)), noEvent(actualStream(port_bPla.Xi_outflow))) else MediumPla.setState_phX(port_bPla.p, port_bPla.h_outflow, port_bPla.Xi_outflow)Medium properties in port_bPla
MediumRac.ThermodynamicStatesta_aRacif allowFlowReversalRac then MediumRac.setState_phX(port_aRac.p, noEvent(actualStream(port_aRac.h_outflow)), noEvent(actualStream(port_aRac.Xi_outflow))) else MediumRac.setState_phX(port_aRac.p, inStream(port_aRac.h_outflow), inStream(port_aRac.Xi_outflow))Medium properties in port_aRac
MediumRac.ThermodynamicStatesta_bRacif allowFlowReversalRac then MediumRac.setState_phX(port_bRac.p, noEvent(actualStream(port_bRac.h_outflow)), noEvent(actualStream(port_bRac.Xi_outflow))) else MediumRac.setState_phX(port_bRac.p, port_bRac.h_outflow, port_bRac.Xi_outflow)Medium properties in port_bRac

Revisions

  • April 21, 2026, by Michael Wetter:
    First implementation.