Home Forums Nazca Pining two arcs to the both sides of a rectangular box

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6393
    caspian1360
    Participant

    Dear Ronald,

    How can I pin two arcs with (width=3, angle=60, radius=100) to the both sides of a box with (length=4, width=3)?
    In other words, I have a box in the middle and I want to attach the arcs with above specifications to the sides of the box (width=3) ?
    I may need to change the angle or the radius of the arcs at some point, so how can I keep them adjustable?

    #6399
    Xaveer
    Moderator

    Dear caspian1360,

    Are you looking for something like this?

    import nazca as nd
    
    length_box = 4
    width = 3
    lay = 1
    radius = 100
    angle = 60
    
    wg = nd.strt(length=length_box, width=width, layer=lay).put(length_box / 2, 0, 0)
    nd.bend(radius=radius, angle=angle, width=width, layer=lay).put(wg.pin["b0"])
    nd.bend(radius=radius, angle=angle, width=width, layer=lay).put(wg.pin["a0"])
    
    # Or, directly using chain connections:
    lay = 2
    nd.bend(radius=radius, angle=-angle, width=width, layer=lay).put(0, 0, angle)
    nd.strt(length=length_box, width=width, layer=lay).put()
    nd.bend(radius=radius, angle=angle, width=width, layer=lay).put()
    
    nd.export_gds()
    

    If your structures need more properties (e.g. additional layers, default width and radius, etc.), find out more about cross sections and interconnects. Some tutorials will be useful, e.g. https://nazca-design.org/make_a_cell_put_a_cell/.

    Xaveer

    #6401
    caspian1360
    Participant

    Dear Xaveer

    Thank you for your response.

    What you have done is almost similar to what I have in mind, but I want the arc on the right side of the waveguide facing down rather than up(same as the left side arc).

    In other words, both arcs on both sides and the waveguide in the middle all together create a structure approximately like this:∩ (upside down u shape figure)?

    Can you please help me with this matter?

    Regards

    Caspian

    • This reply was modified 2 weeks, 6 days ago by Xaveer.
    #6407
    Xaveer
    Moderator

    Dear Caspian,

    Have a look what happens if you change the sign of the angle of the bends.

    And spend some time going through the tutorials and the other documentation: https://nazca-design.org/manual/getting_started.html would be a good place to start!

    Xaveer

    • This reply was modified 2 weeks, 6 days ago by Xaveer.
    #6409
    caspian1360
    Participant

    Dear Sir

    Once again thank you for your response.

    What about having a waveguide in the middle and two tapers on both sides instead of the arcs and trying to bend the tapers to create the same figure?

    It is what I’m really looking for

    Many thanks

    Caspian

    #6414
    Xaveer
    Moderator

    Dear Caspian,

    Please have a look at the forum https://nazca-design.org/forums/topic/bending/ for an answer to a similar question.

    Xaveer

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