Computational Thermodynamics: Basis