RESEARCH
<< back
PyWolf: A PyOpenCL implementation for simulating the propagation of partially coherent light

T. E. C. Magalhães, J. M. Rebordão

Abstract
We present PyWolf, an open-source software capable of performing numerical simulations of partially coherent light propagation from two-dimensional light sources. PyWolf computes the evolution of a user-defined cross-spectral density function in the Fresnel and far field approximations, which enables the retrieval of second-order optical quantities of interest such as the spectral degree of coherence and spectral density for a given frequency. The open-source tool kit PyOpenCL is used to increase the computation speed. We present examples of propagation of different source models and optical systems to validate our implementation. Performance results for the computation speed when using parallel computation through PyOpenCL is shown. Source models and propagation systems can be easily added to PyWolf, which has a graphical user interface built with PyQt5. This software can be of great utility for partially coherent light simulation problems that are difficult to treat analytically.

Keywords
Coherence theory; PyOpenCL; Partially coherent light propagation; Parallel computation; Cross-spectral density; Physics - Optics; Physics - Computational Physics

Computer Physics Communications
Volume 276
2022 July

>> ADS>> DOI

Faculdade de Ciências da Universidade de Lisboa Universidade do Porto Faculdade de Ciências e Tecnologia da Universidade de Coimbra
Fundação para a Ciência e a Tecnologia COMPETE 2020 PORTUGAL 2020 União Europeia