Numerical analysis of multiphase flows through the lattice boltzmann method