Simulation of phase transition process using lattice Boltzmann method