Energy diagnostics for CESM
According to Taylor et al. (2020), the continuum energy budget is defined as
K+I+PK≡21∂s∂πv2I≡cpΘvΠ−∂s∂πρ1p+πtopϕtop≡cpΘvΠ+r^2p∂s∂ϕ+πtopϕtopP≡∂s∂πϕ
Using the equation of state ∂s∂ϕ=−r^−2RdΘvpΠ⟹∂s∂π=−∂s∂ϕρr^2
,
we can write −(ρ−1∂s∂π)p=pr^2∂s∂ϕ
∫pr^2∂s∂ϕds−πtopϕtop=[pr^2ϕ]bottomtop−∫∂s∂(r^2p)ϕds+πtopϕtop=psr^s2ϕs−r^top2πtopr^top2ϕtop−∫∂s∂(r^2p)ϕds+πtopϕtop=psr^s2ϕs−∫∂s∂(r^2p)ϕds
Note: bottom boundary does not disappear outside of time derivative!