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.

Refractive Index and Absorption vs. Wavelength [polyetylene]
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/PyOptik/material/base_class.py:60: 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: polyetylene]
  warnings.warn(

<Figure size 640x480 with 2 Axes>

from TypedUnit import ureg

from PyOptik import MaterialBank

# Initialize the material with the Sellmeier model
material = MaterialBank.polyetylene

# 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 0.299 seconds)

Gallery generated by Sphinx-Gallery