Fluid-dynamics modelling with the Fokker-Planck equation on lattices