route_s_bend¶
- photonforge.parametric.route_s_bend(*, port1=None, port2=None, euler_fraction=None, technology=None, name=None, model=None)[source]¶
Create an S bend connecting 2 compatible ports.
- Parameters:
port1 (Port | tuple[Reference, str] | tuple[Reference, str, int] | None) – First port to be connected. The port can be specfied as a
photonforge.Portor as a tuple including aphotonforge.Reference, the port name, and the repetition index (optional, only for array references).port2 (Port | tuple[Reference, str] | tuple[Reference, str, int] | None) – Second port to be connected.
euler_fraction (Annotated[float, maximum=1, minimum=0] | None) – Fraction of the bends that is created using an Euler spiral (see
photonforge.Path.arc()). IfNone, 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
Noneaphotonforge.WaveguideModelis used.
- Returns:
Component with the route, including ports and model.
- Return type:
component = pf.parametric.route_s_bend(
port1=pf.Port((0, 0), 180, "Strip"), port2=pf.Port((20, 5), 0, "Strip"), euler_fraction=0.5
)