Aaron Schreyer-Miller
Subscriber

Solution: Call the frequency sweep function
frequencysweep - Script command – Ansys Optics

switchtolayout;
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.