circular_spiral¶
- photonforge.parametric.circular_spiral(*, port_spec=None, turns=None, radius=None, separation=None, full_length=None, align_ports=None, technology=None, name=None, model=None)[source]¶
Circular spiral.
- Parameters:
port_spec (Annotated[str | PortSpec, _] | None) – Port specification describing waveguide cross-section.
turns (Annotated[float, minimum=0, units='μm'] | None) – Number of turns in each of the 2 spiral arms. Does not need to be an integer.
radius (Annotated[float, exclusiveMinimum=0, units='μm'] | None) – Bend radius for the internal spiral turns.
separation (Annotated[float, minimum=0, units='μm'] | None) – Distance between waveguide centers in parallel sections. If
None, defaults to the port width.full_length (Annotated[float, exclusiveMinimum=0, units='μm']) – Desired spiral length. If set to a positive value, ‘turns’ is calculated automatically.
align_ports (bool | None) – Optionally align ports on the same side of the spiral. If
None, defaults toFalse.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 spiral section, ports and model.
- Return type:
Note
The full length of the spiral can be computed with the
photonforge.route_length()function.
component1 = pf.parametric.circular_spiral(port_spec="Strip", radius=5, turns=1.25)
# Aligned ports
component2 = pf.parametric.circular_spiral(port_spec="Strip", radius=5, turns=3, align_ports=True)