Home Forums Nazca Discontinuities while drawing curves on Nazca

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7291
    Rezwan Zakaria
    Participant

    I am trying to draw a cobra curve connecting a strt (straight box) and a bend (curved polygon) on Nazca design. But after drawing, I see some discontinuities at the interface of the curve and the strt/bend. Can anyone please clarify this? I got this code from the nazca tutorial section, so I think the code cannot be incorrect. I have attached some pictures The code is as follows:

    import nazca as nd
    import nazca.demofab as demo
    b1 = demo.shallow.strt(length=100).put(0, 0)
    b2 = demo.shallow.bend(angle=45, radius=50).put(200, 300)
    demo.shallow.cobra_p2p(pin1=b1.pin[‘a0’], pin2=b2.pin[‘a0′], radius1=150, radius2=200).put()
    nd.export_gds(filename=’cobra3b.gds’)

     

    #7297
    Katarzyna
    Keymaster

    These are bend-straight waveguide offsets, a common feature in photonics:
    pure.tue.nl/ws/files/4294122/590296.pdf

    You can either create your own interconnect without offsets:
    tutorial: nazca-design.org/xsections_and_layers/,

    or set demo.shallow.offset = 0, for example:

    import nazca as nd
    import nazca.demofab as demo

    demo.shallow.strt(100).put()
    demo.shallow.bend().put()

    demo.shallow.offset = 0
    demo.shallow.strt(100).put(0, 100)
    demo.shallow.bend().put()

    nd.export_gds()

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.