Magnetohydrodynamical Simulations