Dispersion calculation in var FDTD?

for the link

how to calculate dispersion in script for above ring modulator. Group delay is already calculated in this design, but i want to calculate dispersion with units ps/(nm km) .

plz help


I would recommend taking a look at the script from the following example which calculates the dispersion from group delay:

See lines 104-107 of the associated script file and let me know if you have any questions about it!