[Radiance-general] Strange gendaylit behavior

Jia Hu hujia06 at gmail.com
Fri Oct 7 18:00:42 PDT 2011


Hi Rob:

I run it in Ubuntu. Please see bellow. It seems no errors.  The error you
got says the sky_brightness is out of range, the upper range of
skybrightness is 0.6. I did check the code but can not figure out why you
have such errors. The skybrightness is calculated by:

diffusirradiance * air_mass() / solar_constant_e*get_eccentricity().

********************
double get_eccentricity()
{
double day_angle;
 double E0;

day_angle  = 2*M_PI*(daynumber - 1)/365;
E0         = 1.00011+0.034221*cos(day_angle)+0.00128*sin(day_angle)+
    0.000719*cos(2*day_angle)+0.000077*sin(2*day_angle);

return (E0);

}
===============================

jiahu at jiahu:~$ gendaylit 7 19 19:00:00 -a 39.740000000000002 -o
-105.18000000000001 -m -105.0 -L 0.0 1926.55187439894
# gendaylit 7 19 19:00:00 -a 39.740000000000002 -o -105.18000000000001 -m
-105.0 -L 0.0 1926.55187439894
# Ground ambient level: 2.8

void brightfunc skyfunc
2 skybright perezlum.cal
0
10 2.091e+00 5.556e-01 0.524236 -0.570392 0.832619 -0.637964 0.014613
-0.907109 0.416674 0.059465

===================================
# /usr/bin/gendaylit 7 19 19:00:00 -a 39.740000000000002 -o
-105.18000000000001 -m -105.0 -L 0.0 1926.55187439894
# Ground ambient level: 2.8

void brightfunc skyfunc
2 skybright perezlum.cal
0
10 2.091e+00 5.556e-01 0.524236 -0.570392 0.832619 -0.637964 0.014613
-0.907109 0.416674 0.059465

=================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20111007/a82e3b06/attachment.html>


More information about the Radiance-general mailing list