s_bend

photonforge.parametric.s_bend(*, port_spec=None, length=None, offset=None, euler_fraction=None, technology=None, name=None, model=None)[source]

S bend waveguide section.

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

  • length (Annotated[float, exclusiveMinimum=0, units='μm'] | None) – Length of the S bend in the main propagation direction. If None, a default is calculated based on the default bend radius, if possible.

  • offset (Annotated[float, units='μm'] | None) – Side offset of the S bend.

  • euler_fraction (Annotated[float, maximum=1, minimum=0] | None) – Fraction of the bends that is created using an Euler spiral (see photonforge.Path.arc()). 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 S bend section, ports and model.

Return type:

Component

component = pf.parametric.s_bend(port_spec="Strip", length=10, offset=3, euler_fraction=0.5)
s_bend