Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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

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

 

[bingo_chatbox]