-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Particle fields in RZ Geometry with openPMD #5659
Comments
Hi @PhysicsDan , thanks for the report! Did you test if this still worked with |
Thanks for the report! I wonder if creating fields from particles for diagnostics is at all supported in RZ yet... Here is what I see debugging it:
The moment that we add a single
The problem indeed disappears if I remove
, which is funny because this is frontend logic throwing the assert, before we go into the I/O backend. The
|
Just to confirm, I have been able to use particle_fields with the plotfile outputs. The particle_fields outputs look to be ~correct |
Discussed today in the developer meeting:
|
Hi, I encountered similar problem, i.e., particle_fields_to_plot in RZ. Although it runs until finish with plotfile format, the output of whatever within "particle_fields_to_plot" is always zero (other parts are correctly executed though). The input file is "inputs_base_rz", but with the following diagnosis : ` diag1.particle_fields_to_plot = z diag1.file_prefix = diags/plotfiles/plt Then, I check the plotfiles with amrvis2d, the "z_electrons" is always zero. Did I missed something here? |
Description
Particle Fields do not work when using the openpmd backend in RZ geometry
(Only tested using the precompiled executable from
conda
)Minimal Example
When adding the snippet
to
inputs_test_rz_laser_acceleration_opmd
The code instantly fails with the error
Backtrace
However, when the snippet is added to this file (i.e. the same simulation but using the plotfile output type), there us no error
inputs_test_rz_laser_acceleration
Note, this is also not an issue in cartesian geometry as
WarpX/Examples/Tests/particle_fields_diags
also runs without any issue.System information
MacOS 15.3
WarpX 25.02 via Conda
The text was updated successfully, but these errors were encountered: