TAGGED: -waveguide, dispersion, photonics, script
-
-
February 2, 2023 at 6:56 pm
Aaron Schreyer-Miller
SubscriberHello,
I am having an issue getting the ansys example script to work. I do not trust that the dispersion calculation is being done correctly because I get a different figure of merit than when I plot manually.
When I manually click frequency sweep in MODE I get the correct dispersion curve, however using the script provided in the Ansys examples I get a completly different curve.
Thanks. -
February 3, 2023 at 4:03 pm
Aaron Schreyer-Miller
SubscriberI believe this is an issue with the way the code is calculating the GVD. I am unsure why there is a difference between clicking the frequency sweep manually in the MODE GUI and running the example provided script.
-
February 3, 2023 at 4:38 pm
Aaron Schreyer-Miller
SubscriberSolution: Call the frequency sweep function
frequencysweep - Script command – Ansys Opticsswitchtolayout;
findmodes;
selectmode(1);
setanalysis("track selected mode",1);
setanalysis("detailed dispersion calculation",1);
frequencysweep;
D=getdata("frequencysweep","D");
f=getdata("frequencysweep","f_D");
plot(c/f*1e6,D*1e6,"Wavelength (um)", "Dispersion (ps/nm/km)");
For some reason this is the only way to properly compute the dispersion in Lumerical. I hope this helps others that have the same issue. -
February 3, 2023 at 9:10 pm
Guilin Sun
Ansys EmployeeThank you for your effort on this topic. The script was developed many years ago which simply uses difference to get the 2nd order derivation. Later FDE has been improved a lot. For example, even at a single frequency point, it now can give dispersion result. You are right that it is better to use the built-in frequency sweep.
-
- 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
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Why my simulation result is different from published paper or experiment?
-
5162
-
3251
-
2443
-
1308
-
956
© 2023 Copyright ANSYS, Inc. All rights reserved.