Skip to main content
Ctrl+K
Logo image

PyFiberModes

Site Navigation

  • Source Code
  • Coding examples
  • GitHub
  • PyPI
  • Anaconda

Site Navigation

  • Source Code
  • Coding examples
  • GitHub
  • PyPI
  • Anaconda

Section Navigation

  • Examples: API
    • Figure 3.13 of Jacques Bures
    • Comparing two and three layers
    • Dispersion VS core index
    • Effective index VS core index
    • Groupe index VS core index
    • Dispersion VS core index
    • Mode fields
    • Mode fields
    • Mode fields
    • Effective index for tapered multi-mode fiber
  • Examples single layer fiber
    • Modal dispersion VS core index
    • Modal dispersion VS core index
    • Modal dispersion VS core index
  • Examples: double clad fiber
    • Mode fields
  • Coding examples
  • Examples single layer fiber
  • Modal...

Note

Go to the end to download the full example code

Modal dispersion VS core index#

Imports#

import numpy
from PyFiberModes import LP01
from PyFiberModes.fiber import load_fiber
import matplotlib.pyplot as plt

Generating the fiber structures#

Here we create the different fiber design that we want to explore

wavelength_list = numpy.linspace(1000e-9, 1800e-9, 100)
data = []
for wavelegnth in wavelength_list:
    smf28 = load_fiber(fiber_name='SMF28', wavelength=wavelegnth)
    dispersion = smf28.get_effective_index(mode=LP01)
    data.append(dispersion)


figure, ax = plt.subplots(1, 1)

ax.set(
    title='Mode fields for vectorial mode if x-direction',
    xlabel=r'Wavelength [$\mu m$]',
    ylabel='Dispersion',
)


ax.plot(wavelength_list, data)

plt.show()
# -
Mode fields for vectorial mode if x-direction

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

Download Jupyter notebook: plot_smf28_dispersion_vs_wavelength.ipynb

Download Python source code: plot_smf28_dispersion_vs_wavelength.py

Gallery generated by Sphinx-Gallery

On this page
  • Imports
  • Generating the fiber structures
Show Source

© Copyright 2024, Martin Poinsinet de Sivry-Houle.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.14.1.