straight

photonforge.parametric.straight(*, port_spec=None, length=None, bulge_width=None, bulge_taper_length=None, bulge_margin=None, technology=None, name=None, model=None)[source]

Straight waveguide section.

Parameters:
  • port_spec (Annotated[str | PortSpec, _] | None) – Port specification describing waveguide cross-section.

  • length (Annotated[float, exclusiveMinimum=0, units='μm'] | None) – Section length.

  • bulge_width (Annotated[float, units='μm'] | None) – Width added to the waveguide cross-section in the central region when length if enough to fit in 2 tapering sections plus margins. If None, defaults to 0.

  • bulge_taper_length (Annotated[float, minimum=0, units='μm'] | None) – Length of each tapering region for bulging the central region of the waveguide. If None, defaults to 0.

  • bulge_margin (Annotated[float, minimum=0, units='μm'] | None) – Length of the waveguide that must be kept without bulging at both ends. If None, defaults to 0.

  • technology (Technology | None) – Component technology. If None, the default technology is used.

  • name (str | None) – Component name.

  • model (Model | None) – Model to be used with this component. If None a photonforge.WaveguideModel is used.

Returns:

Component with the straight section, ports and model.

Return type:

Component

component1 = pf.parametric.straight(port_spec="Rib", length=10)

component2 = pf.parametric.straight(
    port_spec="Strip",
    length=12,
    bulge_width=0.4,
    bulge_taper_length=3,
    bulge_margin=1,
)
straight