For an ideal gas, the molar heat capacity is at most a function of temperature, since the internal energy is solely a function of temperature for a closed system, i.e., U = U ( n , T ) , where n is the amount of substance in moles. In thermodynamic terms, this is a consequence of the fact that the internal pressure of an ideal gas vanishes.