wavefrontshaping / pymmf

Test mode computation in multimode fibers

  • Public
  • 135 runs
  • GitHub
  • Paper
  • License

Run wavefrontshaping/pymmf with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
profile_type
string (enum)
GRIN

Options:

GRIN, SI

Index profile (Graded index or step-index)
wl
number
1550

Min: 100

Max: 2000

Wavelength (in nm).
core_diam
number
50

Min: 10

Max: 80

Core diameter (in microns).
n_cladding
number
1.45

Min: 1.3

Max: 1.6

Refractive index of the cladding.
NA
number
0.2

Min: 0.05

Max: 0.5

Core diameter (in microns).
mode_repr
string (enum)
cos

Options:

cos, exp

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

Options:

Yes, No

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

Min: 1

Max: 200

Curvature (in mm)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}