crossing

photonforge.parametric.crossing(*, port_spec, arm_length, added_width=0, extra_length=0, technology=None, name='', tidy3d_model_kwargs={})

Straight waveguide section.

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

  • arm_length (float) – Length of a single crossing arm.

  • added_width (float | str | Expression) – Width added to the arm linearly up to the center. An expression or string (with independent variable "u") can also be used.

  • extra_length (float) – Additional length for a straight section at the ports.

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

Returns:

Component with the crossing, ports and model.

Return type:

Component

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

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