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

Write One Block Phantom Files #83

Open kn8483 opened 2 months ago

kn8483 commented 2 months ago

This is a preliminary pull request to add functionality to create (write) Phantom files from a Sarracen Data Frame. So far, it is functional for data frames that were generated from a single-block Phantom file - we can write a Phantom file from a single data frame. It appears to fail to recreate an accurate Phantom file from the first block (first data frame produced by read_phantom) of a Phantom file, although, visually when rendering the data frames for comparison, the images appears identical.