crossing

photonforge.parametric.crossing(*, port_spec=None, arm_length=None, added_width=None, extra_length=None, technology=None, name=None, tidy3d_model_kwargs=None)[source]

Waveguide crossing.

Parameters:
  • port_spec (Annotated[str | PortSpec, _] | Annotated[Sequence[Annotated[str | PortSpec, _]], maxItems=2, minItems=2] | None) – Port specification describing waveguide cross-section. A tuple with 2 values can be used, one for each waveguide.

  • arm_length (Annotated[float, exclusiveMinimum=0, units='μm'] | None) – Length of a single crossing arm.

  • added_width (Annotated[float | Annotated[str | Expression, _], units='μm'] | None) – Width added to the arm linearly up to the center. An expression or string (with independent variable "u") can also be used. If None, defaults to 0.

  • extra_length (Annotated[float, minimum=0, units='μm'] | None) – Additional length for a straight section at the ports. If None, defaults to 0.

  • 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.

Returns:

Component with the crossing, ports and model.

Return type:

Component

# Linearly tapered crossing
component1 = pf.parametric.crossing(
    port_spec="Strip", arm_length=2.5, extra_length=0.5, added_width=0.8
)

# Cosine-tapered crossing
component2 = pf.parametric.crossing(
    port_spec="Strip", arm_length=2.76, extra_length=0.5, added_width="0.83 * sin(pi * u)"
)
crossing