bend

photonforge.parametric.bend(*, port_spec, radius=None, angle=90, euler_fraction=0, active_model='Waveguide', technology=None, name='', tidy3d_model_kwargs={}, waveguide_model_kwargs={})

Circular waveguide section.

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

  • radius (float | None) – Central arc radius.

  • angle (float) – Arc coverage angle.

  • euler_fraction (float) – Fraction of the bend 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 circular bend section, ports and model.

Return type:

Component

component = bend(port_spec="Strip", radius=5, euler_fraction=0.5)
bend