wavefrontshaping / pymmf

Test mode computation in multimode fibers

  • Public
  • 188 runs
  • CPU
  • GitHub
  • Paper
  • License

Input

string

Index profile (Graded index or step-index)

Default: "GRIN"

number
(minimum: 100, maximum: 2000)

Wavelength (in nm).

Default: 1550

number
(minimum: 10, maximum: 80)

Core diameter (in microns).

Default: 50

number
(minimum: 1.3, maximum: 1.6)

Refractive index of the cladding.

Default: 1.45

number
(minimum: 0.05, maximum: 0.5)

Core diameter (in microns).

Default: 0.2

string

Mode representation, 'cos' for LP modes, 'exp' for OAM modes (if no curvature).

Default: "cos"

string

Curvature. Select 'No' for a straight fiber. Expect much longer computation time with curvature.

Default: "No"

number
(minimum: 1, maximum: 200)

Curvature (in mm)

Default: 10

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

Download the modes

Click on modes.npz to download the results as a numpy file or click modes.mat to download as a Matlab file.

To retrieve the data in Python:

import numpy as np

data = np.load('modes.npz')
n_modes = data['n_modes']
n_points = data ['n_points']
# matrix of mode profiles
mode_profiles = data['profiles'] 
# propagation constants
betas = data['betas']

# Profile of the i-th mode
i = 5
field = mode_profiles[...,i].reshape([n_points]*2)

How is it computed?

Check our tutorials to know more: - Simulation of multimode fiber modes: Straight fibers - Simulation of multimode fiber modes: Bent fibers - pyMMF: Step index benchmark - Compare bending methods for MMF simulations using pyMMF - Fast numerical estimations of axisymmetric multimode fibers modes