Skip to content

Instantly share code, notes, and snippets.

@StanczakDominik
Last active June 16, 2018 16:50
Show Gist options
  • Save StanczakDominik/d7a6468eb41b92433676bcb08744af88 to your computer and use it in GitHub Desktop.
Save StanczakDominik/d7a6468eb41b92433676bcb08744af88 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

OpenPMD notes

Fields, spatial quantities are records.

Position.x - a component of a record.

Each record has attributes:

Squashing constant data

Provide a common interface (.value, .unitSI, .shape) for arrays and constants via treating the latter like hdf5 groups.

Charge-as-an-array:

  • particles (group)
    • electrons (group):
      • charge (array)
        • unitSI (attribut)

Charge-an-a-group:

  • particles (group)
    • electrons (group):
      • charge (group)
        • value (attribute, float)
        • unitSI (attribute)
        • shape (attribute)

For Cartesian 2D (z=const) you can have z-as-a-group.

Existing tools:

neat Zenodo poster

https://zenodo.org/record/822396

@StanczakDominik
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment