openPMD / openPMD-standard

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

gridSpacing and gridUnitSI #24

Open RemiLehe opened 9 years ago

RemiLehe commented 9 years ago

For cylindrical and spherical coordinates, the unit of the gridSpacing must be set per component.

We could write an array, so a unit for each component.

ax3l commented 8 years ago

Meshes: @PrometheusPi has a case in the PIConGPU radiation plugin where he wants to store complex amplitude data as 2D matrix in a rectilinear grid. Also here, an array for gridSpacing would help.

We worke around this in the 1.0.X version by using "spatial and frequency indexes" for the mesh and documenting the translation for space and frequency domain via the arrays stored in particle records.