apodized_grating¶
- photonforge.stencil.apodized_grating(tooth_spacing, tooth_width, width, taper_length, taper_width)¶
Create an apodized grating.
- Parameters:
teeth_gaps (float | Sequence[float]) – Distance between adjacent grating teeth.
teeth_widths (float | Sequence[float]) – List of grating teeth width.
width (float) – Lateral grating width.
taper_length (float) – length of an optional linear taper ending at the grating.
taper_width (float) – width at the start of the linear taper.
- Returns:
Grating structures.
- Return type:
Note
Arguments
teeth_gapsandteeth_widthscan be a single number or a sequence. The largest sequence among them will define the number of teeth created. The smaller will be increased to the largest length by repeating its last element.
# Grating with taper, constant widths and varying spacings
grating1 = pf.stencil.apodized_grating(
teeth_gaps=np.linspace(0.2, 0.4, 20),
teeth_widths=0.2,
width=10,
taper_length=30,
taper_width=0.5,
)
# Grating without taper, width and spacing variations
grating2 = pf.stencil.apodized_grating(
teeth_gaps=np.linspace(0.2, 0.4, 20), teeth_widths=np.linspace(0.4, 0.1, 20), width=10
)