An original algorithm for VOF based method to handle wetting effect in multiphase flow simulation