gdsfactory.cross_section.rib_with_trenches#
- gdsfactory.cross_section.rib_with_trenches(width=0.5, width_trench=2.0, slab_offset=0.3, width_slab=None, simplify_slab=None, layer='WG', layer_trench='DEEP_ETCH', wg_marking_layer='WG_ABSTRACT', sections=None, **kwargs)[source]#
Return CrossSection of rib waveguide defined by trenches.
- Parameters:
width (float) – main Section width (um) or function parameterized from 0 to 1. the width at t==0 is the width at the beginning of the Path. the width at t==1 is the width at the end.
width_trench (float) – in um.
slab_offset (float | None) – from the edge of the trench to the edge of the slab.
width_slab (float | None) – in um.
simplify_slab (float | None) – Optional Tolerance value for the simplification algorithm. All points that can be removed without changing the resulting polygon by more than the value listed here will be removed.
layer (tuple[int, int] | str | int | LayerEnum) – slab layer.
layer_trench (tuple[int, int] | str | int | LayerEnum) – layer to etch trenches.
wg_marking_layer (tuple[int, int] | str | int | LayerEnum) – layer to draw over the actual waveguide. This can be useful for booleans, routing, placement …
sections (tuple[Section, ...] | None) – list of Sections(width, offset, layer, ports).
kwargs (Any) – cross_section settings.
- Return type:
┌─────────┐ │ │ wg_marking_layer └─────────┘ ┌────────┐ ┌────────┐ │ │ │ │layer_trench └────────┘ └────────┘ ┌─────────────────────────────────────────┐ │ layer │ │ │ └─────────────────────────────────────────┘ ◄─────────► width ┌─────┐ ┌────────┐ ┌───────┐ │ │ │ │ │ │ │ └─────────┘ └────────┘ │ │ ◄---------► ◄-------► │ └─────────────────────────────────────────┘ slab_offset width_trench ──────► | ◄────────────────────────────────────────► width_slabimport gdsfactory as gf xs = gf.cross_section.rib_with_trenches(width=0.5) p = gf.path.arc(radius=10, angle=45) c = p.extrude(xs) c.plot()
(
Source code,png,hires.png,pdf)