A closed system may lie in thermodynamic equilibrium in a static gravitational field, so that its pressure p varies continuously with altitude, while, because of the equilibrium requirement, its temperature T is invariant with altitude. (Correspondingly, the system's gravitational potential energy density also varies with altitude.) Then the enthalpy summation becomes an integral : H = ∫ ∫ ( ρ ρ h ) d V , where