This Python repository contains a template script to write binary source files for OpticStudio. It also contain an example implementing the envelope of a stigmatic gaussian beam source as described by P. Colbourne (http://dx.doi.org/10.1117/12.2071105)
- write_source_TEMPLATE.py
- write_source_stigmatic_gaussian_beam.py
Note that if one wants to use spectral information in each ray, the file extension should be SDF, and not DAT
Those files have to be placed in your document folder under \Zemax\Objects\Sources\Source Files
- binary_source.dat
- stigmatic_gaussian_beam.dat
By loading this archive into OpticStudio, it automatically installs the stigmatic Gaussian beam source file into the correct location
- Stigmatic_Gaussian_Beam_Binary_Source_Example.zar