pyOptiShared.Designs.flex_taper
- pyOptiShared.Designs.flex_taper(widths: ndarray, input_length: float = 0.3, taper_length: float = 1.0, in_width: float = 0.5, out_width: float = 2.0, resolution: int = 20, layer: int = 1, write: bool = False) → Library
Creates a taper waveguide with varying widths.
- Parameters:
widths (np.ndarray) – array of widths that defines the taper section
input_length (float, optional) – input waveguide length. Defaults to 0.3.
taper_length (float, optional) – taper length. Defaults to 1.0.
in_width (float, optional) – input waveguide width. Defaults to 0.5.
out_width (float, optional) – output waveguide width. Defaults to 2.0.
resolution (int, optional) – the order of polynomial fit used to smooth the widths of the taper section. Defaults to 20.
layer (int, optional) – Defines the layer number of the device.
write (bool, optional) – Use to write the generated gds. Defaults to False.
- Returns:
gdstk library that holds the created device.
- Return type:
gdstk.library