Here, we present InFocus, an open-source, user-friendly, flexible and benchmarked model for fast vectorial analysis of the volumetric field distribution of light near the focus in any medium. The code corresponding to the freeware is written in MATLAB formalism. The spatial profile and the wavelength of the input beam can be set as arbitrary. The propagation is computed in up to two media (e.g. air and glass). The model accounts for aberrations induced by the focusing optics as well as eventual refractive index mismatch.
One can directly run InFocus.mlapp in the R2018a or later version of MATLAB.
Except where otherwise noted, this freeware is made available under the Creative Commons Attribution-NonCommercial 4.0 License (see LICENSE.md for full details). For use outside the conditions of the license, please contact Qingfeng Li. By downloading this freeware, you agree on your honor that the InFocus will be used for nonprofit purposes only, such as education or academic research.
InFocus can be freely utilized for nonprofit purpose. In return, when the results obtained with InFocus lead to publication (e.g., in articles and conference proceedings whether peer-reviewed or not), the authors are kindly asked to mention the name of the freeware (InFocus) in the text, and to cite the below-mentioned article in the references. In this article, the theoretical approach associated with InFocus is described and benchmarked with experimental propagation results in various configurations.
Q. Li, M. Chambonneau, M. Blothe, H. Gross, S. Nolte, "Flexible, fast, and benchmarked vectorial model for focused laser beams," Applied Optics 60(13), 3954-3963 (2021). https://doi.org/10.1364/AO.421945