Development and Validation of a Parallel MHD Code for the Simulation of Self-Field MPDT Flows