openPMD / openPMD-standard

:notebook: Open Standard for Particle-Mesh Data
http://www.openPMD.org
Creative Commons Attribution 4.0 International
79 stars 29 forks source link

Include information about simulation domain boundaries outside of mesh records #239

Open AngelFP opened 3 years ago

AngelFP commented 3 years ago

For data visualization purposes, it is useful to have information about the extent of the simulation domain of a PIC simulation even when only particle species are present in the output. Currently, however, one can only get this information if the output contains at least one field (mesh record).

As an example, this information would allow VisualPIC to set the spatial limits of a 3D render of a particle species to the extent of the PIC simulation box, so that the extent of the render does not fluctuate between time steps.

In a recent meeting, @ax3l suggested that the particlePatches sub-group could be used for this purpose, but this approach might not work if some particles eventually leave the simulation box, as it can happen in some simulation codes.