forked from sbyrnes321/tmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
36 lines (27 loc) · 1.33 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- coding: utf-8 -*-
"""
tmm - A transfer-matrix method optics package, for calculating
reflection, transmission, absorption, and other relevant aspects of thin
and thick multilayer (or single-layer) films.
Written by Steven Byrnes, http://sjbyrnes.com . Package lives at
https://pypi.python.org/pypi/tmm
Released under MIT license (Expat).
For details see manual.pdf (should be included with the distribution, otherwise
get it at http://sjbyrnes.com/fresnel_manual.pdf ). Physics background,
conventions, and derivations are at https://arxiv.org/abs/1603.02720
For the various functions and their explanations and syntaxes, browse tmm_core,
particularly the docstrings of all the functions. Most important of
these are:
tmm.coh_tmm(...) -- the transfer-matrix-method calculation in the coherent
case (i.e. thin films)
tmm.inc_tmm(...) -- the transfer-matrix-method calculation in the incoherent
case (i.e. films tens or hundreds of wavelengths thick, or whose
thickness is not very uniform.
In tmm.examples you will find some sample calculations and plots.
In tmm.tests you will find various tests that the package is coded
correctly.
In tmm.colors you will find extra functions for calculating the color of a
multilayer thin film under reflected light.
"""
from __future__ import division, print_function, absolute_import
from .tmm_core import *