Polytropic atmosphere (source code)

= Polytropic atmosphere

A polytropic atmosphere obeys $p=K\rho^{1+1/m}$ for polytropic index $m$. Under uniform vertical gravity and a free surface, its density and pressure are powers of depth below that surface.