Fast annual daylighting simulation and high dynamic range image processing using NumPy

Nathaniel L. Jones
DOI: https://doi.org/10.1080/23744731.2024.2324626
2024-04-02
Science and Technology for the Built Environment
Abstract:Annual daylighting and point-in-time glare calculations depend on manipulating large matrices representing annual light levels and image pixels, respectively. Advances in computation speed have allowed modern green building standards like LEED, WELL, and EN 17037 to require annual daylighting calculations at a fine resolution across a building's floorplate. As parallel ray tracing speeds become faster and cameras increase in resolution, matrix manipulation itself has emerged as a bottleneck to delivering fast simulation results. This paper describes a how vectorized computation methods can be applied to annual daylighting simulation and high dynamic range (HDR) image processing. Vectorization allows a computer to perform simple operations on large amounts of data simultaneously. We use the NumPy library in Python to vectorize multiple steps in the calculation of spatial daylight autonomy and annual renderings for glare as example climate-based daylighting metrics, achieving a speedup of two orders of magnitude. We also show that NumPy can manipulate large HDR images with speedups for individual operations up to six orders of magnitude.
engineering, mechanical,thermodynamics,construction & building technology
What problem does this paper attempt to address?