Dear Francesco, Thanks for sending the example files. The existing reader did work, but to read the gadget_hdf5 format you need:
splash -f gadget_hdf5 earth_impact_001000.hdf5 However, I found a couple of issues — e.g. no rendering because it did not recognise the column labels for density and smoothing length properly, and also the smoothing length was being wrongly multiplied by 0.5 (since the definition of h must differ in GADGET compared to SWIFT). So I’ve pushed a few fixes to this and have also made it “guess” the right format if you give a filename ending in .hdf5, so you don’t need to specify “-f gadget_hdf5". So if you update the code, now you can just use: splash earth_impact_001000.hdf5 With that everything seems to work, image attached. The updates will be included in the next release (v3.0.2) Best wishes, Daniel > On 18 Jan 2021, at 9:45 am, Francyrad <[email protected]> wrote: > > Dear professor Daniel Price > > As you invite in splash documentation, I request a new red_data routine for > the program called SWIFTSIM. Actually is the only program available that can > simulate giant impacts between the planets. > > Swiftsim already has some scripts to read datas. However it's very > unintuitive, to visualize snapshots you need to write the whole python script > and lose a lot of time. > > WIth Splash, everything would be easier and you could visualize snaps in real > time and then make a video as preferred. > > I attach you a dump file and link you the source code with the documentation. > I'm not the creator of the program, but making a new data routine would be > very useful for research. > > > The dump is an hdf5 format; i already tried to read it with some commands > already available, but it's been impossible; i obviously compiled splash with > hdf5=yes - i suggest you to specify this process in the userguide because i > spent some time before to find the solution (setting the hdf5 path and then > write "make SYSTEM=gfortran withgiza HDF5=yes" > > In the documentation, the authors say that the format is compatible with > Gadget 2, however I tried to read them and I got only errors. Maybe a new > data read is not needed, but i could do anything.. > > > Let me know and thank you for your work! > > Francesco > > The source code > https://gitlab.cosma.dur.ac.uk/swift/swiftsim > > The documentation > http://swift.dur.ac.uk/docs/GettingStarted/compiling_code.html > > > > <earth_impact_001000.hdf5><earth_impact_000000.hdf5> -- You received this message because you are subscribed to the Google Groups "SPLASH users forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/splash-users/C3279CBC-2BA4-42AA-87F6-17AEF4F8DA7D%40monash.edu.
