Visualizing Complex E&M Modes CSV File

Hey guys! Sorry that I’m a little new to paraview. I have a CSV file of the form:

x, y, z, Ex, Ey, Ez, Bx, By, Bz
0.0, 0.0, 0.0, 0.0+0.0i, 0.0+0.0i, 0.0+0.0i,

It represents an EM mode of a given frequency (optical) where the real/complex portions get turned into a time dependent field with something like the following.

E = cos( w t + φ ) E re − sin( w t + φ ) E im

Does anybody have suggestions on how to import this data correctly into paraview? I have started by opening the CSV file, but I was immediately struck with the problem that paraview doesn’t want to see my complex fields as a numeric datatype. It sees them as strings instead.

paraview doesn’t want to see my complex fields as a numeric datatype. It sees them as strings instead.

ParaView doesnt support complex numbers. The best you could achieve is to separate them into two arrays or a single array with two components.

However, to achieve that, you will need to convert the strings into numerical data. Afaik, this is only possible through a programmable filter.

The next step would be to convert your tabular data into a point cloud using TableToPoints filter.