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
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions | |||
| Boolean | allowFlowReversalPla (from PartialFourPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for plant-side medium |
| Boolean | allowFlowReversalRac (from PartialFourPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for rack-side medium |
| Nominal condition | |||
| Modelica.Units.SI.MassFlowRate | mPla_flow_nominal | Nominal mass flow rate | |
| Modelica.Units.SI.MassFlowRate | mRac_flow_nominal | Nominal mass flow rate | |
| Advanced | |||
| MediumPla.MassFlowRate | mPla_flow_small | 1E-4*abs(mPla_flow_nominal) | Small mass flow rate for regularization of zero flow |
| MediumRac.MassFlowRate | mRac_flow_small | 1E-4*abs(mRac_flow_nominal) | Small mass flow rate for regularization of zero flow |
| Advanced › Diagnostics | |||
| Boolean | show_T | false | = true, if actual temperature at port is computed |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_aPla (from PartialFourPort) | Fluid connector aPla (positive design flow direction is from port_aPla to port_bPla) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bPla (from PartialFourPort) | Fluid connector bPla (positive design flow direction is from port_aPla to port_bPla) | |
| Modelica.Fluid.Interfaces.FluidPort_a | port_aRac (from PartialFourPort) | Fluid connector aRac (positive design flow direction is from port_aRac to port_bRac) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bRac (from PartialFourPort) | Fluid connector bRac (positive design flow direction is from port_aRac to port_bRac) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| MediumPla.MassFlowRate | mPla_flow | port_aPla.m_flow | Mass flow rate from port_aPla to port_bPla (mPla_flow > 0 is design flow direction) |
| Modelica.Units.SI.PressureDifference | dpPla | port_aPla.p - port_bPla.p | Pressure difference between port_aPla and port_bPla |
| MediumRac.MassFlowRate | mRac_flow | port_aRac.m_flow | Mass flow rate from port_aRac to port_bRac (mRac_flow > 0 is design flow direction) |
| Modelica.Units.SI.PressureDifference | dpRac | port_aRac.p - port_bRac.p | Pressure difference between port_aRac and port_bRac |
| MediumPla.ThermodynamicState | sta_aPla | if 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.ThermodynamicState | sta_bPla | if 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.ThermodynamicState | sta_aRac | if 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.ThermodynamicState | sta_bRac | if 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.