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

Phantom data reads and multiple particle types #69

Closed ttricco closed 8 months ago

ttricco commented 8 months ago

read_phantom() creates a mass key in params to store the global mass of a particle, thereby avoiding storage of duplicated mass values per particle. This doesn't work when a dataframe contains more than 1 species of particles that have different particle masses (e.g., gas + dust).

This PR fixes/changes a few things: