Skip to article frontmatterSkip to article content

gdsfactory.routing.fanout2x2

gdsfactory.routing.fanout2x2(component: ComponentSpec = 'straight', port_spacing: float = 20.0, bend_length: float | None = None, npoints: int = 101, select_ports: PortsFactory = functools.partial(<function select_ports>, port_type='optical'), cross_section: CrossSectionSpec = 'strip', **kwargs: Any)Component

Returns component with Sbend fanout routes.

Parameters
  • componentto fanout.

  • port_spacingfor the returned component.

  • bend_lengthlength of the bend (defaults to port_spacing).

  • npointsfor sbend.

  • select_portsfunction to select optical_ports ports.

  • cross_sectioncross_section spec.

  • kwargscross_section settings.

import gdsfactory as gf
c = gf.components.nxn(west=2, east=2)

cc = gf.routing.fanout2x2(component=c, port_spacing=20)
cc.plot()