Spherically symmetric adiabatic flow (source code)

= Spherically symmetric adiabatic flow

Consider a \b[steady], smooth, radial <compressible flow> with no mass sources, no shocks and an <isentropic flow> law $p=K\rho^\gamma$, where $K>0$ and $\gamma>1$ are constant along the streamline. The radial <velocity> $u(r)$ can be positive for outflow or negative for inflow. The <continuity equation> gives
$$
r^2\rho u=C,\qquad \frac{\rho'}\rho=-\frac{u'}u-\frac2r
$$
where $u\ne0$. For a prescribed static <Newtonian gravitational potential> $\Phi(r)$, radial <conservation of momentum> is $uu'=-p'/\rho-\Phi'$. Since the <adiabatic sound speed> obeys $c_s^2=dp/d\rho=\gamma K\rho^{\gamma-1}$, substitution gives
$$
\left(u-\frac{c_s^2}{u}\right)u'=\frac{2c_s^2}{r}-\Phi'.
$$
The same balance integrates to the conserved <Bernoulli function>
$$
\mathcal B=\frac{u^2}{2}+\frac{c_s^2}{\gamma-1}+\Phi.
$$
A smooth <sonic point> has $u^2=c_s^2$ and also requires $2c_s^2/r=\Phi'$; vanishing of the left coefficient alone does not select a regular crossing. This is the starting point for <transonic spherical flow in a power-law potential>.

Steadiness is essential to the constant radial flux. An unsteady radial <continuity equation> is instead $\partial_t\rho+r^{-2}\partial_r(r^2\rho u)=0$, which allows the flux to vary with radius as material accumulates. Shocks can also change $K$ through <entropy production>.