Buildings.Experimental.DHC.Loads.Combined

Package with models for loads

Information

This package contains models of building loads that are used to build example models of DHC systems.

Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).

Package Content

Name Description
Buildings.Experimental.DHC.Loads.Combined.BuildingTimeSeriesWithETS BuildingTimeSeriesWithETS Model of a building with loads provided as time series, connected to an ETS
Buildings.Experimental.DHC.Loads.Combined.BaseClasses BaseClasses Package with base classes that are used by multiple models

Buildings.Experimental.DHC.Loads.Combined.BuildingTimeSeriesWithETS Buildings.Experimental.DHC.Loads.Combined.BuildingTimeSeriesWithETS

Model of a building with loads provided as time series, connected to an ETS

Buildings.Experimental.DHC.Loads.Combined.BuildingTimeSeriesWithETS

Information

This model is composed of a heat pump based energy transfer station model Buildings.Experimental.DHC.EnergyTransferStations.Combined.HeatPumpHeatExchanger connected to a simplified building model where the space heating, cooling and hot water loads are provided as time series.

Extends from Buildings.Experimental.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS (Partial model with ETS model and partial building model).

Parameters

TypeNameDefaultDescription
replaceable package MediumSerWaterService side medium
replaceable package MediumSerHea_aWaterService side medium at heating inlet
replaceable package MediumBuiWaterBuilding side medium
StringfilNam Library path of the file with thermal loads as time series
Configuration
IntegernPorts_heaWat1Number of heating water fluid ports
IntegernPorts_chiWat1Number of chilled water fluid ports
Scaling
RealfacMul1Multiplier factor
ETS model parameters
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]
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]
input RealInputTHotWatSupSetService hot water supply temperature set point [K]
input RealInputTColWatCold water temperature [K]

Modelica definition

model BuildingTimeSeriesWithETS "Model of a building with loads provided as time series, connected to an ETS" extends Buildings.Experimental.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS ( redeclare Buildings.Experimental.DHC.Loads.BaseClasses.Examples.BaseClasses.BuildingTimeSeries bui( final filNam=filNam, have_hotWat=true, T_aHeaWat_nominal=ets.THeaWatSup_nominal, T_bHeaWat_nominal=ets.THeaWatRet_nominal, T_aChiWat_nominal=ets.TChiWatSup_nominal, T_bChiWat_nominal=ets.TChiWatRet_nominal, facMulHea=10*QHea_flow_nominal/(1.7E5), facMulCoo=40*QCoo_flow_nominal/(-1.5E5)), ets( have_hotWat=true, QChiWat_flow_nominal=QCoo_flow_nominal, QHeaWat_flow_nominal=QHea_flow_nominal, QHotWat_flow_nominal=QHot_flow_nominal)); parameter String filNam "Library path of the file with thermal loads as time series"; final parameter Modelica.Units.SI.HeatFlowRate QCoo_flow_nominal(max=- Modelica.Constants.eps) = bui.facMul*bui.QCoo_flow_nominal "Space cooling design load (<=0)"; final parameter Modelica.Units.SI.HeatFlowRate QHea_flow_nominal(min=Modelica.Constants.eps)= bui.facMul*bui.QHea_flow_nominal "Space heating design load (>=0)"; final parameter Modelica.Units.SI.HeatFlowRate QHot_flow_nominal(min=Modelica.Constants.eps)= bui.facMul*Buildings.Experimental.DHC.Loads.BaseClasses.getPeakLoad(string= "#Peak water heating load", filNam=Modelica.Utilities.Files.loadResource( filNam)) "Hot water design load (>=0)"; Buildings.Controls.OBC.CDL.Interfaces.RealInput THotWatSupSet( final unit="K", displayUnit="degC") "Service hot water supply temperature set point"; Buildings.Controls.OBC.CDL.Interfaces.RealInput TColWat( final unit="K", displayUnit="degC") "Cold water temperature"; Buildings.Controls.OBC.CDL.Continuous.MultiplyByParameter loaHeaNor(k=1/ QHea_flow_nominal) "Normalized heating load"; Buildings.Controls.OBC.CDL.Continuous.GreaterThreshold enaHeaCoo[2](each t=1e-4) "Threshold comparison to enable heating and cooling"; Modelica.Blocks.Sources.BooleanConstant enaSHW( final k=true) if have_hotWat "SHW production enable signal"; Buildings.Controls.OBC.CDL.Continuous.MultiplyByParameter loaCooNor(k=1/ QCoo_flow_nominal) "Normalized cooling load"; equation connect(bui.QReqHotWat_flow, ets.loaSHW); connect(THotWatSupSet, ets.THotWatSupSet); connect(TColWat, ets.TColWat); connect(enaHeaCoo[1].y, ets.uHea); connect(enaHeaCoo[2].y, ets.uCoo); connect(enaSHW.y, ets.uSHW); connect(loaHeaNor.y, enaHeaCoo[1].u); connect(loaCooNor.y, enaHeaCoo[2].u); connect(bui.QReqHea_flow, loaHeaNor.u); connect(bui.QReqCoo_flow, loaCooNor.u); connect(loaHeaNor.y, resTHeaWatSup.u); end BuildingTimeSeriesWithETS;