A numerical solution of the time-varying diffusion equation for the F2-layer