Home Forums Nazca How to use edges Reply To: How to use edges

#5510
Katarzyna
Keymaster

Hi Jannis,

You can use the edge parameters to vary the waveguide width.
Here is an example:

import nazca as nd
import math as m

nd.strt(
    length=20,
    width=2,
    layer=1,
    edge1=lambda x: 1+x**10,
    edge2=lambda x: 1+m.sin(10*x)).put()

nd.export_gds()

Regards,
Katarzyna