Buildings.DHC.Loads.Combined.Examples

This package contains example models

Information

This package contains an example illustrating the use of the model in Buildings.DHC.Loads.Combined.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETS BuildingTimeSeriesWithETS Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump domestic hot water
Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETSDHWTank BuildingTimeSeriesWithETSDHWTank Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump with storage tank domestic hot water

Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETS Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETS

Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump domestic hot water

Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETS

Information

Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump domestic hot water. It uses Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETS

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

Modelica definition

model BuildingTimeSeriesWithETS "Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump domestic hot water" extends Modelica.Icons.Example; package Medium=Buildings.Media.Water "Medium model"; Buildings.Fluid.Sources.Boundary_pT supAmbWat( redeclare package Medium = Medium, p(displayUnit="bar"), use_T_in=true, T=280.15, nPorts=1) "Ambient water supply"; Buildings.Fluid.Sources.Boundary_pT sinAmbWat( redeclare package Medium = Medium, p(displayUnit="bar"), nPorts=1) "Sink for ambient water"; Buildings.Fluid.Sensors.MassFlowRate senMasFlo(redeclare package Medium = Medium) "Mass flow rate sensor"; Modelica.Blocks.Sources.Constant TDisSup(k( unit="K", displayUnit="degC") = 288.15) "District supply temperature"; Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETS bui( redeclare package MediumSer = Medium, redeclare package MediumBui = Medium, bui(facMul=10), allowFlowReversalSer=true, THotWatSup_nominal=322.15, filNam="modelica://Buildings/Resources/Data/DHC/Loads/Examples/SwissOffice_20190916.mos"); Buildings.Controls.OBC.CDL.Reals.Sources.Constant TColWat(k=bui.ets.TColWat_nominal) "Cold water temperature"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant THotWatSupSet(k=bui.ets.THotWatSup_nominal) "Hot water supply temperature set point"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant TChiWatSupSet(k=bui.TChiWatSup_nominal) "Chilled water supply temperature set point"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMaxSet(k=bui.THeaWatSup_nominal) "Heating water supply temperature set point - Maximum value"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMinSet( k(final unit="K", displayUnit="degC") = 301.15) "Heating water supply temperature set point - Minimum value"; equation connect(supAmbWat.ports[1], senMasFlo.port_a); connect(TDisSup.y,supAmbWat. T_in); connect(senMasFlo.port_b, bui.port_aSerAmb); connect(sinAmbWat.ports[1], bui.port_bSerAmb); connect(THeaWatSupMinSet.y, bui.THeaWatSupMinSet); connect(THeaWatSupMaxSet.y, bui.THeaWatSupMaxSet); connect(TChiWatSupSet.y, bui.TChiWatSupSet); connect(THotWatSupSet.y, bui.THotWatSupSet); connect(TColWat.y, bui.TColWat); end BuildingTimeSeriesWithETS;

Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETSDHWTank Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETSDHWTank

Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump with storage tank domestic hot water

Buildings.DHC.Loads.Combined.Examples.BuildingTimeSeriesWithETSDHWTank

Information

Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump with storage tank domestic hot water Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETSWithDHWTank

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

Parameters

TypeNameDefaultDescription
GenericDomesticHotWaterWithHeatExchangerdatWatHeadatWatHea(VTan=0.3, mDom_flo...Performance data

Modelica definition

model BuildingTimeSeriesWithETSDHWTank "Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump with storage tank domestic hot water" extends Modelica.Icons.Example; package Medium=Buildings.Media.Water "Medium model"; Buildings.Fluid.Sources.Boundary_pT supAmbWat( redeclare package Medium = Medium, p(displayUnit="bar"), use_T_in=true, T=280.15, nPorts=1) "Ambient water supply"; Buildings.Fluid.Sources.Boundary_pT sinAmbWat( redeclare package Medium = Medium, p(displayUnit="bar"), nPorts=1) "Sink for ambient water"; Buildings.Fluid.Sensors.MassFlowRate senMasFlo(redeclare package Medium = Medium) "Mass flow rate sensor"; Modelica.Blocks.Sources.Constant TDisSup(k( unit="K", displayUnit="degC") = 288.15) "District supply temperature"; Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETSWithDHWTank bui( redeclare package MediumSer = Medium, redeclare package MediumBui = Medium, bui(facMul=10), allowFlowReversalSer=true, THotWatSup_nominal=313.15, filNam= "modelica://Buildings/Resources/Data/DHC/Loads/Examples/SwissOffice_20190916.mos", datWatHea=datWatHea) "Building load with time series data"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant TColWat(k=bui.ets.TColWat_nominal) "Cold water temperature"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant THotWatSupSet(k=bui.THotWatSup_nominal) "Hot water supply temperature set point"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant TChiWatSupSet(k=bui.TChiWatSup_nominal) "Chilled water supply temperature set point"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMaxSet(k=bui.THeaWatSup_nominal) "Heating water supply temperature set point - Maximum value"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMinSet(k=28 + 273.15) "Heating water supply temperature set point - Minimum value"; parameter Buildings.DHC.Loads.HotWater.Data.GenericDomesticHotWaterWithHeatExchanger datWatHea(VTan=0.3, mDom_flow_nominal=0.03, TDom_nominal=318.15) "Performance data"; equation connect(supAmbWat.ports[1], senMasFlo.port_a); connect(TDisSup.y,supAmbWat. T_in); connect(senMasFlo.port_b, bui.port_aSerAmb); connect(sinAmbWat.ports[1], bui.port_bSerAmb); connect(THeaWatSupMinSet.y, bui.THeaWatSupMinSet); connect(THeaWatSupMaxSet.y, bui.THeaWatSupMaxSet); connect(TChiWatSupSet.y, bui.TChiWatSupSet); connect(THotWatSupSet.y, bui.THotWatSupSet); connect(TColWat.y, bui.TColWat); end BuildingTimeSeriesWithETSDHWTank;