Skip to main content

Simulate light propagation in multilayer thin and/or thick films using the fresnel equations and transfer matrix method.

Project description

Author homepage: http://sjbyrnes.com

Package home at PyPI: http://pypi.python.org/pypi/tmm

Package home at Github: https://github.com/sbyrnes321/tmm

This is a group of programs written in Python / NumPy for simulating light propagation in planar multilayer thin films, including the effects of multiple internal reflections and interference, using the “Transfer Matrix Method”. It can also simulate combinations of thin and thick films (e.g. a thick piece of glass with a multi-layer antireflection coating on one side and a mirror on the other side), or purely thick films.

In addition to calculating how much light is transmitted and reflected, the program can calculate, at any given point in the structure, how much light is being absorbed there. This is a very important feature for solar-cell modeling, for example.

It can also calculate the parameters measured in ellipsometry. It can also calculate the RGB or xyY color of a multilayer thin film (this requires colorpy, https://pypi.python.org/pypi/colorpy).

For more information, see manual.pdf . Get it directly at http://sjbyrnes.com/fresnel_manual.pdf . For the list of all functions and how to call them, browse the source code or go to https://pythonhosted.org/tmm/

Tested in Python 2.7 and 3.3. (If you want to do color calculations in Python 3, you need to use the Python-3-compatible version of colorpy here.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmm-0.1.6.tar.gz (194.0 kB view details)

Uploaded Source

File details

Details for the file tmm-0.1.6.tar.gz.

File metadata

  • Download URL: tmm-0.1.6.tar.gz
  • Upload date:
  • Size: 194.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tmm-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4ac11857476feaa6dd29fb13e458157432b0e53d31c27000c0f46b3d39d58853
MD5 280aa47d0837f1925019ba4376102f02
BLAKE2b-256 5be8e81ac30d7c10dbe1d335823b057d75d1e8007009cd94b5844c9940bcab18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page