Buildings.DHC.Loads.Combined.BaseClasses

Package with base classes that are used by multiple models

Information

This package contains base classes that are used to construct the classes in Buildings.DHC.Loads.Combined.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

Name Description
Buildings.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS PartialBuildingWithETS Partial model with ETS model and partial building model

Buildings.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS Buildings.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS

Partial model with ETS model and partial building model

Buildings.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS

Information

This model is composed of a heat pump based energy transfer station model Buildings.DHC.ETS.Combined.HeatPumpHeatExchanger connected to a repleacable building load model.

Extends from Buildings.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS (Partial model of a building with an energy transfer station).

Parameters

TypeNameDefaultDescription
replaceable package MediumSerWaterService side medium
replaceable package MediumSerHea_aWaterService side medium at heating inlet
replaceable package MediumBuiWaterBuilding side medium
PartialBuildingbuiredeclare Buildings.DHC.Load...Building model
PartialETSetsredeclare Buildings.DHC.ETS....Energy transfer station model
Configuration
IntegernPorts_heaWat1Number of heating water fluid ports
IntegernPorts_chiWat1Number of chilled water fluid ports
Scaling
RealfacMul1Multiplier factor
ETS model parameters
TemperatureTDisWatMin6 + 273.15District water minimum temperature [K]
TemperatureTDisWatMax17 + 273.15District water maximum temperature [K]
TemperatureDifferencedT_nominal4Water temperature drop/increase accross load and source-side HX (always positive) [K]
TemperatureTChiWatSup_nominal18 + 273.15Chilled water supply temperature [K]
TemperatureTHeaWatSup_nominal38 + 273.15Heating water supply temperature [K]
TemperatureTHotWatSup_nominal63 + 273.15Domestic hot water supply temperature to fixtures [K]
TemperatureTColWat_nominal288.15Cold water temperature (for hot water production) [K]
Pressuredp_nominal50000Pressure difference at nominal flow rate (for each flow leg) [Pa]
RealCOPHeaWat_nominal4.0COP of heat pump for heating water production [1]
RealCOPHotWat_nominal2.3COP of heat pump for hot water production [1]
Assumptions
BooleanallowFlowReversalSerfalseSet to true to allow flow reversal on service side
BooleanallowFlowReversalBuifalseSet to true to allow flow reversal on building side

Connectors

TypeNameDescription
FluidPort_aport_aSerAmbFluid connector for ambient water service supply line
FluidPort_bport_bSerAmbFluid connector for ambient water service return line
FluidPort_aport_aSerHeaFluid connector for heating service supply line
FluidPort_bport_bSerHeaFluid connector for heating service return line
FluidPort_aport_aSerCooFluid connector for cooling service supply line
FluidPort_bport_bSerCooFluid connector for cooling service return line
BusweaBusWeather data bus
output RealOutputQHea_flowTotal heating heat flow rate transferred to the loads (>=0) [W]
output RealOutputQCoo_flowTotal cooling heat flow rate transferred to the loads (<=0) [W]
output RealOutputPHeaPower drawn by heating system [W]
output RealOutputPCooPower drawn by cooling system [W]
output RealOutputPFanPower drawn by fan motors [W]
output RealOutputPPumPower drawn by pump motors [W]
output RealOutputQFue_flow[nFue]Fuel energy input rate [W]
input RealInputTChiWatSupSetChilled water supply temperature set point [K]
input RealInputTHeaWatSupMaxSetHeating water supply temperature set point - Maximum value [K]
input RealInputTHeaWatSupMinSetHeating water supply temperature set point - Minimum value [K]
output RealOutputPPumETSETS pump power [W]

Modelica definition

model PartialBuildingWithETS "Partial model with ETS model and partial building model" extends Buildings.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS( nPorts_heaWat=1, nPorts_chiWat=1); parameter Modelica.Units.SI.Temperature TDisWatMin=6 + 273.15 "District water minimum temperature"; parameter Modelica.Units.SI.Temperature TDisWatMax=17 + 273.15 "District water maximum temperature"; parameter Modelica.Units.SI.TemperatureDifference dT_nominal(min=0) = 4 "Water temperature drop/increase accross load and source-side HX (always positive)"; parameter Modelica.Units.SI.Temperature TChiWatSup_nominal=18 + 273.15 "Chilled water supply temperature"; parameter Modelica.Units.SI.Temperature THeaWatSup_nominal=38 + 273.15 "Heating water supply temperature"; parameter Modelica.Units.SI.Temperature THotWatSup_nominal=63 + 273.15 "Domestic hot water supply temperature to fixtures"; parameter Modelica.Units.SI.Temperature TColWat_nominal=288.15 "Cold water temperature (for hot water production)"; parameter Modelica.Units.SI.Pressure dp_nominal(displayUnit="Pa")=50000 "Pressure difference at nominal flow rate (for each flow leg)"; parameter Real COPHeaWat_nominal(final unit="1") = 4.0 "COP of heat pump for heating water production"; parameter Real COPHotWat_nominal(final unit="1") = 2.3 "COP of heat pump for hot water production"; // IO CONNECTORS Buildings.Controls.OBC.CDL.Interfaces.RealInput TChiWatSupSet( final unit="K", displayUnit="degC") "Chilled water supply temperature set point"; Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaWatSupMaxSet( final unit="K", displayUnit="degC") "Heating water supply temperature set point - Maximum value"; Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaWatSupMinSet( final unit="K", displayUnit="degC") "Heating water supply temperature set point - Minimum value"; // COMPONENTS Buildings.Controls.OBC.CDL.Reals.Line resTHeaWatSup "HW supply temperature reset"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant zer(k=0) "Zero"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant one(k=1) "One"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter mulPPumETS(u(final unit="W"), final k=facMul) if have_pum "Scaling"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput PPumETS( final unit="W") if have_pum "ETS pump power"; equation connect(TChiWatSupSet, ets.TChiWatSupSet); connect(resTHeaWatSup.y, ets.THeaWatSupSet); connect(THeaWatSupMaxSet, resTHeaWatSup.f2); connect(THeaWatSupMinSet, resTHeaWatSup.f1); connect(one.y, resTHeaWatSup.x2); connect(zer.y, resTHeaWatSup.x1); connect(mulPPumETS.y, PPumETS); connect(ets.PPum, mulPPumETS.u); end PartialBuildingWithETS;