gdsfactory.cross_section.heater_metal#
- gdsfactory.cross_section.heater_metal(*, width: float = 2.5, offset: float = 0, layer: LayerSpec | None = 'HEATER', sections: tuple[Section, ...] | None = None, port_names: tuple[str, str] = ('e1', 'e2'), port_types: tuple[str, str] = ('electrical', 'electrical'), bbox_layers: LayerSpecs | None = None, bbox_offsets: Floats | None = None, cladding_layers: LayerSpecs | None = None, cladding_offsets: Floats | None = None, cladding_simplify: Floats | None = None, radius: float | None = None, radius_min: float | None = None, main_section_name: str = '_default', **kwargs) CrossSection #
Return CrossSection.
- Parameters:
width – main Section width (um).
offset – main Section center offset (um).
layer – main section layer.
sections – list of Sections(width, offset, layer, ports).
port_names – for input and output (‘o1’, ‘o2’).
port_types – for input and output: electrical, optical, vertical_te …
bbox_layers – list of layers bounding boxes to extrude.
bbox_offsets – list of offset from bounding box edge.
cladding_layers – list of layers to extrude.
cladding_offsets – list of offset from main Section edge.
cladding_simplify – 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.
radius – routing bend radius (um).
radius_min – min acceptable bend radius.
main_section_name – name of the main section. Defaults to _default
import gdsfactory as gf xs = gf.cross_section.cross_section(width=0.5, offset=0, layer='WG') p = gf.path.arc(radius=10, angle=45) c = p.extrude(xs) c.plot()
(
Source code
,png
,hires.png
,pdf
)┌────────────────────────────────────────────────────────────┐ │ │ │ │ │ boox_layer │ │ │ │ ┌──────────────────────────────────────┐ │ │ │ ▲ │bbox_offset│ │ │ │ ├──────────►│ │ │ cladding_offset │ │ │ │ │ │ │ │ │ ├─────────────────────────▲──┴─────────┤ │ │ │ │ │ │ ─ ─┤ │ core width │ │ ├─ ─ center │ │ │ │ │ │ ├─────────────────────────▼────────────┤ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └──────────────────────────────────────┘ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────┘