Buildings.Experimental.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.Experimental.DHC.Loads.Combined.

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

Package Content

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

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

Partial model with ETS model and partial building model

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

Information

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

Extends from Buildings.Experimental.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.Experime...Building model
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]

Modelica definition

model PartialBuildingWithETS "Partial model with ETS model and partial building model" extends Buildings.Experimental.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS ( nPorts_heaWat=1, nPorts_chiWat=1, redeclare Buildings.Experimental.DHC.EnergyTransferStations.Combined.HeatPumpHeatExchanger ets( final dT_nominal=dT_nominal, final TDisWatMin=datDes.TLooMin, final TDisWatMax=datDes.TLooMax, final TChiWatSup_nominal=TChiWatSup_nominal, final THeaWatSup_nominal=THeaWatSup_nominal, final dp_nominal=dp_nominal, final COPHeaWat_nominal=COPHeaWat_nominal, final COPHotWat_nominal=COPHotWat_nominal)); outer parameter Buildings.Experimental.DHC.Examples.Combined.BaseClasses.DesignDataSeries datDes "DHC system design data"; 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.Pressure dp_nominal=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;