Numerical simulation for hydrodynamic behavior of box-systems with and without narrow gaps