Ansys Learning Forum › Forums › Discuss Simulation › Photonics › How to calculate modal overlap coefficient during the second harmonic generation › Reply To: How to calculate modal overlap coefficient during the second harmonic generation
May 27, 2024 at 5:37 pm
Amrita Pati
Ansys Employee
Hi 宇 范,
Are you using the intensities to caluclate the mode overlap? I believe the simplest approach would be to load the mode data into the global decks and then use the overlap script command. You can try something like this:
setanalysis("wavelength",1.55e-6);
findmodes;
copydcard("mode1","test_mode_1");
switchtolayout;
setanalysis("wavelength",0.775e-6);
findmodes;
copydcard("mode7","test_mode_2");
ol = overlap("test_mode_1","test_mode_2");
Feel free to let me know if you have any questions or concerns.
Â
Regards,
Amrita
Â