{"repo":"rafael-fuente/diffractsim","free":true,"listed":false,"github":"https://github.com/rafael-fuente/diffractsim","clone":"git clone https://github.com/rafael-fuente/diffractsim.git","description":"✨🔬 A flexible diffraction simulator for exploring and visualizing physical optics.","language":"Python","stars":1065,"topics":["optics","diffraction-simulations","python","angular-spectrum-method","physics","physics-simulations","diffraction","diffraction-pattern","wave-optics","holography"],"license":null,"category":"dev-tools","readme_excerpt":"Diffractsim: A diffraction simulator for exploring and visualizing physical optics Flexible, and easy-to-use Python diffraction simulator that focuses on visualizing physical optics phenomena. The simulator uses mainly scalar diffraction techniques for light propagation, provides a nice interface for simulation set up, and includes several plotting options, counting with CIE Color matching functions for accurate color reproduction. The implemented methods are differentiable when using the JAX-backend, enabling optimization and design of the optical setups. The basic use of this simulator using the angular spectrum method is described in this article. Take a look to the videos to see the animated simulations! Features - [x] Arbitrary apertures and light spectrums - [x] Full-path optical propagation and arbitrary zoom in the region of interest - [x] Lenses - [x] Phase holograms generation and reconstruction - [x] GPU acceleration - [x] Differentiable propagation - [ ] Incoherent Light (coming soon) Installation Alternatively, to download the examples and the apertures as well, you can also build from source by cloning the repository and running from the main folder project on the command prompt: Examples To perform the simulations, just run from the examples subdirectory the corresponding Python scripts on the command prompt. To compute your own diffraction pattern, you'll need to specify in the script the aperture as an image and input its size. The examples from the video abo","default_branch":null,"files":null,"tree":[],"storefront":"/r/rafael-fuente","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rafael-fuente/diffractsim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}