crossing¶
- photonforge.parametric.crossing(*, port_spec=None, arm_length=None, added_width=None, extra_length=None, technology=None, name=None, tidy3d_model_kwargs=None)¶
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. IfNone
, defaults to 0.extra_length (float) – Additional length for a straight section at the ports. If
None
, defaults to 0.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:
# 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)"
)