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 Exporting a large number of data sets into TXT from varFDTD Reply To: Exporting a large number of data sets into TXT from varFDTD

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.