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.
-
- The topic ‘MODE Ansys Dispersion Example Not Working’ is closed to new replies.
-
5834
-
1906
-
1420
-
1305
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.