Skip to content

grishaspektor/PyTMM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTMM

Transfer Matrix Method implementation & RefractiveIndex.info database (2015-05-24) browser

Documentation

Extended documentation can be found at kitchenknif.github.io/PyTMM

Installation & Basic Usage

By default the RefractiveIndex module thinks that it is installed side-by-side with the RefractiveIndex.info database:

.
+-- _PyTMM
|   +-- refractiveIndex.py
+-- RefractiveIndex
|   +-- library.yml

In this case, the database can be used as follows:

catalog = RefractiveIndex()
mat = catalog.getMaterial('main', 'Si', 'Aspnes')
# wavelength in nanometers
n = mat.getRefractiveIndex(500))
n = mat.getExtinctionCoefficient(500))

If your folder structure is different, you just need to specify the path to the RefractiveIndex database:

catalog = RefractiveIndex("./path/to/folder/with/RefractiveIndex/database")
mat = catalog.getMaterial('main', 'Si', 'Aspnes')
n = mat.getRefractiveIndex(500))  # wavelength in nanometers

Examples of using the transferMatrix module can be found in

.
+-- _PyTMM
|   +-- examples

Dependencies

  • numpy
  • scipy
  • pyyaml
  • matplotlib (for plotting)

About

Transfer Matrix Method implemetation & RefractiveIndex.info database browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.8%
  • MATLAB 3.2%