pyOptiShared.Designs.flex_crossing
- pyOptiShared.Designs.flex_crossing(cross_dw: ndarray, width: float = 0.5, length: float = 1, dsep: float = 2, resolution=40, layer: int = 1, write: bool = False)
Creates a waveguide crossing with flexable crossing section.
- Parameters:
cross_dw (np.ndarray) – Array of widths variations
width (float, optional) – Input port width. Defaults to 0.5.
length (float, optional) – Length of each section in the crossing. Defaults to 1.
dsep (float, optional) – Separation of the straight. Defaults to 2.
layer (int, optional) – Defines the layer number of the device.
write (bool, optional) – Use to write the generated gds. Defaults to False.
- Returns:
gdstk cell
- Return type:
gdstk.Cell