We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

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