Introduction to discrete hydrodynamics