Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation

Information

This package contains models that validate the base classes of Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.

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

Package Content

Name Description
Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad GetPeakLoad Model that validates the getPeakLoad function

Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad

Model that validates the getPeakLoad function

Information

This model tests reading the peak loads from the load file. If the wrong values are read, then the simulation stops with an error.

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

Parameters

TypeNameDefaultDescription
HeatFlowRateQCoo_flowBuildings.Experimental.Distr...Peak heat flow rate [W]
HeatFlowRateQHea_flowBuildings.Experimental.Distr...Peak heat flow rate [W]
HeatFlowRateQWatHea_flowBuildings.Experimental.Distr...Peak water heating flow rate [W]

Modelica definition

model GetPeakLoad "Model that validates the getPeakLoad function" extends Modelica.Icons.Example; parameter Modelica.SIunits.HeatFlowRate QCoo_flow= Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad( string="#Peak space cooling load", filNam=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")) "Peak heat flow rate"; parameter Modelica.SIunits.HeatFlowRate QHea_flow= Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad( string="#Peak space heating load", filNam=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")) "Peak heat flow rate"; parameter Modelica.SIunits.HeatFlowRate QWatHea_flow= Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad( string="#Peak water heating load", filNam=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")) "Peak water heating flow rate"; equation assert(abs(QCoo_flow - (-383165.6989)) < 1E-3, "Error in reading the peak heating load. Read " + String(QCoo_flow)); assert(abs(QHea_flow - 893931.4335) < 1E-3, "Error in reading the peak heating load. Read " + String(QHea_flow)); assert(abs(QWatHea_flow -19496.90012) < 1E-3, "Error in reading the peak water heating load. Read " + String(QWatHea_flow)); end GetPeakLoad;