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 9:36 pm
Amrita Pati
Ansys Employee
Hi 宇 范,
I just realized that the overlap will be different as this is for SHG. This looks like a size mismatch error to me. Would you be able to share the screenshot of the line of code that is causing the error? What I will suggest you to do is make sure that the individual data/matrix you are using have the right sizes. You can use the size script command to look at the size of each variable and make sure that when you are multiplying two matrices, their sizes are matching.Â
regards,
Amrita