Simulating an Optical Raytracer

Goal

  • Code a raytracer in Python with object-oriented programming to simulate raybundles passing through various optical elements.
  • Test code by comparing aberrations of the correct and incorrect orientation of a plano-convex lens.

Software

  • Used Snell's law and small-angle approximations to propagate rays through created surfaces.
  • Object classes included the ray bundles and the optical elements.
  • Used rms distance to the central axis to calculate aberrations.

Keywords

Python

Optics

Object-Oriented Programming

Leave a Comment