A discrete model for particle deposition