modelTableData2DLoadDepSHC

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model validates the hydronics and built-in control logic of Buildings.Fluid.HeatPumps.ModularReversible.TableData2DLoadDepSHC.

The model represents a three-module system where the HW and CHW isolation valves are modeled using an equivalent actuator. The actuator model represents the parallel network of the modules' condenser or evaporator barrels in series with the HW or CHW isolation valves. It is parameterized with the flow characteristics calculated by the heat pump model, and controlled by the output variables provided by this model. The heat pump operating mode switches between simultaneous heating and cooling, heating only, and cooling only. The on/off command starts as true and is switched to false at the end.

While the heat pump component is subjected to the design HW and CHW differential pressures and return temperatures, the supply temperature setpoints vary, creating a varying load. The validation then consists in verifying that the modules are effectively staged in various modes to adapt to the load. Additionally, it confirms that the isolation valve parameterization and controls result in HW and CHW flow rates that vary linearly with the number of enabled modules on each side.

Parameters

TypeNameDefaultDescription
Data.TableData2DLoadDepSHC.GenericdatPerformance data
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsenergyDynamicsModelica.Fluid.Types.Dynamics.FixedInitialType of energy balance: dynamic (3 initialization options) or steady state
Nominal condition
Modelica.Units.SI.TemperatureTHwSup_nominal323.15HW supply temperature
Modelica.Units.SI.TemperatureTHwRet_nominal315.15HW return temperature
Modelica.Units.SI.TemperatureTChwSup_nominal280.15CHW supply temperature
Modelica.Units.SI.TemperatureTChwRet_nominal285.15CHW return temperature
Modelica.Units.SI.MassFlowRatemHw_flow_nominalQHea_flow_nominal/(THwSup_nominal - THwRet_nominal)/Buildings.Media.Water.cp_constHW mass flow rate
Modelica.Units.SI.MassFlowRatemChw_flow_nominalQCoo_flow_nominal/(TChwSup_nominal - TChwRet_nominal)/Buildings.Media.Water.cp_constCHW mass flow rate
Nominal condition - Heating mode
Modelica.Units.SI.TemperatureTAmbHea_nominal268.15OA temperature
Modelica.Units.SI.HeatFlowRateQHea_flow_nominal58E3Heating heat flow rate - Heating mode
Modelica.Units.SI.HeatFlowRateQHeaShc_flow_nominal85E3Heating heat flow rate - SHC mode
Nominal condition - Cooling mode
Modelica.Units.SI.TemperatureTAmbCoo_nominal308.15Ambient side fluid temperature — Entering or leaving depending on use_TAmbOutForTab
Modelica.Units.SI.HeatFlowRateQCoo_flow_nominal-73E3Cooling heat flow rate - Cooling mode
Modelica.Units.SI.HeatFlowRateQCooShc_flow_nominal-65E3Cooling heat flow rate - SHC mode

Connectors

TypeNameDefaultDescription
BoundaryConditions.WeatherData.BusweaBus

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Reals.Sources.TimeTableTChiWatSetCHW supply or return temperature setpoint
Buildings.Controls.OBC.CDL.Reals.Sources.SinTHeaWatSetHW supply or return temperature setpoint
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantTHwEntCondenser entering HW temperature
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantTChwEntEvaporator entering CHW temperature
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantTOutOA temperature
Buildings.Controls.OBC.CDL.Reals.Minmin1
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantTHeaWatSupNomDesign HW supply temperature
Buildings.Controls.OBC.CDL.Logical.Sources.TimeTableonCooCooling on/off command
Buildings.Controls.OBC.CDL.Logical.Sources.TimeTableonHeaHeating on/off command
Buildings.Fluid.HeatPumps.ModularReversible.TableData2DLoadDepSHChpMultipipe heat pump
Sources.Boundary_pThwInBoundary conditions of HW at HP inlet
Sources.Boundary_pThwOutBoundary conditions of HW at HP outlet
Sources.Boundary_pTchwOutBoundary conditions of CHW at HP outlet
Sources.Boundary_pTchwInBoundary conditions of CHW at HP inlet
Sensors.TemperatureTwoPortTHwSupHW supply temperature
Sensors.TemperatureTwoPortTHwRetHW return temperature
Sensors.TemperatureTwoPortTChwRetCHW return temperature
Sensors.TemperatureTwoPortTChwSupCHW supply temperature
Actuators.Valves.TwoWayTablevalHwIsoEquivalent actuator for modules' condenser barrels and HW isolation valves
Actuators.Valves.TwoWayTablevalChwIsoEquivalent actuator for modules' evaporator barrels and CHW isolation valves
Buildings.Controls.OBC.CDL.Integers.MultiSumsumNumUniTotal number of enabled modules
Buildings.Controls.OBC.CDL.Utilities.AssertassMesAssert condition on number of enabled modules
Buildings.Controls.OBC.CDL.Integers.LessEqualThresholdintLesEquThrTrue if number of enabled modules lower or equal to number of modules

Contents

NameDescription
Medium

Revisions

  • March 23, 2026, by Antoine Gautier:
    Refactored with two separate connectors for heating and cooling on/off commands.
    This is for #4507.
  • July 1, 2025, by Antoine Gautier:
    First implementation.