make_LP_modes

hcipy.mode_basis.make_LP_modes(grid, V_number, core_radius, return_betas=False)

Make a ModeBasis out of the guided modes that are supported by a step-index fiber.

This function solves the eigenvalue equation of for a radial step-index profile fiber. It calculates the mode profiles and can also return the propagation constants.

Parameters
gridGrid

The grid on which to calculate the mode basis.

V_numberscalar

The normalized frequency parameter of the fiber.

core_radiusscalar

The core radius of a step-index fiber.

return_betasbool

If true this function also returns the propagation constants.

Returns
——-
ModeBasis

An ModeBasis containing all supported LP modes.

array_like

An array containing all propagation constants. This is only returned if return_betas is True.