Download

You will also want to download and install SPLASH to be able to look at the binary output files ("nsplash" reads this format).
To correctly read and visualise the dust examples in ndspmhd v2.1 you will need v2.5.2 of SPLASH or later.

Features

Full implementations of 1D, 2D and 3D hydrodynamics and magnetohydrodynamics as described in Price (2012)

(v2.1) Implementations of two fluid and one fluid dust-gas algorithms and test problems, as described in Laibe & Price (2012a,b,2014a,b) and Price & Laibe (2015)

Note, however, that ndspmhd is not meant as a "production" SPH code in 3D, since much better codes exist for this purpose
(e.g. the GADGET code by Volker Springel, and my own PHANTOM code that can be made available on request). ndspmhd is not parallel nor
particularly optimised and is meant as a code for algorithmic experimentation, not production runs.

Licence/conditions of use

The code is distributed under the GNU general public licence (v2.0). The only conditions of use aside from this are that you:

Cite the paper (Price D.J, 2012, J. Comp. Phys. 231, 759-794, arXiv:1012.1885) if you publish anything based on the code;

Cite the dust papers if you use the dust algorithms (and likewise for MHD); and

Kindly send me a copy of any such manuscript prior to acceptance (i.e., on submission to a journal/proceedings).

Support/feedback

Bug reports and feedback are always appreciated.

History

ndspmhd was developed as part of my PhD research at the University of Cambridge from 2001-2004. It has been used in nearly every paper I have published
since and contains complete working versions of most of the algorithms I have described in print.