This package in the making offers the possibility to create optical setup and visualize the light rays going through it.
It originated as a way to better understand how instruments in astronomy worked, and allow to design them for amateur scientific endeavours. However, this package can be used in very different fields !
Since version 1.2.0, Opticalpy features a 3D version, with the same advantages as the 2D version ! This 3D version is accessible by importing opticalpy.op3d
. It curently features less elements than the 2D version, but will be incremently improved.
-
It allows for modeling setup that use dispersive elements (gratings, prism, grism), and soon will also take dispersion in lenses into account.
-
The optical elements geometry are described by parameterized curves allowing for exact interaction bewteen light rays and optical elements. This gives way better results than using discretized elements. To make this easy to use, each optical element is defined by one set of equations, that are automatically modified to place it where and in the orientation you want. The most common optical elements are already implemented, but you can add whatever you want with the method !
This package can be very easily installed using pip :
pip install opticalpy
This package integrates the following optical elements. The elements in italic aren't developed yet but should be added soon.
-
Mirror:
- Flat
- Parabolic
- Hyperbolic
- Spherical
-
Lens:
- Spherical
- Doublet
- Triplet
-
Dispersive:
- Reflection grating
- Transmission grating
- Prism
- Grism
-
Filter:
- Filter
- Dichroic
-
Camera
-
Telescopes
- Newtonian
- Cassegrain
- Ritchey-Chrétien
- Schmidt-Cassegrain
- Maksutov-Cassegrain
-
More elements:
- Materials for dispersive lenses
- Lenses arrangment (doublet, triplet...)
- Grisms
- More telescopes (Newtonian, Schmidt-Cassegrain, Maksutov-Cassegrain)
-
Optical design:
- Spot shape at focal plane
- Design optimization (fixed and variable geometrical and shape parameters and optimization of spot sizes)
-
Making it easier to use:
- Documentation
- Telescopes formulas : Mike Lockwood, Amateur Telescope Making, http://loptics.com/ATM/index.html
- Optical properties of water : https://en.wikipedia.org/wiki/Optical_properties_of_water_and_ice