From Volumetric Energy Balance to the Entropy Generation: The Evolution of the State of the Art in Thermodynamic Concepts in Petroleum Production Systems