Daylight
Daylight is modelled with the same flux-transfer solver as electric light, so the two combine consistently rather than being estimated separately and added.
Direct component through glazing
For a point P on the working plane, the illuminance arriving through an aperture is integrated over the glazing:
E = integral L(sky direction) * cos(theta_P) * cos(theta_W) / r^2 dA * tau
This is the luminous-element form of the inverse square law: cos(theta_W) dA / r^2 is the solid angle the aperture element subtends at P, and cos(theta_P) projects it onto the working plane. The net transmittance tau is the product of the glazing's visible light transmittance, the frame factor and the dirt factor, times the shade transmittance when a shade is deployed.
Directions below the external obstruction angle are replaced by the obstruction luminance, which gives the externally reflected component. The obstruction is treated as a diffuse surface at its own reflectance, lit by the sky it obscures.
Interreflected component
Flux entering the glazing is traced onto the room surfaces and handed to the radiosity solver. For each aperture sub-patch and each sky patch, the entering flux is
dPhi = L * cos(theta_W) * domega * dA * tau
and the ray continues into the room along the reversed sky direction until it meets a surface. This is a real interreflection solution, not the BRE empirical internally-reflected-component formula, though the BRE closed form is also computed and reported as an independent check.
Sky models
CIE standard overcast sky, for daylight factors
L(theta) = Lz * (1 + 2 sin theta) / 3
with theta the altitude. Integrating over the hemisphere gives the exterior horizontal illuminance analytically:
Eh = (7/9) * pi * Lz
Because both interior and exterior values scale with Lz, the daylight factor is independent of absolute sky brightness, which is the whole point of the metric. The horizon-to-zenith luminance ratio is 1:3.
CIE standard general sky, for climate-based work
Fifteen standard sky types, from overcast through partly cloudy to clear:
L(Z, chi) / Lz = [ f(chi) * phi(Z) ] / [ f(Zs) * phi(0) ]
phi(Z) = 1 + a exp(b / cos Z) gradation
f(chi) = 1 + c [ exp(d chi) - exp(d pi/2) ] + e cos^2 chi indicatrix
with Z the sky element's zenith angle, chi its angle from the sun and Zs the solar zenith angle. Type 1 is the overcast sky and reproduces the same 1:3 horizon-to-zenith ratio as the Moon and Spencer form, which is a useful consistency check between the two models. Type 12 is the standard clear sky.
The sky type for each hour is chosen from the clearness index. With measured weather data, prefer deriving the type from the measured diffuse and direct components.
Sky subdivision
The hemisphere is divided into the Tregenza 145 patches: seven altitude rows of 30, 30, 24, 24, 18, 12 and 6 patches, plus a zenith cap. The solid angles sum to exactly 2 pi, which the test suite asserts.
Solar position
The NOAA low-precision algorithm, accurate to better than 0.01 degrees for 1900 to 2100, including the equation of time and atmospheric refraction. The test suite checks equinox noon altitude against 90 minus latitude, solstice declination against the obliquity of the ecliptic, and computed sunrise and sunset against published times.
Climate model
The chain from location and time to sky illuminance:
- Extraterrestrial normal irradiance
Gon = Gsc (1 + 0.033 cos(360 n / 365))with Gsc = 1367 W/m²,
and its horizontal projection Goh = Gon cos(Z).
- Global horizontal irradiance from the clearness index,
GHI = Kt Goh. Kt comes from the location's
monthly climate record, reduced near sunrise and sunset for the longer air mass.
- Diffuse fraction from the Erbs correlation:
`` Kt <= 0.22 : Kd = 1.0 - 0.09 Kt 0.22-0.80 : Kd = 0.9511 - 0.1604Kt + 4.388Kt^2 - 16.638Kt^3 + 12.336Kt^4 Kt > 0.80 : Kd = 0.165 ``
- Irradiance to illuminance through luminous efficacy, taken separately for diffuse skylight
(125 lm/W) and the direct beam (100 lm/W). Both are configurable, because they vary with air mass and atmospheric water content.
The monthly clearness values shipped with each location are a model, derived from latitude and
climate class, not measured weather. They give a sensible annual picture immediately. For work that
has to be defended, import a measured dataset.
Annual metrics
Annual results use daylight coefficients: the geometric response of each point to each sky patch is computed once, then each time step costs only a dot product. The interreflected term is scaled by the total transmitted flux, which is accurate because that field is smooth and driven by total flux rather than by its angular detail. Direct sun is tested per point per step, since the sun is either visible through the glazing or it is not.
| Metric | Definition | | --- | --- | | Daylight factor | Interior illuminance as a percentage of unobstructed exterior horizontal illuminance, CIE overcast sky | | Daylight autonomy | Percentage of occupied hours where daylight alone reaches the target | | Continuous DA | As above with partial credit below the target | | Spatial DA | Percentage of the area achieving daylight autonomy of at least 50 per cent | | Useful daylight illuminance | Percentage of occupied hours in the useful band, 100 to 2000 lx by default | | UDI excessive | Hours above the upper bound, a signal to check glare and solar gain |
The default time model walks 12 representative days by 24 hours, weighted by days per month: 288 steps instead of 8760. That cuts the work thirty-fold while tracking annual availability closely, because the sky model is already built on monthly means. The full 8760-step run is available for a final check.
Daylight-responsive controls
Each control zone trims its circuit so daylight plus electric light reaches the target:
level = clamp( (Et - Ed) / Ee , minOutput , 1 )
with Ed the daylight illuminance at the sensor, Et the target and Ee the electric contribution at full output. This is closed-loop photoelectric control. Stepped control quantises upward to the nearest step; switching turns off once daylight alone clears the target plus a deadband, which prevents hunting.
The saving is computed hour by hour against the actual daylight available, not from an assumed percentage, and the uncontrolled reference runs through the identical power model so the comparison isolates the control strategy.
Assumptions to be aware of
- Glazing is treated as a diffusing aperture for the sky component. Specular redirection by light
shelves, prismatic glazing or blinds with defined slat geometry is not modelled.
- Internal obstructions such as partitions are not included unless drawn as room geometry.
- External obstruction is a single altitude angle per window, not a modelled skyline.
- Shades are a transmittance multiplier, with no automatic control schedule.