Ansys Learning Forum Forums Discuss Simulation Photonics large scale metalens-Amplitude Reply To: large scale metalens-Amplitude

Niki Papachristou
Ansys Employee

Thank you for reaching out to us. I had a look on our example files and I believe that there is a matrix mismatch, thank you for bringing this to our attention!. This occurs because of a wrong setting on the sweeps/radius, more specifically the number of points are 11 on the parameter sweep, while the script is expecting 51:
image
You can overcome this error by changing the number of points to 51 (right click on radius and edit), and then run this sweep (right click on radius and run). After that running the script, it will give you the expected matlab file.
 
I hope that was helpful, let me know if I can be of further assistance.

All the best,
Niki