Plot the Refractive Index of Optical Material: Polyethylene#

This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of polyethylene over a specified range of wavelengths.

Optical constants: Smith
/opt/hostedtoolcache/Python/3.11.16/x64/lib/python3.11/site-packages/PyOptik/material/tabulated_class.py:220: UserWarning: Wavelength range goes from 1.31 micrometer to 1.55 micrometer which is outside the allowable range of 40.0 micrometer to 200.0 micrometer µm. [Material: Smith]
  self._check_wavelength(wavelength, out_of_range)

from TypedUnit import ureg

from PyOptik import MaterialCatalog

# Load the tabulated Smith polyethylene dataset
catalog = MaterialCatalog.from_snapshot()
material = catalog.get("organic/polyethylene/Smith").load()

# Calculate refractive index at specific wavelengths
RI = material.compute_refractive_index(wavelength=[1310, 1550] * ureg.nanometer)

# Display calculated refractive indices at sample wavelengths
material.plot()

Total running time of the script: (0 minutes 1.445 seconds)

Gallery generated by Sphinx-Gallery