Computation of Electropulse-driven Regeneration of Magnetic Heterogeneous Materials