Units and conventions#

PyFiberModes accepts bare numbers and uses SI units internally. Unit-aware objects are not converted automatically, so convert values before passing them to the package.

Quantity conventions#

Quantity

Unit

Example

Wavelength, radius, distance

m

1550e-9 for 1550 nm

Refractive index, numerical aperture

dimensionless

1.444 or 0.14

Propagation constant \(\beta\)

rad/m

fiber.get_propagation_constant(mode)

Phase or group velocity

m/s

fiber.get_group_velocity(mode)

Group-velocity dispersion

s2/m

fiber.get_group_velocity_dispersion(mode)

Dispersion

ps/(nm km)

fiber.get_dispersion(mode)

Effective area

m2

Multiply by 1e12 for \(\mu\mathrm{m}^2\)

Geometry convention#

Layer radii are interface radii measured from the fiber axis. The final layer is the exterior medium and is treated as extending outward; its stored outer radius is not a second finite interface. Layers are indexed from the innermost layer in the constructed Fiber, even though YAML files are written from the outside toward the center for readability and compatibility with the loader.

Mode convention#

A Mode combines a family, azimuthal order nu, and radial order m. Radial numbering starts at one. TE and TM families use nu = 0; HE and EH hybrid modes use positive azimuthal orders. LP modes are the scalar weak-guidance representation and should not be mixed with vector families when counting physically distinct modes without accounting for their correspondence and degeneracy.

Angles passed as phi and theta to field component methods are in radians. phi selects the azimuthal phase of the modal pattern; theta rotates the transverse observation axes.