This component reads TMY3 weather data (Wilcox and Marion, 2008) or user specified weather data. The weather data format is the Typical Meteorological Year (TMY3) as obtained from the EnergyPlus web site at http://energyplus.net/weather. These data, which are in the EnergyPlus format, need to be converted as described in the next paragraph.
The following variables serve as output and are accessible via
weaBus:
| Name | Unit | Description |
|---|---|---|
HDifHor |
W/m2 | Horizontal diffuse solar radiation. |
HDifNor |
W/m2 | Direct normal radiation. |
HGloHor |
W/m2 | Horizontal global radiation. |
HHorIR |
W/m2 | Horizontal infrared irradiation. |
TBlaSky |
K | Output temperature. |
TDewPoi |
K | Dew point temperature. |
TDryBul |
K | Dry bulb temperature at ground level. |
TWetBul |
K | Wet bulb temperature. |
celHei |
m | Ceiling height. |
cloTim |
s | One-based day number in seconds. |
lat |
rad | Latitude of the location. |
lon |
rad | Longitude of the location. |
nOpa |
1 | Opaque sky cover [0, 1]. |
nTot |
1 | Total sky Cover [0, 1]. |
pAtm |
Pa | Atmospheric pressure. |
relHum |
1 | Relative humidity. |
solAlt |
rad | Altitude angle. |
solDec |
rad | Declination angle. |
solHouAng |
rad | Solar hour angle. |
solTim |
s | Solar time. |
solZen |
rad | Zenith angle. |
winDir |
rad | Wind direction. |
winSpe |
m/s | Wind speed. |
To add new weather data, proceed as follows:
epw
extension from http://energyplus.net/weather.Annex60/Resources/weatherdata (or
to any directory for which you have write permission).cd Annex60/Resources/weatherdata java -jar ../bin/ConvertWeatherData.jar inputFile.epwThis will generate the weather data file
inputFile.mos, which can be read by the model Annex60.BoundaryConditions.WeatherData.ReaderTMY3.The following location data are automatically read from the weather file:
lat,lon,
andtimZone.By default, the data bus contains the wet bulb temperature. This
introduces a nonlinear equation. However, we have not observed an
increase in computing time because of this equation. To disable the
computation of the wet bulb temperature, set
computeWetBulbTemperature=false.
This model has the option of using a constant value, using the data from the weather file, or using data from an input connector for the following variables:
By default, all data are obtained from the weather data file,
except for the atmospheric pressure, which is set to the parameter
pAtm=101325 Pascals.
The parameter *Sou configures the source of the
data. For the atmospheric pressure, temperatures, relative
humidity, wind speed and wind direction, the enumeration Annex60.BoundaryConditions.Types.DataSource
is used as follows:
Parameter *Sou |
Data used to compute weather data. |
|---|---|
| File | Use data from file. |
| Parameter | Use value specified by the parameter. |
| Input | Use value from the input connector. |
Because global, diffuse and direct radiation are related to each
other, the parameter HSou is treated differently. It
is set to a value of the enumeration Annex60.BoundaryConditions.Types.RadiationDataSource,
and allows the following configurations:
Parameter HSou |
Data used to compute weather data. |
|---|---|
| File | Use data from file. |
| Input_HGloHor_HDifHor | Use global horizontal and diffuse horizontal radiation from input connector. |
| Input_HDirNor_HDifHor | Use direct normal and diffuse horizontal radiation from input connector. |
| Input_HDirNor_HGloHor | Use direct normal and global horizontal radiation from input connector. |
Notes
In HVAC systems, when the fan is off, changes in atmospheric
pressure can cause small air flow rates in the duct system due to
change in pressure and hence in the mass of air that is stored in
air volumes (such as in fluid junctions or in the room model). This
may increase computing time. Therefore, the default value for the
atmospheric pressure is set to a constant. Furthermore, if the
initial pressure of air volumes are different from the atmospheric
pressure, then fast pressure transients can happen in the first few
seconds of the simulation. This can cause numerical problems for
the solver. To avoid this problem, set the atmospheric pressure to
the same value as the medium default pressure, which is typically
set to the parameter Medium.p_default. For medium
models for moist air and dry air, the default is
Medium.p_default=101325 Pascals.
Different units apply depending on whether data are obtained from a file, or from a parameter or an input connector:
USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos), the
units must be the same as the original TMY3 file used by EnergyPlus
(e.g. USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw).
The TMY3 data used by EnergyPlus are in both SI units and non-SI
units. If Resources/bin/ConvertWeatherData.jar is used
to convert the .epw file to an .mos file,
the units of the TMY3 data are preserved and the file can be
directly used by this data reader. The data reader will
automatically convert units to the SI units used by Modelica. For
example, the dry bulb temperature TDryBul in TMY3 is
in degree Celsius. The data reader will automatically convert the
data to Kelvin. The wind direction winDir in TMY3 is
degrees and will be automatically converted to radians.Pa for pressure, K for
temperature, W/m2 for solar radiations and
rad for wind direction.The TMY3 weather data, as well as the EnergyPlus weather data, start at 1:00 AM on January 1, and provide hourly data until midnight on December 31. Thus, the first entry for temperatures, humidity, wind speed etc. are values at 1:00 AM and not at midnight. Furthermore, the TMY3 weather data files can have values at midnight of December 31 that may be significantly different from the values at 1:00 AM on January 1. Since annual simulations require weather data that start at 0:00 on January 1, data need to be provided for this hour. Due to the possibly large change in weatherdata between 1:00 AM on January 1 and midnight at December 31, the weather data files in the Annex60 library do not use the data entry from midnight at December 31 as the value for t=0. Rather, the value from 1:00 AM on January 1 is duplicated and used for 0:00 on January 1. To maintain a data record with 8760 hours, the weather data record from midnight at December 31 is deleted. These changes in the weather data file are done in the Java program that converts EnergyPlus weather data file to Modelica weather data files, and which is described below.
To read weather data from the TMY3 weather data file, there are two data readers in this model. One data reader obtains all data except solar radiation, and the other data reader reads only the solar radiation data, shifted by 30 minutes. The reason for this time shift is as follows: The TMY3 weather data file contains for solar radiation the "...radiation received on a horizontal surface during the 60-minute period ending at the timestamp." Thus, as the figure below shows, a more accurate interpolation is obtained if time is shifted by 30 minutes prior to reading the weather data.

