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 |
---|---|
ReaderTMY3HDirNor | Test model for calculating the direct normal radiation |
Buildings.BoundaryConditions.WeatherData.Validation.ReaderTMY3HDirNor
Test model for calculating the direct normal radiation
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://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(
freqHz=1/86400,
startTime=25200,
offset=0,
amplitude=100) "Horizontal global radiation";
Modelica.Blocks.Sources.Sine HGloHor(
freqHz=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;