Density profile and flow of driven gas in an open porous medium with a computer simulation