Cellular automata and hydrodynamic applications