gdsfactory.routing.add_fiber_array.add_fiber_array#
- gdsfactory.routing.add_fiber_array.add_fiber_array(component: ComponentSpec = <function straight>, grating_coupler: ComponentSpecOrList = functools.partial(<function grating_coupler_elliptical_trenches>, polarization='te', taper_angle=35), gc_port_name: str = 'o1', component_name: str | None = None, select_ports: Callable = functools.partial(<function select_ports>, port_type='optical'), cross_section: CrossSectionSpec = 'strip', taper: ComponentSpec | None = None, **kwargs) Component [source]#
Returns component with south routes and grating_couplers.
You can also use pads or other terminations instead of grating couplers.
- Parameters:
component – component spec to connect to grating couplers.
grating_coupler – spec for route terminations.
gc_port_name – grating coupler input port name.
component_name – optional for the label.
select_ports – function to select ports.
cross_section – cross_section function.
taper – taper spec.
kwargs – additional arguments.
- Keyword Arguments:
bend – bend spec.
straight – straight spec.
fanout_length – if None, automatic calculation of fanout length.
max_y0_optical – in um.
with_loopback – True, adds loopback structures.
with_loopback_inside – True, adds loopback structures inside the component.
straight_separation – from edge to edge.
list_port_labels – None, adds TM labels to port indices in this list.
connected_port_list_ids – names of ports only for type 0 optical routing.
nb_optical_ports_lines – number of grating coupler lines.
force_manhattan – False
excluded_ports – list of port names to exclude when adding gratings.
grating_indices – list of grating coupler indices.
routing_straight – function to route.
routing_method – route_single.
optical_routing_type – None: auto, 0: no extension, 1: standard, 2: check.
gc_rotation – fiber coupler rotation in degrees. Defaults to -90.
input_port_indexes – to connect.
fiber_spacing – in um.
radius – optional radius of the bend. Defaults to the cross_section.
radius_loopback – optional radius of the loopback bend. Defaults to the cross_section.
route_backwards – route from component to grating coupler or vice-versa.
import gdsfactory as gf c = gf.components.crossing() cc = gf.routing.add_fiber_array( component=c, optical_routing_type=2, grating_coupler=gf.components.grating_coupler_elliptical_te, with_loopback=False ) cc.plot()
(
Source code
,png
,hires.png
,pdf
)