Tie-simplex method for thermal-compositional simulation