FAQ:General:ConversationofRadiationDataforOtherDirections: Unterschied zwischen den Versionen
Len (Diskussion | Beiträge) (Die Seite wurde neu angelegt: = (23): Conversation of Radiation Data for Other Directions = <B>I want to perform a hygrothermal simulation of a wall on which every day a shadow is cast for some tim...) |
SebSta (Diskussion | Beiträge) K (hat „FAQ General:ConversationofRadiationDataforOtherDirections“ nach „FAQ:General:ConversationofRadiationDataforOtherDirections“ verschoben) |
||
(3 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
Zeile 12: | Zeile 12: | ||
it is necessary to determine the position of the sun in the sky at the time of the | it is necessary to determine the position of the sun in the sky at the time of the | ||
measurement. | measurement. | ||
</P> | |||
<H3>Position of the Sun:</H3> | |||
<P>Let <TT>J</TT> be the number of the day in the year (1 .. 365 or 366). Then | |||
compute the auxiliary quantity <TT>x</TT>: | |||
</P> | |||
<P> | |||
<TT>x = 0.9856° * J - 2.72°</TT> | |||
</P> | |||
<P> | |||
and the equation of time <TT>Z</TT> (in minutes): | |||
</P> | |||
<P> | |||
<TT>Z = -7.66*sin(x) - 9.87*sin( 2*x + 24.99° + 3.83°*sin(x) ).</TT> | |||
</P> | |||
<P> | |||
The equation of time describes the variable difference in time between the actual | |||
culmination of the sun and noon. Because of the ellipticity of the Earth's orbit | |||
and the obliquity of the Earth's axis the sun wanders with slightly irregular | |||
speed across the sky. During the course of the year there are thus times where it | |||
reaches culmination earlier than a fictitious sun with constant speed (the so-called | |||
'mean' sun) and times where it reaches culmination later. | |||
</P> | |||
<P> | |||
The local meridian is the great circle that rises from the horizon due north, | |||
passes through the point directly above the observer and crosses the horizon again | |||
due south. The instant at which the sun crosses the local meridian on its daily path | |||
from east to west is also the instant where its position is due south and where it | |||
reaches its daily greatest height. | |||
</P> | |||
<P> | |||
When the apparent sun (i.e. the actually observed sun) crosses the meridian it | |||
is 12 noon local apparent solar time (<TT>LAT</TT>); when the mean sun crosses the | |||
meridian it is 12 noon local mean time (<TT>LMT</TT>). The equation of time is | |||
therefore the difference between <TT>LAT</TT> and <TT>LMT</TT> (<TT>Z = LAT - LMT</TT>). | |||
</P> | |||
<P> | |||
Furthermore, since the place where the measurements were taken is usually not | |||
located on the reference meridian of the time zone (15° East for the Central | |||
European Time Zone, <TT>CET</TT>), the difference between local mean time and | |||
zone time must be allowed for, which is 4 minutes for 1° difference in | |||
geographical longitude <TT>L</TT> and one hour for 15° difference. If the | |||
measurement was timed in Central European Summer Time <TT>CEST</TT>, convert | |||
to <TT>CET</TT> first by subtracting one hour (<TT>CET = CEST - 1h</TT>). | |||
</P> | |||
<P> | |||
In this way you can now compute the corresponding local apparent time | |||
<TT>LAT</TT> from the known measurement time (in <TT>CET</TT>): | |||
</P> | |||
<P> | |||
<TT>LAT = CET - (15°-L)/(15°/h) + Z/(60 min/h) [h]</TT> | |||
</P> | |||
<P> | |||
and thus determine the position of the sun: at 12 noon <TT>LAT</TT> the sun is | |||
exactly on the meridian, before noon it stands at an appropriate distance to | |||
the east of the meridian, after noon, an appropriate distance to the west.<BR> | |||
The distance between the sun and the meridian is measured by the hour angle: | |||
</P> | |||
<P> | |||
<TT><FONT FACE="SYMBOL">w</FONT> = (LAT - 12h) * 15°/h.</TT> | |||
</P> | |||
<P> | |||
The hour angle <FONT FACE="SYMBOL">w</FONT> is reckoned perpendicular to the meridian; | |||
it is negative before noon, zero at noon and positive after noon; it increases | |||
steadily by 15° per hour. | |||
</P> | |||
<P> | |||
The hour angle gives the distance of the sun from the meridian; the declination | |||
<FONT FACE="SYMBOL">d</FONT>, i.e. the distance of the sun from the celestial equator, | |||
then fixes the position of the sun completely. The declination varies between | |||
-23°26' at winter solstice, 0° at the equinoxes, and 23°26' at the summer | |||
solstice. Since its change during one day is very small, it suffices to compute it | |||
once for the day <TT>J</TT> under consideration: | |||
</P> | |||
<P> | |||
<TT> | |||
sin(<FONT FACE="SYMBOL">d</FONT>) = 0.3978 * sin( x - 77.51° + 1.92° * sin(x) ),<BR> | |||
cos(<FONT FACE="SYMBOL">d</FONT>) = sqrt(1 - sin(<FONT FACE="SYMBOL">d</FONT>)^2) | |||
</TT> | |||
</P> | |||
<P> | |||
where <TT>x</TT> is the auxiliary quantity introduced above. | |||
</P> | |||
<P> | |||
The last step is the transformation from the coordinate system determined | |||
by <FONT FACE="SYMBOL">w</FONT> and <FONT FACE="SYMBOL">d</FONT> into the more | |||
familiar coordinates altitude <FONT FACE="SYMBOL">g</FONT> and azimuth | |||
<FONT FACE="SYMBOL">y</FONT> (=compass direction). The geographical latitude | |||
<FONT FACE="SYMBOL">j</FONT> of the measurement location is needed for this. | |||
</P> | |||
<P> | |||
<TT> | |||
sin(<FONT FACE="SYMBOL">g</FONT>) = cos(<FONT FACE="SYMBOL">d</FONT>)*cos(<FONT FACE="SYMBOL">w</FONT>)*cos(<FONT FACE="SYMBOL">j</FONT>)+sin(<FONT FACE="SYMBOL">d</FONT>)*sin(<FONT FACE="SYMBOL">j</FONT>)<BR> | |||
cos(<FONT FACE="SYMBOL">g</FONT>) = sqrt(1 - sin(<FONT FACE="SYMBOL">g</FONT>)^2)<BR> | |||
<BR> | |||
if cos(<FONT FACE="SYMBOL">g</FONT>)=0 then <FONT FACE="SYMBOL">y</FONT> = 0<BR> | |||
else begin<BR> | |||
sin(<FONT FACE="SYMBOL">y</FONT>) = cos(<FONT FACE="SYMBOL">d</FONT>)*sin(<FONT FACE="SYMBOL">w</FONT>)/cos(<FONT FACE="SYMBOL">g</FONT>)<BR> | |||
cos(<FONT FACE="SYMBOL">y</FONT>) = (cos(<FONT FACE="SYMBOL">d</FONT>)*cos(<FONT FACE="SYMBOL">w</FONT>)*sin(<FONT FACE="SYMBOL">j</FONT>)-sin(<FONT FACE="SYMBOL">d</FONT>)*cos(<FONT FACE="SYMBOL">j</FONT>))/cos(<FONT FACE="SYMBOL">g</FONT>)<BR> | |||
<FONT FACE="SYMBOL">y</FONT> = atn2(sin(<FONT FACE="SYMBOL">y</FONT>), cos(<FONT FACE="SYMBOL">y</FONT>))<BR> | |||
end | |||
</TT> | |||
</P> | |||
<P> | |||
This formula uses <TT>atn2(A,B)</TT>, the arctangent function for two arguments | |||
<TT>A</TT> and <TT>B</TT>, which is provided by many programming languages, and which | |||
gives the arctangent of <TT>A/B</TT> in the correct quadrant. If this function is | |||
not available to you, you can use the ordinary arctangent and then explicitly determine | |||
the correct quadrant (i.e. you compute <TT>y=atn(A/B)</TT>, and in the case <TT>B<0</TT> | |||
you add <TT>180°</TT> if <TT>y<=0</TT> or subtract <TT>180°</TT> if <TT>y>0</TT>. | |||
If <TT>B=0</TT> and <TT>A<0</TT> then <TT>y=-90°</TT>, if <TT>B=0</TT> and | |||
<TT>A>0</TT>, then <TT>y=+90°</TT>.).<BR> | |||
The azimuth <FONT FACE="SYMBOL">y</FONT> is counted from south=0°, positive | |||
towards the west and negative towards the east. | |||
</P> | |||
<P> | |||
Examples for Munich (<TT>48.13°N</TT>, <TT>11.58°E</TT>): | |||
</P> | |||
{| border="1" cellspacing="0" cellpadding="5" alig | |||
!CET | |||
!Altitude | |||
!Azimuth | |||
!Declination | |||
|- | |||
|(J=1) | |||
|- | |||
|1 Jan. 2001 09:00 | |||
|6.436° | |||
| -44.614° | |||
| -22.987° | |||
|- | |||
|1 Jan. 2001 12:00 | |||
|18.836° | |||
| -4.209° | |||
| -22.977° | |||
|- | |||
|1 Jan. 2001 16:00 | |||
|3.441° | |||
|49.590° | |||
| -22.962° | |||
|- | |||
|1 Jan. 2001 16:25 | |||
|0.434° | |||
|54.316° | |||
| -22.961° | |||
|- | |||
|(J=79) | |||
|- | |||
|20 Mar. 2001 07:00 | |||
|6.498° | |||
| -82.661° | |||
| -0.126° | |||
|- | |||
|20 Mar. 2001 12:21 | |||
|41.851° | |||
| -0.041° | |||
| -0.038° | |||
|- | |||
|20 Mar. 2001 16:00 | |||
|22.726° | |||
|62.242° | |||
|0.022° | |||
|- | |||
|(J=172) | |||
|- | |||
|21 Jun. 2001 08:00 | |||
|34.501° | |||
| -87.522° | |||
|23.437° | |||
|- | |||
|21 Jun. 2001 12:00 | |||
|65.126° | |||
| -8.437° | |||
|23.437° | |||
|- | |||
|21 Jun. 2001 18:00 | |||
|19.771° | |||
|103.475° | |||
|23.436° | |||
|} | |||
<P> | |||
These values were computed with an astronomical ephemeris program. Of course, the | |||
simplified method described above cannot reproduce these data exactly, in particular | |||
for low altitudes of the sun (<TT>1 Jan. 16:25</TT>), since it does not allow for | |||
atmospheric refraction. On the other hand, the comparison allows you to assess the | |||
overall accuracy of this simple method. Your results should agree with these exact | |||
positions within a few tenths of a degree. The declinations have been included | |||
as well for testing purposes. | |||
</P> | |||
<P> | |||
| |||
</P> | |||
=== Converting the Radiation Data: === | |||
<P> | |||
We assume that your input data are measured hourly values of the global | |||
(<TT>I_glob</TT>) and the diffuse radiation (<TT>I_diff</TT>) on a horizontal surface. | |||
</P> | |||
<P> | |||
The radiation incident on the measuring or the component surface is split up into | |||
a direct and a diffuse component. The direct component is received directly from | |||
the sun and is therefore a directed quantity that depends on the position of the | |||
sun. The direct radiation vertically incident on a surface which is facing the | |||
sun is the direct normal radiation <TT>I_dir_normal</TT>. The direct radiation | |||
<TT>I_dir</TT> obliquely incident on a horizontal measuring surface depends on | |||
the solar altitude <FONT FACE="SYMBOL">g</FONT>: | |||
</P> | |||
<P> | |||
<TT>I_dir = I_dir_normal * sin(<FONT FACE="SYMBOL">g</FONT>)</TT>. | |||
</P> | |||
<P> | |||
Since <TT>I_dir</TT> can be computed as the difference between the measured values | |||
of global and diffuse radiation and <FONT FACE="SYMBOL">g</FONT></TT> can be determined | |||
from the measurement location and time by the method given above, the corresponding | |||
direct normal radiation is | |||
</P> | |||
<P> | |||
<TT>I_dir_normal = (I_glob - I_diff) / sin(<FONT FACE="SYMBOL">g</FONT>).</TT> | |||
</P> | |||
<P> | |||
The angle of incidence <FONT FACE="SYMBOL">h</FONT>, i.e. the angle that the direct | |||
normal radiation makes with the normal to the component surface which is tilted by | |||
the angle <FONT FACE="SYMBOL">b</FONT> and oriented in the | |||
direction <FONT FACE="SYMBOL">a</FONT>, is | |||
</P> | |||
<TABLE> | |||
<TR><TD COLSPAN="2">cos(<FONT FACE="SYMBOL">h</FONT>) = sin(<FONT FACE="SYMBOL">g</FONT>)*cos(<FONT FACE="SYMBOL">b</FONT>) + cos(<FONT FACE="SYMBOL">g</FONT>)*sin(<FONT FACE="SYMBOL">b</FONT>)*cos(<FONT FACE="SYMBOL">a</FONT>-<FONT FACE="SYMBOL">y</FONT>)</TD></TR> | |||
<TR><TD><FONT FACE="SYMBOL">h</FONT>:</TD><TD>Angle of incidence (vertical=0°)</TD></TR> | |||
<TR><TD><FONT FACE="SYMBOL">g</FONT>:</TD><TD>Altitude of the sun</TD></TR> | |||
<TR><TD><FONT FACE="SYMBOL">y</FONT>:</TD><TD>Azimuth of the sun (south=0°, positive towards west, negative towards east)</TD></TR> | |||
<TR><TD><FONT FACE="SYMBOL">b</FONT>:</TD><TD>Tilt of the component surface (vertical wall=90°)</TD></TR> | |||
<TR><TD><FONT FACE="SYMBOL">a</FONT>:</TD><TD>Azimuth of the normal to the component surface (south=0°, west positive).</TD></TR> | |||
</TABLE> | |||
<P> | |||
The direct radiation incident on the component surface is therefore: | |||
</P> | |||
<P> | |||
<TT> | |||
I_dir_in = I_dir_normal * cos(<FONT FACE="SYMBOL">h</FONT>)<BR> | |||
= (I_glob - I_diffus) * cos(<FONT FACE="SYMBOL">h</FONT>) / sin(<FONT FACE="SYMBOL">g</FONT>). | |||
</TT> | |||
</P> | |||
<P> | |||
The diffuse component consists of the radiation scattered by the air ("blue sky") | |||
and the clouds which comes from all directions and can approximately be treated | |||
as isotropic. Diffuse radiation is measured by blocking the direct radiation | |||
with a shadow ring around the solarimeter. The measurement gives <TT>I_diff</TT>, | |||
the diffuse radiation incident on the horizontal measuring surface from the entire | |||
sky hemisphere. A component surface with arbitrary tilt and orientation receives | |||
the same diffuse radiation (since it is isotropic), but for non-horizontal | |||
surfaces the fact has to be allowed for that the sky covers a smaller part of | |||
its field of view and the total amount of incident diffuse radiation is reduced proportionately (a vertical wall sees sky only in the upper half of its field of view): | |||
</P> | |||
<P> | |||
<TT>I_diff_in = I_diff * ( cos(<FONT FACE="SYMBOL">b</FONT>/2) )^2</TT>. | |||
</P> | |||
<P> | |||
Additionally, you may add the global radiation reflected from the ground: | |||
</P> | |||
<P> | |||
<TT>I_refl_in = <FONT FACE="SYMBOL">r</FONT> * I_glob * ( sin(<FONT FACE="SYMBOL">b</FONT>/2) )^2</TT>, | |||
</P> | |||
<P> | |||
where <FONT FACE="SYMBOL">r</FONT> is the short-wave albedo of the ground and the | |||
reflection is assumed to be isotropic. In the current version, WUFI ignores the | |||
reflected component of the radiation. | |||
</P> | |||
<P> | |||
The total radiation incident on the surface of the building component is the sum | |||
of the components: | |||
</P> | |||
<P> | |||
<TT>I_in = I_dir_in + I_diff_in + I_refl_in</TT>. | |||
</P> | |||
<P> | |||
You may now modify or supplement this conversion method according to your needs. | |||
For example, you can allow for shadows by setting the direct radiation to zero at | |||
times where the sun is behind the obstacle, and by reducing at all times the | |||
diffuse radiation in proportion to the reduction of the field of view caused | |||
by the obstacle. On the other hand, at times where the sun illuminates the facing | |||
side of the obstacle, it may be necessary to add some reflected radiation. | |||
</P> | |||
<P> | |||
Hint: if the radiation data to be converted have been averaged over some longer | |||
interval (e.g. one hour), please note the following: | |||
</P> | |||
<P> | |||
It is advisable to compute the solar positions for the middle of the measuring | |||
interval, i.e. the averaged data measured between <TT>9h</TT> and <TT>10h</TT> | |||
should be converted using the solar position computed for <TT>9:30h</TT>.<BR> | |||
If the sun has risen or set during such a measuring intervall (which is easy to | |||
check for, using the solar altitude), the solar position must be computed for | |||
the middle of the visibility interval, not for the middle of the measuring interval. | |||
</P> | |||
<P> | |||
Independent of the duration of the measuring interval, radiation data obtained | |||
at very low solar altitudes should not be used, since under these circumstances | |||
the direct normal radiation must be calculated from very small and unreliable | |||
values obtained for the direct radiation at grazing angles of incidence. | |||
</P> | |||
<P> | |||
Details on these conversion methods can be found in:<BR> | |||
VDI 3789 Umweltmeteorologie, Blatt 2: Wechselwirkungen zwischen Atmosphäre und Oberflächen; Berechnung der kurz- und der langwelligen Strahlung. | |||
</P> | |||
<P> | |||
In addition to data on global and diffuse radiation, the weather file | |||
<TT>IBP1991.WET</TT> included with WUFI contains radiation data obtained with | |||
a west-facing solarimeter which you can use to test your conversion routines. | |||
</P> | </P> |
Aktuelle Version vom 13. Juni 2013, 13:35 Uhr
(23): Conversation of Radiation Data for Other Directions
I want to perform a hygrothermal simulation of a wall on which every day a shadow is cast for some time by a building on the other side of the street. WUFI does not offer an option to allow for such a shadow, but I could simply use a self-created *.KLI file by converting the measured radiation myself and allowing for the sadow in this process. But, how is the conversion of the radiation data done?
First you need to determine the radiation incident on the surface of your building element from the measured data describing the radiation on a horizontal surface. For this purpose it is necessary to determine the position of the sun in the sky at the time of the measurement.
Position of the Sun:
Let J be the number of the day in the year (1 .. 365 or 366). Then compute the auxiliary quantity x:
x = 0.9856° * J - 2.72°
and the equation of time Z (in minutes):
Z = -7.66*sin(x) - 9.87*sin( 2*x + 24.99° + 3.83°*sin(x) ).
The equation of time describes the variable difference in time between the actual culmination of the sun and noon. Because of the ellipticity of the Earth's orbit and the obliquity of the Earth's axis the sun wanders with slightly irregular speed across the sky. During the course of the year there are thus times where it reaches culmination earlier than a fictitious sun with constant speed (the so-called 'mean' sun) and times where it reaches culmination later.
The local meridian is the great circle that rises from the horizon due north, passes through the point directly above the observer and crosses the horizon again due south. The instant at which the sun crosses the local meridian on its daily path from east to west is also the instant where its position is due south and where it reaches its daily greatest height.
When the apparent sun (i.e. the actually observed sun) crosses the meridian it is 12 noon local apparent solar time (LAT); when the mean sun crosses the meridian it is 12 noon local mean time (LMT). The equation of time is therefore the difference between LAT and LMT (Z = LAT - LMT).
Furthermore, since the place where the measurements were taken is usually not located on the reference meridian of the time zone (15° East for the Central European Time Zone, CET), the difference between local mean time and zone time must be allowed for, which is 4 minutes for 1° difference in geographical longitude L and one hour for 15° difference. If the measurement was timed in Central European Summer Time CEST, convert to CET first by subtracting one hour (CET = CEST - 1h).
In this way you can now compute the corresponding local apparent time LAT from the known measurement time (in CET):
LAT = CET - (15°-L)/(15°/h) + Z/(60 min/h) [h]
and thus determine the position of the sun: at 12 noon LAT the sun is
exactly on the meridian, before noon it stands at an appropriate distance to
the east of the meridian, after noon, an appropriate distance to the west.
The distance between the sun and the meridian is measured by the hour angle:
w = (LAT - 12h) * 15°/h.
The hour angle w is reckoned perpendicular to the meridian; it is negative before noon, zero at noon and positive after noon; it increases steadily by 15° per hour.
The hour angle gives the distance of the sun from the meridian; the declination d, i.e. the distance of the sun from the celestial equator, then fixes the position of the sun completely. The declination varies between -23°26' at winter solstice, 0° at the equinoxes, and 23°26' at the summer solstice. Since its change during one day is very small, it suffices to compute it once for the day J under consideration:
sin(d) = 0.3978 * sin( x - 77.51° + 1.92° * sin(x) ),
cos(d) = sqrt(1 - sin(d)^2)
where x is the auxiliary quantity introduced above.
The last step is the transformation from the coordinate system determined by w and d into the more familiar coordinates altitude g and azimuth y (=compass direction). The geographical latitude j of the measurement location is needed for this.
sin(g) = cos(d)*cos(w)*cos(j)+sin(d)*sin(j)
cos(g) = sqrt(1 - sin(g)^2)
if cos(g)=0 then y = 0
else begin
sin(y) = cos(d)*sin(w)/cos(g)
cos(y) = (cos(d)*cos(w)*sin(j)-sin(d)*cos(j))/cos(g)
y = atn2(sin(y), cos(y))
end
This formula uses atn2(A,B), the arctangent function for two arguments
A and B, which is provided by many programming languages, and which
gives the arctangent of A/B in the correct quadrant. If this function is
not available to you, you can use the ordinary arctangent and then explicitly determine
the correct quadrant (i.e. you compute y=atn(A/B), and in the case B<0
you add 180° if y<=0 or subtract 180° if y>0.
If B=0 and A<0 then y=-90°, if B=0 and
A>0, then y=+90°.).
The azimuth y is counted from south=0°, positive
towards the west and negative towards the east.
Examples for Munich (48.13°N, 11.58°E):
CET | Altitude | Azimuth | Declination |
---|---|---|---|
(J=1) | |||
1 Jan. 2001 09:00 | 6.436° | -44.614° | -22.987° |
1 Jan. 2001 12:00 | 18.836° | -4.209° | -22.977° |
1 Jan. 2001 16:00 | 3.441° | 49.590° | -22.962° |
1 Jan. 2001 16:25 | 0.434° | 54.316° | -22.961° |
(J=79) | |||
20 Mar. 2001 07:00 | 6.498° | -82.661° | -0.126° |
20 Mar. 2001 12:21 | 41.851° | -0.041° | -0.038° |
20 Mar. 2001 16:00 | 22.726° | 62.242° | 0.022° |
(J=172) | |||
21 Jun. 2001 08:00 | 34.501° | -87.522° | 23.437° |
21 Jun. 2001 12:00 | 65.126° | -8.437° | 23.437° |
21 Jun. 2001 18:00 | 19.771° | 103.475° | 23.436° |
These values were computed with an astronomical ephemeris program. Of course, the simplified method described above cannot reproduce these data exactly, in particular for low altitudes of the sun (1 Jan. 16:25), since it does not allow for atmospheric refraction. On the other hand, the comparison allows you to assess the overall accuracy of this simple method. Your results should agree with these exact positions within a few tenths of a degree. The declinations have been included as well for testing purposes.
Converting the Radiation Data:
We assume that your input data are measured hourly values of the global (I_glob) and the diffuse radiation (I_diff) on a horizontal surface.
The radiation incident on the measuring or the component surface is split up into a direct and a diffuse component. The direct component is received directly from the sun and is therefore a directed quantity that depends on the position of the sun. The direct radiation vertically incident on a surface which is facing the sun is the direct normal radiation I_dir_normal. The direct radiation I_dir obliquely incident on a horizontal measuring surface depends on the solar altitude g:
I_dir = I_dir_normal * sin(g).
Since I_dir can be computed as the difference between the measured values of global and diffuse radiation and g can be determined from the measurement location and time by the method given above, the corresponding direct normal radiation is
I_dir_normal = (I_glob - I_diff) / sin(g).
The angle of incidence h, i.e. the angle that the direct normal radiation makes with the normal to the component surface which is tilted by the angle b and oriented in the direction a, is
cos(h) = sin(g)*cos(b) + cos(g)*sin(b)*cos(a-y) | |
h: | Angle of incidence (vertical=0°) |
g: | Altitude of the sun |
y: | Azimuth of the sun (south=0°, positive towards west, negative towards east) |
b: | Tilt of the component surface (vertical wall=90°) |
a: | Azimuth of the normal to the component surface (south=0°, west positive). |
The direct radiation incident on the component surface is therefore:
I_dir_in = I_dir_normal * cos(h)
= (I_glob - I_diffus) * cos(h) / sin(g).
The diffuse component consists of the radiation scattered by the air ("blue sky") and the clouds which comes from all directions and can approximately be treated as isotropic. Diffuse radiation is measured by blocking the direct radiation with a shadow ring around the solarimeter. The measurement gives I_diff, the diffuse radiation incident on the horizontal measuring surface from the entire sky hemisphere. A component surface with arbitrary tilt and orientation receives the same diffuse radiation (since it is isotropic), but for non-horizontal surfaces the fact has to be allowed for that the sky covers a smaller part of its field of view and the total amount of incident diffuse radiation is reduced proportionately (a vertical wall sees sky only in the upper half of its field of view):
I_diff_in = I_diff * ( cos(b/2) )^2.
Additionally, you may add the global radiation reflected from the ground:
I_refl_in = r * I_glob * ( sin(b/2) )^2,
where r is the short-wave albedo of the ground and the reflection is assumed to be isotropic. In the current version, WUFI ignores the reflected component of the radiation.
The total radiation incident on the surface of the building component is the sum of the components:
I_in = I_dir_in + I_diff_in + I_refl_in.
You may now modify or supplement this conversion method according to your needs. For example, you can allow for shadows by setting the direct radiation to zero at times where the sun is behind the obstacle, and by reducing at all times the diffuse radiation in proportion to the reduction of the field of view caused by the obstacle. On the other hand, at times where the sun illuminates the facing side of the obstacle, it may be necessary to add some reflected radiation.
Hint: if the radiation data to be converted have been averaged over some longer interval (e.g. one hour), please note the following:
It is advisable to compute the solar positions for the middle of the measuring
interval, i.e. the averaged data measured between 9h and 10h
should be converted using the solar position computed for 9:30h.
If the sun has risen or set during such a measuring intervall (which is easy to
check for, using the solar altitude), the solar position must be computed for
the middle of the visibility interval, not for the middle of the measuring interval.
Independent of the duration of the measuring interval, radiation data obtained at very low solar altitudes should not be used, since under these circumstances the direct normal radiation must be calculated from very small and unreliable values obtained for the direct radiation at grazing angles of incidence.
Details on these conversion methods can be found in:
VDI 3789 Umweltmeteorologie, Blatt 2: Wechselwirkungen zwischen Atmosphäre und Oberflächen; Berechnung der kurz- und der langwelligen Strahlung.
In addition to data on global and diffuse radiation, the weather file IBP1991.WET included with WUFI contains radiation data obtained with a west-facing solarimeter which you can use to test your conversion routines.