gdsfactory.cross_section.pn

Contents

gdsfactory.cross_section.pn#

gdsfactory.cross_section.pn(width=0.5, layer='WG', layer_slab='SLAB90', gap_low_doping=0.0, gap_medium_doping=0.5, gap_high_doping=1.0, offset_low_doping=0.0, width_doping=8.0, width_slab=7.0, layer_p='P', layer_pp='PP', layer_ppp='PPP', layer_n='N', layer_np='NP', layer_npp='NPP', layer_via=None, width_via=1.0, layer_metal=None, width_metal=1.0, port_names=('o1', 'o2'), sections=None, cladding_layers=None, cladding_offsets=None, cladding_simplify=None, slab_inset=None, **kwargs)[source]#

Rib PN doped cross_section.

Parameters:
  • width (float) – width of the ridge in um.

  • layer (tuple[int, int] | str | int | LayerEnum) – ridge layer.

  • layer_slab (tuple[int, int] | str | int | LayerEnum) – slab layer.

  • gap_low_doping (float) – from waveguide center to low doping. Only used for PIN.

  • gap_medium_doping (float) – from waveguide center to medium doping. None removes it.

  • gap_high_doping (float) – from center to high doping. None removes it.

  • offset_low_doping (float) – from center to junction center.

  • width_doping (float) – in um.

  • width_slab (float) – in um.

  • layer_p (tuple[int, int] | str | int | LayerEnum | None) – p doping layer.

  • layer_pp (tuple[int, int] | str | int | LayerEnum | None) – p+ doping layer.

  • layer_ppp (tuple[int, int] | str | int | LayerEnum | None) – p++ doping layer.

  • layer_n (tuple[int, int] | str | int | LayerEnum | None) – n doping layer.

  • layer_np (tuple[int, int] | str | int | LayerEnum | None) – n+ doping layer.

  • layer_npp (tuple[int, int] | str | int | LayerEnum | None) – n++ doping layer.

  • layer_via (tuple[int, int] | str | int | LayerEnum | None) – via layer.

  • width_via (float) – via width in um.

  • layer_metal (tuple[int, int] | str | int | LayerEnum | None) – metal layer.

  • width_metal (float) – metal width in um.

  • port_names (tuple[str, str]) – input and output port names.

  • sections (tuple[Section, ...] | None) – optional list of sections.

  • cladding_layers (Sequence[tuple[int, int] | str | int | LayerEnum] | None) – optional list of cladding layers.

  • cladding_offsets (Sequence[float] | None) – optional list of cladding offsets.

  • cladding_simplify (Sequence[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.

  • slab_inset (float | None) – slab inset in um.

  • kwargs (Any) – cross_section settings.

Return type:

CrossSection

                      offset_low_doping
                        <------>
                       |       |
                      wg     junction
                    center   center
                       |       |
         ______________|_______|______
         |             |       |     |
_________|             |       |     |_________________|
      P                |       |               N       |
  width_p              |       |            width_n    |
<----------------------------->|<--------------------->|
                       |               |       N+      |
                       |               |    width_n    |
                       |               |<------------->|
                       |<------------->|
                       gap_medium_doping
import gdsfactory as gf

xs = gf.cross_section.pn(width=0.5, gap_low_doping=0, width_doping=2.)
p = gf.path.arc(radius=10, angle=45)
c = p.extrude(xs)
c.plot()

(Source code, png, hires.png, pdf)

../_images/gdsfactory-cross_section-pn-1.png