ttricco / sarracen

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

Proper handling of SPH mass and density data #26

Closed AndrewHarris709 closed 2 years ago

AndrewHarris709 commented 2 years ago

Generalizes the way that sarracen rendering and interpolation functions work with mass and density data, to work seamlessly in more scenarios. As well, the read_phantom method has been extended with more options, to work better in more cases:

When using the rendering / interpolation functions mass must exist as a single column in the dataset, or in a single massparameter in the param dictionary.