A viscous diffusion model for vortex-in-cell calculations