bend¶
- photonforge.parametric.bend(*, port_spec=None, radius=None, angle=None, euler_fraction=None, port_bends=None, active_model=None, technology=None, name=None, tidy3d_model_kwargs=None, waveguide_model_kwargs=None)[source]¶
Waveguide bend section.
- Parameters:
port_spec (Annotated[str | PortSpec, _] | None) – Port specification describing waveguide cross-section.
radius (Annotated[float, exclusiveMinimum=0, units='μm'] | None) – Central arc radius.
angle (Annotated[float, maximum=180, minimum=-180, units='°'] | None) – Arc coverage angle. If
None, defaults to 90.euler_fraction (Annotated[float, maximum=1, minimum=0] | None) – Fraction of the bend that is created using an Euler spiral (see
photonforge.Path.arc()). IfNone, defaults to 0.port_bends (Annotated[bool, _] | None) – Flag controllig whether to set a bend radius for the ports. Not used when
euler_factor > 0. IfNone, defaults toFalse.active_model (Annotated[Literal['Tidy3D', 'Waveguide'], _] | None) – Name of the model to be used by default; must be either
"Tidy3D"or"Waveguide" (default).technology (Annotated[Technology, _] | None) – Component technology. If
None, the default technology is used.name (Annotated[str, _] | None) – Component name.
tidy3d_model_kwargs (Annotated[dict[str, Any], _] | None) – Dictionary of keyword arguments passed to the component’s
photonforge.Tidy3DModel.waveguide_model_kwargs (Annotated[dict[str, Any], _] | None) – Dictionary of keyword arguments passed to the component’s
photonforge.WaveguideModel.
- Returns:
Component with the circular bend section, ports and model.
- Return type:
component = pf.parametric.bend(port_spec="Strip", radius=5, euler_fraction=0.5)