Buildings.BoundaryConditions.WeatherData.Examples

Collection of models that illustrate model use and test models

Information

This package contains examples for the use of models that can be found in Buildings.BoundaryConditions.WeatherData.

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

Package Content

Name Description
Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3 ReaderTMY3 Test model for reading weather data

Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3 Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3

Test model for reading weather data

Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3

Information

This model tests the TMY3 data reader. The instance weaDat obtains all weather data from the weather file, whereas the instance weaDatInpCon obtains the global horizontal and the diffuse horizontal solar radiation from its input connectors.

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

Modelica definition

model ReaderTMY3 "Test model for reading weather data" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam="modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data reader"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDatInpCon(filNam="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 input connector"; Modelica.Blocks.Sources.Constant HDifHor(k=0) "Diffuse horizontal radiation"; Modelica.Blocks.Sources.Constant HGloHor(k=0) "Horizontal global radiation"; equation connect(HGloHor.y, weaDatInpCon.HGloHor_in); connect(HDifHor.y, weaDatInpCon.HDifHor_in); end ReaderTMY3;