pyOptiShared.Designs.flex_bend90
- pyOptiShared.Designs.flex_bend90(dr_in: ndarray, dr_out: ndarray, waveguide_width: float = 0.5, radius: float = 2, resolution: int = 40, layer: int = 1, write: bool = False) → Cell
Creates a flexable 90 degrees bend where the bend body consists of multiple sections of different width
- Parameters:
dr_in (np.ndarray) – An array that contains the changes in the radius of the input section.
dr_out (np.ndarray) – An array that contains the changes in the radius of the output section.
waveguide_width (float, optional) – Port width. Defaults to 0.5.
radius (float, optional) – Defines the radius of the bend. Defaults to 2.
resolution (int, optional) – The order of the polynomial used to smooth the body section widths. Defaults to 40.
layer (int, optional) – Defines the layer number where the bend resides. Defaults to 1.
write (bool, optional) – Write the created GDS file. Defaults to False.
- Returns:
a gdstk library cell that contains the device.
- Return type:
gdstk.Cell