Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Exporting a large number of data sets into TXT from varFDTD › Reply To: Exporting a large number of data sets into TXT from varFDTD
March 7, 2024 at 4:16 pm
Matt Wilson
Subscriber
Hi Guilin, the script now iterates through the for loop properly. I seem to be having issues with the values of E. I think it is due to a misunderstanding of how it is calculated from the raw data. Can you advise?
Ex = real(getdata("E_field", "Ex"));
Ey = real(getdata("E_field", "Ey"));
E_data = sqrt(Ex^2 + Ey^2);
This is how I am currently calculating it.