Skip to main content

PyEtalon simulates the physics of Fabry-Perot etalons.

Project description

GitHub Actions Workflow Status GitHub top language GitHub License PyPI - Version

Logo

pyetalon

PyEtalon is a Python library to analyse the multilayer interference of thin films in the context of etalons.

It provides an easy interface to calculate the phase shift of a known multilayer stack. Also, it allows fitting of the multilayer stack parameters to measured peak data of an etalon.

PyEtalon makes heavy use of PyIndexRepo, a python library to access the refractive index data from RefractiveIndex.info. See the documentation of PyIndexRepo for more information on how to access the refractive index data.

User guide

Background

The free spectral range (FSR) of an etalon is the distance between two adjacent transmission peaks. For an ideal etalon, it is given by the following equation:

$FSR_{\nu}= \Delta \nu = \frac{c}{2nL\cdot \cos(\theta)}$

where $c$ is the speed of light in vacuum, $n$ is the refractive index of the medium between the plates, $\theta$ is the angle of incidence, and $L$ is the distance between the plates.

In wavelength, the FSR is given by:

$FSR_{\lambda} = \Delta \lambda = \frac{\lambda^2}{2nL \cos(\theta)}$

where $\lambda$ is the wavelength of light in vacuum.

Similarly, the absolute peak wavelength of the etalon is given by:

$\lambda = \frac{2nL \cos(\theta)}{m}$

where $m$ is the order of the interference peak.

All equations above are only valid for an ideal etalon. In reality, upon reflection on the etalon mirrors, the light undergoes a phase shift. This phase shift is given by the Fresnel equations and depends on the refractive index of the materials involved. As a consequence, both, the FSR and the absolute peak wavelength are modified by the phase shift. It is most intuitive to think of the phase shift as a change in the effective optical path length or mirror separation $L$.

The peak wavelength is then given by:

$\lambda = \frac{2nL \cos(\theta)+ \lambda \frac{\Phi_{\lambda}}{\pi}}{m}$

Example

Let's walk through the simulation of a simple etalon with a single layer of 30nm of silver on a glass substrate. The etalon is illuminated with a plane wave at normal incidence.

The wavelength dependent refractive indices of the three materials are represented by a Material object, which can be created from a tabulated data set or a formula or by querying the refractive index database.

To calculate optical properties of an etalon, create an Etalon object and use the provided helper functions.

import numpy as np

from pyetalon.etalon import Etalon
from pyetalon.plotting import plot_fsr
from pyindexrepo import RefractiveIndexLibrary, Material, TabulatedIndexData, FormulaIndexData
from pyindexrepo.dispersion_formulas import formula_2


# Create vacuum 'material' by using a tabulated data set
Vacuum = Material(TabulatedIndexData([.1, 10.000], [1.0, 1.0]))
# Create the substrate material by using the Sellmeier formula and vendor data for Suprasil
Suprasil = Material(FormulaIndexData(formula_2, [0., 6.72472034E-01, 4.50684530E-03, 4.31646851E-01, 1.33090179E-02, 8.85914296E-01, 9.67375952E+01], .185, 2.326), None)
# Create the silver material by querying the refractive index database, selecting the Ciesielski data set for thin films
db = RefractiveIndexLibrary()
Silver = db.get_material('main', 'Ag', 'Ciesielski')


# Create an etalon object
silver_etalon = Etalon(
    [Vacuum, Silver, Suprasil],                     # specify the layer materials
    ["Vacuum", "Silver", "Substrate"],              # specify the layer names
    [-np.inf, 30., np.inf],                         # specify the layer thicknesses
    [0, 1, 2],                                      # specify the layer order/indices
    wavelength=np.linspace(500, 1100, 5000),        # specify the wavelength range
    d_spacer=5E-3,                                  # specify the spacer thickness in meters
    aoi=.0,                                         # specify the angle of incidence in degrees
    identifier='Silver 30nm'                        # specify the identifier of the etalon
)

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

pyetalon-0.1.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyetalon-0.1.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pyetalon-0.1.1.tar.gz.

File metadata

  • Download URL: pyetalon-0.1.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyetalon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 579de9e042aab1985e35515520179d5446fa78ab3963e80950ab339292c6e961
MD5 ca8e0ef69ead14edd7281bb2083d504d
BLAKE2b-256 92fba2111f4b6913b3f40128dff169e95df1d28162c47831b7d1d06f401d8f72

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyetalon-0.1.1.tar.gz:

Publisher: ci-cd.yml on Stuermer/PyEtalon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyetalon-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyetalon-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyetalon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb31df424b0035ce09b43b15151c2dc6dc54b9f0a87ee54c082ad0fb2951118
MD5 2e9007091d53a4df9622897de4f97984
BLAKE2b-256 a97ae88f87368af006cf9f8faa812a37f132aef834ea8c712037bc0d960392d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyetalon-0.1.1-py3-none-any.whl:

Publisher: ci-cd.yml on Stuermer/PyEtalon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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