Plot the Refractive Index of Optical Material: SF5#

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

Refractive Index and Absorption vs. Wavelength [polyetylene]
/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/PyOptik/material/base_class.py:60: UserWarning: Wavelength range goes from 1.31 µm to 1.55 µm which is outside the allowable range of 40.0 µm to 200.0 µm µm. [Material: polyetylene]
  warnings.warn(
/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/PyOptik/material/base_class.py:60: UserWarning: Wavelength range goes from 399.99999999999994 nm to 1.5 µm which is outside the allowable range of 40.0 µm to 200.0 µm µm. [Material: polyetylene]
  warnings.warn(

import numpy
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=[1310e-9, 1550e-9])

# Display calculated refractive indices at sample wavelengths
material.plot(
    wavelength=numpy.linspace(400e-9, 1500e-9, 300)
)

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

Gallery generated by Sphinx-Gallery