ttricco / sarracen

A Python library for smoothed particle hydrodynamics (SPH) analysis and visualization.
https://sarracen.readthedocs.io
GNU General Public License v3.0
15 stars 18 forks source link

Add a vtk reader tailored for Shamrock dumps. #84

Closed y-lapeyre closed 1 month ago

y-lapeyre commented 2 months ago

Shamrock is a new GPU hydrodynamics/magnetohydrodynamics code for astrophysical simulations. It was presented at the 5th Phantom Workshop and will be made public later this year.

ttricco commented 1 month ago

I have renamed read_vtk() to read_shamrock() and will merge this in. Thanks for your contribution. Please raise an issue or open a new PR if any changes are needed.

y-lapeyre commented 1 month ago

Sorry for my late response, was out of internet for a week. Thank you very much! And unfortunately the VTK format doesn't allow for much metadata to be stored. According to the creators of the format, if one wants to store constants in the header, they should use an extra column for it... which is not ideal. We will come up with a Shamrock native format in the future.