Workflows#

Choose a workflow based on the question you are asking.

Characterize a known fiber

Load a YAML definition, discover guided modes, then sweep wavelength for effective index, group index, and dispersion.

Inspect modal fields

Build a Field, evaluate components in one batch, and compute power, confinement, or overlap.

Explore a design space

Use structured sweeps for maps and optimize_fiber for bounded inverse design without mutating the source fiber.

Propagate coupled modes

Assemble a Hermitian coupling matrix and integrate constant or longitudinally varying coupled-mode equations.