Computational simulation of magnetohydrodynamics acceleration experiments using newton-krylov-schwarz method