Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code