Simulation of discrete two-dimensional gas model