solve(solver=’SI’)#

pyMMF.propagationModeSolver.solve(self, solver: str = 'default', curvature: bool = None, storeData: bool = True, options: dict = {})

Find the propagation constants of a step index fiber by numerically finding the solution of the scalar dispersion relation then associate the analytic formulation for the mode profiles [1] [2]. The IndexProfile must be initialized with the initStepIndex method.

See also

For documentation for the rest of the parameters, see pyMMF.propagationModeSolver.solve()

Options:
tolfloat, optional

tolerance on the propagation constant. Default is 1e-9

degenerate_modestring (‘exp’, or ‘sin’), optional

Choice for degenerate subspaces.

  • ‘exp’ return the orbital angular momentum modes, for an azimuthal index m>0, the azimuthal function is exp(i*-m*theta) and exp(i*m*theta)

  • ‘sin’ return the linear polarized modes, they have real values of the field with an azimuthal function of sin(m*theta) and cos(m*theta) for m>0.

Default is ‘exp’.

n_jobsint, optional

number of parallel jobs to run. Default is -2, which means using all processors.

Notes