Skip to content

BeamFour/Beam42

Repository files navigation

Beam42 Optical Ray Tracer

This project is an attempt to create a basic geometric optical analysis software. My interest is mostly in analysing photographic lens designs.

The project combines solutions from following open source projects:

Features and Goals

Note: This is work-in-progress

  • Mainly focused on Photographic Lenses.
  • Can import lens specifications in the format supported by PhotonsToPhotos Optical Bench.
  • Can export to Zemax, BEAM FOUR, MJH Ray Optics.
  • Features a command line tool that takes in the lens specification and generates following outputs:
    • Spot diagrams (SVG)
    • Layout diagrams (SVG)
    • Geometric MTF (SVG)
    • Ray aberration plots
    • OPD plots
    • Paraxial report
    • Zemax file
  • Features a Levenberg Marquardt Lampton solver based optimizer with following features
    • Set variables on surface properties
    • Fit to spot size or ray aberration goals or MTF targets
    • Constrain by paraxial parameters
    • The optimization functions above are available only via Java API calls. There is no UI for this.
    • Note: There are some optimization functions in BeamFour that do have a UI; but BeamFour is a more general ray tracing and analysis software that doesn't do many things that are typical of photographic lenses.

Examples

Resources

Literature

  • Donald P. Feder, "Optical Calculations with Automatic Computing Machinery," J. Opt. Soc. Am. 41, 630-635 (1951). This short paper provides equations for ray tracing for rotationally symmetric surfaces, including aspherics. Equations are provided in a format suitable for computer programs. Additionally, this paper also covers calculation of image aberrations. Warren J. Smith: Modern Optical Engineering book has a description of the algorithms in this paper.

  • G. H. Spencer and M. V. R. K. Murty, "General Ray-Tracing Procedure," J. Opt. Soc. Am. 52, 672-678 (1962). This paper presents generalized ray tracing equations that cover not only rotationally symmetric surfaces (including aspherics) but also diffraction gratings. The paper allows for surfaces to have their own local axes. BeamFour implementation of ray tracing is based on this paper.

  • R. E. Hopkins and R. Hanau, "Fundamental Methods of Ray Tracing," in Military Standardization Handbook: Optical Design, MIL-HDBK 141, U.S. Defense Supply Agency, Washington, DC, 1962. This is the fifth chapter in the document. It covers ray tracing equations for rotationally symmetric surfaces including aspheric surfaces. The equations are presented in a form suited for implementation in computer programs. The final equations in this document are very similar to Feder's equations. This document goes into details of how these equations are derived. Daniel Malacara: Handbook of Optical Design has a description of the ray tracing equations found in this document.

  • Bram de Greve, "Reflections and Refractions in Ray Tracing," 2004. This paper appears to be the source for the refraction equations used by GNU Optical.

  • Telescope Optics - GNU Optical source code has references to this, it is unclear whether this is a reference to the book of this name by Rutten and Venrooij.

Related Projects

Here are some other projects that I have not personally tried out

About

Beam42 is a Geometrical Optic Ray Tracer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages