Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation

Package with models for validation

Information

This package contains models that validate the district heating and cooling substation models. The examples plot various outputs, which have been verified against analytical solutions. These model outputs are stored as reference data to allow continuous validation whenever models in the library change.

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

Package Content

Name Description
Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation CoolingSubstation Validation model for cooling substation
Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation HeatingSubstation Validation model for heating substation

Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation

Validation model for cooling substation

Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation

Information

This model tests the cooling substation.

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

Modelica definition

model CoolingSubstation "Validation model for cooling substation" extends Modelica.Icons.Example; package Medium = Buildings.Media.Water "Fluid in the pipes"; Buildings.Experimental.DistrictHeatingCooling.SubStations.Cooling subSta( redeclare package Medium = Medium, show_T=true, Q_flow_nominal=-100E3) "Substation"; Modelica.Blocks.Sources.TimeTable QCoo(table=[ 0, -100E3; 6, -100E3; 6, -50E3; 18, -50E3; 18, -75E3; 24, -75E3], timeScale=3600) "Cooling demand"; Buildings.Fluid.Sources.Boundary_pT coo( redeclare package Medium = Medium, nPorts=1, use_T_in=true) "Cool pipe"; Modelica.Blocks.Sources.Ramp TCoo( duration=86400, height=8, offset=273.15 + 8) "Temperature of cold supply"; Buildings.Fluid.Sources.Boundary_pT war( redeclare package Medium = Medium, use_T_in=true, nPorts=1) "Warm pipe"; Modelica.Blocks.Sources.Ramp TWar( height=6, duration=86400, offset=273.15 + 12) "Temperature of warm supply"; equation connect(TCoo.y, coo.T_in); connect(TWar.y,war. T_in); connect(coo.ports[1], subSta.port_a); connect(subSta.port_b, war.ports[1]); connect(QCoo.y, subSta.Q_flow); end CoolingSubstation;

Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation

Validation model for heating substation

Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation

Information

This model tests the heating substation.

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

Modelica definition

model HeatingSubstation "Validation model for heating substation" extends Modelica.Icons.Example; package Medium = Buildings.Media.Water "Fluid in the pipes"; Buildings.Experimental.DistrictHeatingCooling.SubStations.Heating subSta( redeclare package Medium = Medium, Q_flow_nominal=100E3, show_T=true) "Substation"; Buildings.Fluid.Sources.Boundary_pT war( redeclare package Medium = Medium, use_T_in=true, nPorts=1) "Warm pipe"; Buildings.Fluid.Sources.Boundary_pT coo( redeclare package Medium = Medium, nPorts=1, use_T_in=true) "Cool pipe"; Modelica.Blocks.Sources.Ramp TWar( height=6, duration=86400, offset=273.15 + 12) "Temperature of warm supply"; Modelica.Blocks.Sources.TimeTable QHea(table=[ 0, 100E3; 6, 100E3; 6, 50E3; 18, 50E3; 18, 75E3; 24, 75E3], timeScale=3600) "Heating demand"; Modelica.Blocks.Sources.Ramp TCoo( duration=86400, height=8, offset=273.15 + 8) "Temperature of cold supply"; equation connect(TWar.y,war. T_in); connect(war.ports[1], subSta.port_a); connect(subSta.port_b, coo.ports[1]); connect(TCoo.y, coo.T_in); connect(QHea.y, subSta.Q_flow); end HeatingSubstation;