ECP-WarpX / WarpX

WarpX is an advanced electromagnetic & electrostatic Particle-In-Cell code.
https://ecp-warpx.github.io
Other
310 stars 196 forks source link

LWFA Visualization: VisIt #3087

Open baobaba13 opened 2 years ago

baobaba13 commented 2 years ago

Hello, I just installed warpx using CONDA on windows and ran the calculation example of laser plasma acceleration given on the website. But when I used visit to visualize data, I didn't seem to respond. Could you please give me some instructions on how to use visit to process the data of files like "python_lasercacceleration_plt0000000". I want to get the picture of electric field distribution.I would appreciate it if you could answer my question

ax3l commented 2 years ago

Hi @baobaba13, welcome to WarpX :)

If you like to use VisIt for visualization, you can either visualize the "plotfiles" that you see right now - or switch to use openPMD HDF5 files by adding:

diag1.format = openpmd
diag1.openpmd_backend = h5

to your inputs.

The visualization steps are then described in both cases in this section the manual: https://warpx.readthedocs.io/en/latest/dataanalysis/visit.html

ax3l commented 2 years ago

Hi @baobaba13, does this work for you? :)

jcyu96 commented 2 years ago

Hi @ax3l, I dumped the data in .h5 format as described above, but it still report an error when I plot it with Visit3.3.1.

Here is parameters for diagnostics:

diagnostics.diags_names = diag1
diag1.intervals = 100
diag1.diag_type = Full
diag1.format = openpmd
diag1.openpmd_backend = h5
diag1.fields_to_plot = Bx By Bz rho_backele

and VisIt's error:

image

Where does this error come from and what should I do to avoid it?