Polytropic atmosphere (source code)

= Polytropic atmosphere
{wiki=Polytrope}

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.