Skip to main content
Ctrl+K
PyFiberModes 1.0.2 documentation - Home PyFiberModes 1.0.2 documentation - Home
  • Start
  • Guide
  • Examples
  • API
  • Resources
  • GitHub
  • PyPI
  • Anaconda
  • Start
  • Guide
  • Examples
  • API
  • Resources
  • 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
    • Group index vs core index
    • Group index 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
  • Specialty-fiber examples
    • Refractive-index profile
    • Specialty-fiber catalog
    • Specialty-fiber mode indices
  • Fields and power
    • Confinement by radius
    • Polarization rotation
    • Vector field components
  • Analysis and design
    • Coupled-mode power exchange
    • Guided-mode discovery
    • Structured wavelength sweep
  • Validation
    • Effective-index bounds
    • Effective-area convergence
    • Normalized effective index
  • Benchmarks
    • Component batching
    • Field-grid scaling
    • Modal-cache speedup
  • Example galleries
  • Examples single layer fiber
  • Modal dispersion VS core index

Note

Go to the end to download the full example code.

Modal dispersion VS core index#

from PyFiberModes.units import ureg

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(500e-9, 3000e-9, 100)
data = []
for wavelegnth in wavelength_list:
    smf28 = load_fiber(fiber_name='SMF28', wavelength=(wavelegnth) * ureg.meter)
    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='Group index',
)


ax.plot(wavelength_list, data)

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

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

Download Jupyter notebook: plot_smf28_group_index_vs_wavelength.ipynb

Download Python source code: plot_smf28_group_index_vs_wavelength.py

Download zipped: plot_smf28_group_index_vs_wavelength.zip

Gallery generated by Sphinx-Gallery

previous

Modal dispersion VS core index

next

Specialty-fiber examples

On this page
  • Imports
  • Generating the fiber structures
Edit on GitHub
Show Source

© Copyright Martin Poinsinet de Sivry-Houle.