TAGGED: fdtd, inverse-design, lumopt
-
-
May 10, 2023 at 1:33 am
Ciel16
SubscriberHello,
I'm applying LumOpt on a structure with angled input and output waveguides. I realized I couldn't set up the linear monitor with an angle; thus I had to extend my output waveguide with a large bend long distance to obtain a horizontal waveguide for the adjoint simulation. I'm wondering if there is a way to rotate my monitor (or angled monitor) so that I could dramatically reduce the simulation time.
Thank you so much for your time!
Sincerely,
-
May 10, 2023 at 4:13 pm
Guilin Sun
Ansys EmployeeUsually you do not need to rotate the monitor, as it records power flow which automatically counts for the angle by Poynting vector and surface normal. Only when you decompose the fields into different modes, expansion monitor or port can can be used,where you can set the rotation angle of the expansion monitor, or better the port. Port is much easier to use and set, and to get the desired results. However VarFDTD does not use port.
https://optics.ansys.com/hc/en-us/articles/360034405354-transmission-Script-command
https://optics.ansys.com/hc/en-us/articles/360034382554-Ports-FDTD-Simulation-Object
-
May 30, 2023 at 3:28 am
Ciel16
SubscriberHi Guilin,
Thank you for your reply. I would like to use the expansion monitors to try the angled monitor. I feel it is a little bit challenging for me. In order to describe my question more visually, I have attached an example.
According to the LumOpt tutorial page (https://lumopt.readthedocs.io/en/latest/tutorial.html), the basic setup for the output waveguide is horizontal.
In this case, I want to set up the output waveguides with a certain angle so that they can split as early as possible. When I have angled output waveguides, the regular frequency & power monitors cannot work as an input source in the adjoint simulation with a minimum simulation time. Therefore, the frequency & power monitor might not work without a rotation for this inverse design.
I have attached the files through a Dropbox link and hope you could check them if possible.
(https://www.dropbox.com/scl/fo/say26373rq5dcm4ilwzvb/h?dl=0&rlkey=d7srn5nctcfvafq6c2l6zth6i)
Thanks again for your time.
-
-
May 30, 2023 at 3:27 am
-
May 30, 2023 at 6:01 pm
Taylor Robertson
Ansys EmployeeHello Ciel16,
I haven't tested this, but it should be possible in principle. When the mode expansion monitor MEM is not angled this leads to imprecision in the calculated modes and mode expansion calculations. For examnple the corss section is different and the phase of the fields will be slightly off.
At least for the mode source you can easily angle it to be normal to the waveguide, which you should do if it is relevant to your set-up.
Injecting modes at an angle with the mode source
The real challenge I think comes with setting up your FOM monitors. By default you simply specify a frequency monitor. These cannot be angled and must align with the principle FDTD planes. All rotation calculations will be done in the mode source or MEM. Since you do not define an angle in the lumopt set-up script it is undetermined in the algorithm, which adds the MEM and adjoint sources automatically.
If the FOM ports are on angled waveguides you may have some numerical issues, but it may be worth experimenting with anyway. Even though it isn't exact the trend should be consistent which is enough for optimization. That being said these gradient based optimization methods can be quite sensitrive to numerical issues, so I cannot guarntee anything. To do this rigorously you would need to add a rotation argument to the modematch python class in lumopt, which rotates the MEM correctly. All that python code is editable, so you are free to make updates if you like, but we can't really support such efforts.
Alternatively you could add this as a feature request through.
https://ix.lumerical.com
Best Regards,
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- “Import optical generation” or “delta generation rate”?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Transmission results greater than one
- Ansys Insight: Diverging Simulations
- Finding your Ansys (or Lumerical) account number
- Ansys Insight: Why my simulation result is different from published paper or experiment?
- Is there a Lumerical script command to output the Simulation and Memory requirements?
-
5386
-
3375
-
2471
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.