6 January 2022 KrakenOS: Python-based general exact ray tracing library
Joel Herrera, Carlos A. Guerrero, Morgan R. Najera, Anais Sotelo-Burke, Ilse Plauchu-Frayn
Author Affiliations +
Abstract

Exact ray tracing is the fundamental tool of geometric optics, it constitutes the foundation on which aberration theory and, therefore, optical design is based. We present the KrakenOS, a Python library focused on the accuracy of ray tracing and the generation of systems composed by optical surfaces with arbitrary shapes and orientations, as well as a compendium of practical examples for the use of our library. We describe a series of quality tests to compare the results obtained from ray tracing with KrakenOS with respect to those obtained with the commercial software Zemax. Among the performance computations, we include the final intersection coordinates with optical surfaces, the resulting director cosines, the calculation of surface-to-surface length of the optical path, the energy of the transmitted and reflected resulting rays, Zernike standard coefficients from wavefront fitting, and a comparison of the resulting intersection coordinates with a larger optical system. The difference between our results and those of Zemax is of the order of 9.0  ×  10  −  8 mm, demonstrating that KrakenOS can be used in industrial or scientific work with high precision requirements for simple and very complex optical configurations.

© 2022 Society of Photo-Optical Instrumentation Engineers (SPIE) 0091-3286/2022/$28.00 © 2022 SPIE
Joel Herrera, Carlos A. Guerrero, Morgan R. Najera, Anais Sotelo-Burke, and Ilse Plauchu-Frayn "KrakenOS: Python-based general exact ray tracing library," Optical Engineering 61(1), 015101 (6 January 2022). https://doi.org/10.1117/1.OE.61.1.015101
Received: 22 September 2021; Accepted: 21 December 2021; Published: 6 January 2022
Lens.org Logo
CITATIONS
Cited by 2 scholarly publications.
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Ray tracing

Zemax

Optical engineering

Geometrical optics

Telescopes

Wavefronts

Glasses

RELATED CONTENT

Aberrations of a transparent sphere
Proceedings of SPIE (September 20 2010)
Using matrices to understand geometrical optics
Proceedings of SPIE (June 16 2000)
The Use Of Paraxial Solves In Lens Design
Proceedings of SPIE (December 01 1978)

Back to Top