Modelling of gas pressure equalization in beds of solids