Development of a snowdrift model with the lattice Boltzmann method