Vertical evolution of potential energy density and vertical