Title: Flash Computation and EoS Modelling for Compositional Thermal Simulation of Flow in Porous Media