Skip to content
Optical Filter Tool: draws and calculates transmission matrices of optical filters
Python TeX
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
README.md
example.png
example.py
example_document.tex
ofit.py

README.md

ofit: optical filter tool

This python program is designed to assist in the design and handling of optical filters. It can create filters that consist of couplers, phase shifters, delay elements, ring elements and crossing elements. From those, more complex structures can be constructed. Common composites like a (symmetric and asymmetric) Mach–Zehnder interferometer are available, too. Since this is a very specific topic in my research field, feel free to contact me or see my thesis for orientation (s9w.io)

The filters can then be drawn (via TikZ) and the transmission matrix containing the transfer functions be calculated.

usage

There is an example.py file with some examples. Running it with python example.py will write the matrix and the image in the given filenames. The TikZ image can be used like any other TikZ code, an example is in the example_document.tex. Output of example file is matrix, plus a tex/pdf which should look like this:

You can’t perform that action at this time.