Environment
Symbol |
|---|
Use
This component is one of the most important parts of any Green City model. It provides input data to almost all connected model components via its ▶EnvironmentConditions bus.
Generally, the model fulfills the following tasks:
Import of measurement data of ambient temperature, solar irradiation, wind speed and wind direction, relative humidity, air pressure, CO2 concentration
Definition of time base, date, time of day, season and initial parameters depending on the simulated time period
Calculation of the solar inclination angle depending on the simulated season and correction of solar irradiation measurement data regarding measurement angle
Definition of soil and air characteristics
Parameters and Connectors
The parameter InputData_(TRY)_City_xyz defines the weather data record which specifies the environment conditions data used during the simulation run. This replacable parameter changes its name depending on the chosen weather data location via the City parameter. By default Green City offers data sets of 10 cities all around the world (see Utilities.Weatherdata) plus one demo setup as UserCity1 (see Environment.UserData) as empty template for add-on user data.

The type of the parameter InputData_(TRY)_City_xyz changes depending on the parameter TRY. If this parameter is 'true', a city-specific Test Reference Year (TRY) is available. Then the model uses input data of at least one complete year. If it's 'false', the input data type changes to reference days (according to VDI 4655 standard). The following abbreviations describe those available reference day data sets in more detail:
First letter:
W – Winter
T – Transit
S – Summer
Second letter:
s – Sunny (<3/8 clouds)
o – Overcast (>3/8 clouds)
r – High radiation (global direct and diffuse radiation higher than monthly average)
n – Low radiation
Third letter:
w – Windy
c – Calm
Keep in mind that each reference day can represent either an original or an average scenario (avg). Average scenarios represent the mean weather conditions for all days of the same type. The original scenarios describe the conditions with the lowest weighted standard deviation regarding the average scenario.
Furthermore, input data sets can include noisy measurement data with high gradients. This can cause numerical issues. To prevent this, the simulation model includes a smoothing option which is already activated by default with the parameter SmoothData which uses the SmoothTimeConstant as PT1 time constant.

The simulated time always starts at the specified date and time (usually 12 am) by default, e.g. 11/15 refers to November 15th. However, these initialization values can be modified in the parameter dialogue 'Time and Location':
DayTimeInit: Hour of the day (always integer: 0 .. 00:00 to 23 .. 23:00)
WeekDayInit: Day of the week at the beginning of the year (always integer: 1: monday, 7: sunday)
MonthDayInit: Day of the month (1.. 1st to (max) 31.. 31st)
MonthInit: Month of the year (1 .. January to 12 .. December)
YearInit: Year
The parameter useUnixTimeStamp enables an alternative initialization of the simulation time base. If it's 'true' the necessary initialization parameters of 'date' and 'daytime' are defined by the SimulationX simulation control dialog.

In this case, choose MM/DD/YYYY or comparable as time stamp unit for tStart and tStop and select the desired date and time via the calender dialog. The chosen weather data sets typically use time series with hour of year (0 .. 8760) or hour of day (0 .. 24) as index column.
The geographical location is specified via longitude and latitude. It is pre-parametrized with the coordinates of the chosen city:
Longitude:-180° (West) to 180° (East)
Latitude:-90° (South) to 90° (North)
StandardAlpha: average longitude of time zone (e.g. 15° at GMT+1)
Finally, the model provides some general soil and air parameters to other models via its ▶EnvironmentConditions bus.


The Ground component already describes the background of the soil parameters. The additional two parameters cpAir and rhoAir describe the specific heat capacity and density via the ▶EnvironmentConditions bus to other models.
Model Background
During the simulation the solver time is dubbed with relevant season and daytime parameters, like time of day, the day of month, the month and the year. This includes the consideration of leap years and daylight saving time. The simulation will only regard daylight saving time if it is activated within the chosen weather data record (i.e. parameter enableDST). Then, both the start and the end day of year must be set correctly regarding time zone and hemisphere.
To calculate the current solar inclination angle, the real local time is required. The time is determined with the location's longitude and the simulated day of the year. The influences of the eccentricity of the earth's orbit is taken into account to ensure accurate calculations.
With the calculated real local time, the current hour angle ϖ is calculated as follows:
Furthermore, the maximum solar altitude δ depends on the current day of year and is determined as follows:

With that, the zenith angle γ and azimuth angle αs of solar irradiation are calculated depending on the current time with the following equations (VDI 6020):