absFilNam to avoid multiple calls to
Annex60.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath.
This is for Buildings,
#506.radHorIR to HHorIR. This
is for #376.weaBus. This is for #376.cheTemBlaSky. This also allows to
graphically connect the black body sky temperature to the weather
bus, which is required in Dymola 2016 for the variable
weaBus.TBlaSky to appear in the graphical editor. This
is for #377.__Dymola_loadSelector by
loadSelector for MSL compliancy as reported by @tbeu
at RWTH-EBC/AixLib#107connect(TBlaSkyCom.TBlaSky,
weaBus.TBlaSky) statement. This avoids a warning if
Annex60.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness
is translated in pedantic mode in Dymola 2016. This is for #266.connect(conHorRad.HOut,
cheHorRad.HIn);.Evaluate=true.HInfHor.file://, modelica://
and modelica://Annex60 are added in this order to
search for the weather file. This allows using the data reader
without having to specify an absolute path, as long as the
Annex60 library is on the MODELICAPATH.
This change was implemented in
Annex60.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath
and improves this weather data reader.getAbsolutePath.computeWetBulbTemperature=false, the
computation of the wet bulb temperature can be removed. Revised
documentation.radHor to radHorIR and improved
the optional inputs for radiation data.HGloHor_in in its declaration,
because this gives an overdetermined system if the input connector
is used. Removed non-required assignments of attribute
displayUnit.pAtm_in_internal and made
propagation of parameter final.