Running an Example

Now that you have built the code, you will want to run an example! To do that, you need to follow the following instructions (requires python2 or python3 with the h5py and other standard scientific packages, as well as wget for grabbing the glass).

cd examples/HydroTests/SodShock_3D
../swift --hydro --threads=4 sodShock.yml
python 1

This will run the ‘SodShock’ in 3D and produce a nice plot that shows you how the density has varied. Try running with GIZMO-MFV (this will take _significantly_ longer than with SPH) to see the difference. For that, you will need to reconfigure with the following options:

./configure \
--with-hydro=gizmo-mfv \

To see the results that you should get, you should check out our developer wiki at

If you don’t get these results, please contact us on our GitHub page at