Gravar-mail: A self-consistent spin-diffusion model for micromagnetics