gplugins.modes.find_neff_vs_width

gplugins.modes.find_neff_vs_width#

gplugins.modes.find_neff_vs_width(width1: float = 0.2, width2: float = 1.0, steps: int = 12, nmodes: int = 4, wavelength: float = 1.55, parity=0, filepath: str | Path | None = None, overwrite: bool = False, **kwargs) DataFrame[source]#

Sweep waveguide width and compute effective index.

Parameters:
  • width1 – starting waveguide width in um.

  • width2 – end waveguide width in um.

  • steps – number of points.

  • nmodes – number of modes to compute.

  • wavelength – wavelength in um.

  • parity – mp.ODD_Y mp.EVEN_X for TE, mp.EVEN_Y for TM.

  • filepath – Optional filepath to store the results.

  • overwrite – overwrite file even if exists on disk.

Keyword Arguments:
  • slab_thickness – thickness for the waveguide slab in um.

  • core_material – core material refractive index.

  • clad_material – clad material refractive index.

  • sy – simulation region width (um).

  • sz – simulation region height (um).

  • resolution – resolution (pixels/um).