Fluid dynamics with lattice gases