Visualisation of Example Decks #4476
Unanswered
abigailalexjames
asked this question in
Data Analysis
Replies: 1 comment
-
Cool, very close. The only thing that is missing in your inputs is diag1.format = openpmd https://warpx.readthedocs.io/en/latest/usage/parameters.html#full-diagnostics and then for openPMD-viewer you use the path to the diag1 output folder (which contains all steps of the output series): ts = OpenPMDTimeSeries('/path_to_file/diags/diag1/') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm new to PIC codes and plasma acceleration and I wondered if someone could help me visualise the outputs as I can't see what I'm doing wrong.
I've managed to install the code and run the 2d example input of a laser driven plasma acceleration from here. The example code writes outputs as both reduced diagnostics and as a file labelled diags 1.
I have tried to follow the steps in the documentation and the example output file but nothing works to allow me to read the data.
When trying the simple numpy.genfromtxt to pull from the reduced files I get an error implying a mismatch with expected columns:
ValueError: Some errors were detected !
Line 2 (got 12 columns instead of 22)
When trying to use from read_raw_data I get 'no module exists' error and I cannot figure out how to access this module. It says that it's part of some post processing package, can this be installed?
I tried using OpenPMD and the path to the diags1 output however I'm not clear if the output is as expected. The example input file says:
When I try
ts = OpenPMDTimeSeries('/path_to_file/diags/diag1000000/')
It's really unclear to me how to access the output data and plot it. I have searched the documentation and github and cannot find the answer. I would really appreciate any advice you can give.
Many thanks,
Abigail
Beta Was this translation helpful? Give feedback.
All reactions