Thermodynamic Modelling: Fundamentals and Computational Aspects