BIBLIOS

  Ciências References Management System

Visitor Mode (Login)
Need help?


Back

Publication details

Document type
Journal articles

Document subtype
Full paper

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

Participants in the publication
Tiago E.C. Magalhães (Author)
José M. Rebordão (Author)
Dep. Física
IA

Summary
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. Program summary: Program Title: PyWolf CPC Library link to program files: https://doi.org/10.17632/frjscxypkd.1 Developer's repository link: https://github.com/tiagoecmagalhaes/PyWolf Licensing provisions: GPLv3 Programming language: Python External routines: NumPy, SciPy, Matplotlib, PyOpenCL, PyQt5 Nature of problem: Numerical simulations of the propagation of partially coherent light from planar sources in the Fresnel or far field approximations. Computation time can be improved by using optimized versions of the Fast Fourier Transform (FFT) algorithm, but other calculations can only be increased through parallel computation. Solution method: We use the open-source toolkit PyOpenCL to perform parallel computation on time-consuming calculations. The user can easily modify and add more features to the software, such as source models and propagation methods. A graphical user interface is also built using PyQt5 which enables the user to set input parameters, including the user's custom models, view the simulation results, export data, and save and load sessions.

Date of Publication
2022-07

Institution
FACULDADE DE CIÊNCIAS DA UNIVERSIDADE DE LISBOA

Where published
Computer Physics Communications

Publication Identifiers
ISSN - 0010-4655

Publisher
Elsevier BV

Volume
276

Starting page
108336

Document Identifiers
DOI - https://doi.org/10.1016/j.cpc.2022.108336
URL - http://dx.doi.org/10.1016/j.cpc.2022.108336

Rankings
Web Of Science Q1 (2020) - 4.39 - PHYSICS, MATHEMATICAL - SCIE

Keywords
Coherence theory Cross-spectral density Parallel computation Partially coherent light propagation PyOpenCL Coherence theory Cross-spectral density Parallel computation Partially coherent light propagation PyOpenCL


Export

APA
Tiago E.C. Magalhães, José M. Rebordão, (2022). PyWolf: A PyOpenCL implementation for simulating the propagation of partially coherent light. Computer Physics Communications, 276, ISSN 0010-4655. eISSN . http://dx.doi.org/10.1016/j.cpc.2022.108336

IEEE
Tiago E.C. Magalhães, José M. Rebordão, "PyWolf: A PyOpenCL implementation for simulating the propagation of partially coherent light" in Computer Physics Communications, vol. 276, 2022. 10.1016/j.cpc.2022.108336

BIBTEX
@article{55451, author = {Tiago E.C. Magalhães and José M. Rebordão}, title = {PyWolf: A PyOpenCL implementation for simulating the propagation of partially coherent light}, journal = {Computer Physics Communications}, year = 2022, volume = 276 }