Buildings.BoundaryConditions.WeatherData.Validation

Collection of validation models

Information

This package contains models for validation of weather data models.

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

Package Content

Name Description
Buildings.BoundaryConditions.WeatherData.Validation.DecemberToJanuary DecemberToJanuary Validation model for a data reader that has data spanning only some hours in December to January
Buildings.BoundaryConditions.WeatherData.Validation.OverAYear_usingOneYearData OverAYear_usingOneYearData Validation model for a simulation extending with two months over one year but using data for only one year
Buildings.BoundaryConditions.WeatherData.Validation.ReaderTMY3HDirNor ReaderTMY3HDirNor Test model for calculating the direct normal radiation
Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData ThreeYears_usingTwoYearData Validation model for a simulation spanning three years but using only two years of data
Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataNegativeStart ThreeYears_usingTwoYearDataNegativeStart Validation model for a simulation spanning three years, starting at a negative time and using only two years of data
Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataPositiveStart ThreeYears_usingTwoYearDataPositiveStart Validation model for a simulation spanning three years, starting at a positive time and using only two years of data

Buildings.BoundaryConditions.WeatherData.Validation.DecemberToJanuary Buildings.BoundaryConditions.WeatherData.Validation.DecemberToJanuary

Validation model for a data reader that has data spanning only some hours in December to January

Buildings.BoundaryConditions.WeatherData.Validation.DecemberToJanuary

Information

This is a validation case for a data file that has a few incomplete days in December and goes into a few days into January. The data does not start and does not end at midnight.

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

Modelica definition

model DecemberToJanuary "Validation model for a data reader that has data spanning only some hours in December to January" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( computeWetBulbTemperature=false, TDewPoiSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, HInfHorSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, HInfHor=100, calTSky=Buildings.BoundaryConditions.Types.SkyTemperatureCalculation.HorizontalRadiation, filNam=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/Data/BoundaryConditions/WeatherData/Validation/DecemberToJanuary.mos")) "Weather data reader with data file going from December to January"; end DecemberToJanuary;

Buildings.BoundaryConditions.WeatherData.Validation.OverAYear_usingOneYearData Buildings.BoundaryConditions.WeatherData.Validation.OverAYear_usingOneYearData

Validation model for a simulation extending with two months over one year but using data for only one year

Buildings.BoundaryConditions.WeatherData.Validation.OverAYear_usingOneYearData

Information

This is a validation case for a simulation extending with two months over one year, but using data for only one year.

The test script plots the dry bulb temperature for the days 0-10 and 365-375 for comparison.

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

Modelica definition

model OverAYear_usingOneYearData "Validation model for a simulation extending with two months over one year but using data for only one year" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( computeWetBulbTemperature=false, TDewPoiSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, HInfHorSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, HInfHor=100, calTSky=Buildings.BoundaryConditions.Types.SkyTemperatureCalculation.HorizontalRadiation, filNam=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos")) "Weather data reader with data file for one year, hourly data"; end OverAYear_usingOneYearData;

Buildings.BoundaryConditions.WeatherData.Validation.ReaderTMY3HDirNor Buildings.BoundaryConditions.WeatherData.Validation.ReaderTMY3HDirNor

Test model for calculating the direct normal radiation

Buildings.BoundaryConditions.WeatherData.Validation.ReaderTMY3HDirNor

Information

This model tests the calculation of the direct normal radiation. The instance weaDatInpCon obtains the global horizontal and the diffuse horizontal solar radiation from its inputs connectors.

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

Modelica definition

model ReaderTMY3HDirNor "Test model for calculating the direct normal radiation" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDatInpCon(filNam= Modelica.Utilities.Files.loadResource("modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"), HSou=Buildings.BoundaryConditions.Types.RadiationDataSource.Input_HGloHor_HDifHor) "Weather data reader with radiation data obtained from the inputs' connectors"; protected Modelica.Blocks.Sources.Sine HGloHor1( f=1/86400, startTime=25200, offset=0, amplitude=100) "Horizontal global radiation"; Modelica.Blocks.Sources.Sine HGloHor( f=1/86400, startTime=68428, offset=0, amplitude=100) "Horizontal global radiation"; Modelica.Blocks.Math.Add add; Modelica.Blocks.Math.Gain gaiHDifHor(k=0.5) "Gain for diffuse solar radiation"; equation connect(HGloHor.y, add.u1); connect(HGloHor1.y, add.u2); connect(add.y, weaDatInpCon.HGloHor_in); connect(add.y, gaiHDifHor.u); connect(gaiHDifHor.y, weaDatInpCon.HDifHor_in); end ReaderTMY3HDirNor;

Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData

Validation model for a simulation spanning three years but using only two years of data

Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData

Information

This is a validation case for a simulation extending over three years, but using only two years of data with equidistant monthly values.

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

Modelica definition

model ThreeYears_usingTwoYearData "Validation model for a simulation spanning three years but using only two years of data" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( computeWetBulbTemperature=false, TDewPoiSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, HInfHorSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, HInfHor=100, calTSky=Buildings.BoundaryConditions.Types.SkyTemperatureCalculation.HorizontalRadiation, filNam=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/Data/BoundaryConditions/WeatherData/Validation/TwoYears_DataOnceAMonth_TMY3.mos")) "Weather data reader with data for two years, only monthly values"; end ThreeYears_usingTwoYearData;

Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataNegativeStart Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataNegativeStart

Validation model for a simulation spanning three years, starting at a negative time and using only two years of data

Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataNegativeStart

Information

This is a validation case for a simulation extending over six years starting at a negative start date, but using only two years of data with equidistant monthly values.

Extends from Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData (Validation model for a simulation spanning three years but using only two years of data).

Modelica definition

model ThreeYears_usingTwoYearDataNegativeStart "Validation model for a simulation spanning three years, starting at a negative time and using only two years of data" extends Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData; end ThreeYears_usingTwoYearDataNegativeStart;

Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataPositiveStart Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataPositiveStart

Validation model for a simulation spanning three years, starting at a positive time and using only two years of data

Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearDataPositiveStart

Information

This is a validation case for a simulation extending over six years starting at a positive start date, but using only two years of data with equidistant monthly values.

Extends from Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData (Validation model for a simulation spanning three years but using only two years of data).

Modelica definition

model ThreeYears_usingTwoYearDataPositiveStart "Validation model for a simulation spanning three years, starting at a positive time and using only two years of data" extends Buildings.BoundaryConditions.WeatherData.Validation.ThreeYears_usingTwoYearData; end ThreeYears_usingTwoYearDataPositiveStart;