openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
142 stars 51 forks source link

Geant4 converter #1320

Open berceanu opened 2 years ago

berceanu commented 2 years ago

Hi, a bit of a general question, but is there an openPMD-to-Geant4 converter available?

ax3l commented 1 year ago

We have an implementation in Geant4 that we used to write particles that we then load in WarpX.

You can find the implementation here: https://github.com/LDAmorim/GPos

berceanu commented 1 year ago

Hi @ax3l, thanks for the reply. So it seems on first look the code you mentioned is a converter in the direction Geant4-to-OpenPMD. At the moment I am interested in the inverse problem, namely taking particles from WarpX and using them as input for Geant4, in a very similar configuration, with a thin foil. I guess that is not implemented?