Latticegas
Lattice gas refers to a class of simplified fluid models in statistical mechanics in which a fluid is represented by particles moving on the sites of a lattice. Each lattice site stores a set of occupation numbers for discrete velocity directions. Time progresses in discrete steps, and the dynamics proceed in two phases: streaming, where particles move to neighboring sites along their respective directions; and collision, where particles at a site interact and are reassigned to new velocity directions according to rules that conserve mass and momentum. Occupation numbers are usually 0 or 1 for each direction, though some variants permit multiple occupants.
In two dimensions the classic realizations are the HPP model on a square lattice with four directions
Applications of lattice gas models include qualitative and quantitative studies of fluid flow in simple regimes,