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

Tiago E. C. Magalhães, José M. Rebordão
3/5/2022
physics.opticsphysics.comp-ph

Official code: tiagoecmagalhaes/PyWolf (12 stars, Python, LGPL-3.0, last commit 2024-11-16).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

LGPL-3.0

PyWolf is a software to perform simulations of partially coherent light propagation using parallel computing devices through PyOpenCL

121PythonMay 16, 20202 years agoLGPL-3.0
coherent-diffraction-imagingpyopencl

Similar Papers

Cite this paper

@article{magalhes2022pywolf,
  title  = {PyWolf: A PyOpenCL implementation for simulating the propagation of partially coherent light},
  author = {Tiago E. C. Magalhães and José M. Rebordão},
  year   = {2022},
  eprint = {2203.02734},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.02734}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.02734.svg)](https://codeofpaper.com/paper/2203.02734)

Discussion