- This topic has 5 replies, 2 voices, and was last updated 2 weeks, 6 days ago by Xaveer.
-
AuthorPosts
-
23 March 2021 at 13:23 #6393caspian1360Participant
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?23 March 2021 at 14:30 #6399XaveerModeratorDear 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
23 March 2021 at 16:10 #6401caspian1360ParticipantDear 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.
23 March 2021 at 17:11 #6407XaveerModeratorDear 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.
23 March 2021 at 18:05 #6409caspian1360ParticipantDear 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
23 March 2021 at 20:38 #6414XaveerModeratorDear Caspian,
Please have a look at the forum https://nazca-design.org/forums/topic/bending/ for an answer to a similar question.
Xaveer
-
AuthorPosts
- You must be logged in to reply to this topic.