Micromagnetic study of the recording process on longitudinal thin-film media