English

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

Optics 2022-04-06 v1 Computational Physics

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

Cite

@article{arxiv.2203.02734,
  title  = {PyWolf: A PyOpenCL implementation for simulating the propagation of partially coherent light},
  author = {Tiago E. C. Magalhães and José M. Rebordão},
  journal= {arXiv preprint arXiv:2203.02734},
  year   = {2022}
}

Comments

16 pages, 9 figures, preprint to submitted to Computer Physics Communications (Elsevier)

R2 v1 2026-06-24T10:03:10.573Z