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 宇 范,

You may first run your script. Although it will throw an error it will still store E11 and E1 in the local workspace.

Then you can run ?size(E11); in the Script Prompt. Followed by ?size(E1); The question mark will return the size as shown below:

What are the sizes returned by both matrices?

Regards,
Amrita