How to model volume electric field?

Hi,

I would like to be able to model the electric field of a spacecraft that results within the entire control volume. When I run my simulations, I see there is an empty file for “Volume Electric Field”. How to enable my simulation to generate this?

Thanks.

Hi Amy. I’ve had issues generating this file before. I’m not sure what is wrong, but you can calculate the electric field from the plasma potential files.

Hi Fredrik,
Do you have any suggestions on how to calculate the electric field from the plasma potential files? I am new to SPIS and Paraview, so any advice is appreciated.

Hi Amy. Also tagging Yongshan Ba, who had a similar question @23131213962

  1. export the final plasma potential (or whatever potential you want) from spis to .vtk
  2. Open it in Paraview
  3. Apply the filter “Gradient” in Paraview. It gives you values in x, y, z as well as the magnitude. As long as your coordinate system is in meters, this should be V/m https://www.paraview.org/paraview-docs/latest/python/paraview.simple.Gradient.html

Save the data (e.g. export to .csv / .vtk) or visualize it, whatever you want.

I had never used paraview before and now I have solved my problem, thanks a lot!