Modeling phase transition gas-solid