A numerical model of gas-fluidized beds