s_bend

photonforge.parametric.s_bend(*, port_spec, length, offset, euler_fraction=0, active_model='Waveguide', technology=None, name='', tidy3d_model_kwargs={}, waveguide_model_kwargs={})

S-bend waveguide section.

Parameters:
  • port_spec (str | PortSpec) – Port specification describing waveguide cross-section.

  • length (float) – Length of the S-bend in the main propagation direction.

  • offset (float) – Side offset of the S-bend.

  • euler_fraction (float) – Fraction of the bends that is created using an Euler spiral (see photonforge.Path.arc()).

  • active_model (Literal['Tidy3D', 'Waveguide']) – Name of the model to be used by default; must be either "Tidy3D" or "Waveguide".

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

  • name (str) – Component name.

  • tidy3d_model_kwargs (dict[str, Any]) – Dictionary of keyword arguments passed to the component’s photonforge.Tidy3DModel.

  • waveguide_model_kwargs (dict[str, Any]) – Dictionary of keyword arguments passed to the component’s photonforge.WaveguideModel.

Returns:

Component with the S-bend section, ports and model.

Return type:

Component

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