Steady flow Potential flow theory can also be used to model irrotational compressible flow. The derivation of the governing equation for \varphi from
Eulers equation is quite straightforward. The continuity and the (potential flow) momentum equations for steady flows are given by \rho \nabla\cdot\mathbf v + \mathbf v\cdot\nabla \rho = 0, \quad (\mathbf v \cdot\nabla)\mathbf v= -\frac{1}{\rho}\nabla p = -\frac{c^2}{\rho}\nabla \rho where the last equation follows from the fact that
entropy is constant for a fluid particle and that square of the
sound speed is c^2=(\partial p/\partial\rho)_s. Eliminating \nabla\rho from the two governing equations results in c^2\nabla\cdot\mathbf v - \mathbf v\cdot (\mathbf v \cdot \nabla)\mathbf v=0. The incompressible version emerges in the limit c\to\infty. Substituting here \mathbf v=\nabla\varphi results in (c^2-\varphi_x^2)\varphi_{xx}+(c^2-\varphi_y^2)\varphi_{yy}+(c^2-\varphi_z^2)\varphi_{zz}-2(\varphi_x\varphi_y\varphi_{xy}+\varphi_y\varphi_z\varphi_{yz}+\varphi_z\varphi_x\phi_{zx})=0 where c=c(v) is expressed as a function of the velocity magnitude v^2=(\nabla\phi)^2. For a
polytropic gas, c^2 = (\gamma-1)(h_0-v^2/2), where \gamma is the
specific heat ratio and h_0 is the
stagnation enthalpy. In two dimensions, the equation simplifies to (c^2-\varphi_x^2)\varphi_{xx}+(c^2-\varphi_y^2)\varphi_{yy}-2\varphi_x\varphi_y\varphi_{xy}=0.
Validity: As it stands, the equation is valid for any inviscid potential flows, irrespective of whether the flow is subsonic or supersonic (e.g.
Prandtl–Meyer flow). However in supersonic and also in transonic flows, shock waves can occur which can introduce entropy and vorticity into the flow making the flow rotational. Nevertheless, there are two cases for which potential flow prevails even in the presence of shock waves, which are explained from the (not necessarily potential) momentum equation written in the following form \nabla (h+v^2/2) - \mathbf v\times\boldsymbol\omega = T \nabla s where h is the
specific enthalpy, \boldsymbol\omega is the
vorticity field, T is the temperature and s is the specific entropy. Since in front of the leading shock wave, we have a potential flow, Bernoulli's equation shows that h+v^2/2 is constant, which is also constant across the shock wave (
Rankine–Hugoniot conditions) and therefore we can write \mathbf v\times\boldsymbol\omega = -T \nabla s 1) When the shock wave is of constant intensity, the entropy discontinuity across the shock wave is also constant i.e., \nabla s=0 and therefore vorticity production is zero. Shock waves at the pointed leading edge of two-dimensional wedge or three-dimensional cone (
Taylor–Maccoll flow) has constant intensity. 2) For weak shock waves, the entropy jump across the shock wave is a third-order quantity in terms of shock wave strength and therefore \nabla s can be neglected. Shock waves in slender bodies lies nearly parallel to the body and they are weak.
Nearly parallel flows: When the flow is predominantly unidirectional with small deviations such as in flow past slender bodies, the full equation can be further simplified. Let U\mathbf{e}_x be the mainstream and consider small deviations from this velocity field. The corresponding velocity potential can be written as \varphi = x U + \phi where \phi characterizes the small departure from the uniform flow and satisfies the linearized version of the full equation. This is given by (1-M^2) \frac{\partial^2\phi}{\partial x^2} + \frac{\partial^2\phi}{\partial y^2} + \frac{\partial^2\phi}{\partial z^2} =0 where M=U/c_\infty is the constant
Mach number corresponding to the uniform flow. This equation is valid provided M is not close to unity. When |M-1| is small (transonic flow), we have the following nonlinear equation 2\alpha_*\frac{\partial\phi}{\partial x} \frac{\partial^2\phi}{\partial x^2} = \frac{\partial^2\phi}{\partial y^2} + \frac{\partial^2\phi}{\partial z^2} where \alpha_* is the critical value of
Landau derivative \alpha = (c^4/2\upsilon^3)(\partial^2 \upsilon/\partial p^2)_s and \upsilon=1/\rho is the
specific volume. The transonic flow is completely characterized by the single parameter \alpha_*, which for polytropic gas takes the value \alpha_*=\alpha=(\gamma+1)/2. Under
hodograph transformation, the transonic equation in two-dimensions becomes the
Euler–Tricomi equation.
Unsteady flow The continuity and the (potential flow) momentum equations for unsteady flows are given by \frac{\partial\rho}{\partial t} + \rho \nabla\cdot\mathbf v + \mathbf v\cdot\nabla \rho = 0, \quad \frac{\partial\mathbf v}{\partial t}+ (\mathbf v \cdot\nabla)\mathbf v= -\frac{1}{\rho}\nabla p =-\frac{c^2}{\rho}\nabla \rho=-\nabla h. The first integral of the (potential flow) momentum equation is given by \frac{\partial\varphi}{\partial t} + \frac{v^2}{2} + h = f(t), \quad \Rightarrow \quad \frac{\partial h}{\partial t} = -\frac{\partial^2\varphi}{\partial t^2} - \frac{1}{2}\frac{\partial v^2}{\partial t} + \frac{df}{dt} where f(t) is an arbitrary function. Without loss of generality, we can set f(t)=0 since \varphi is not uniquely defined. Combining these equations, we obtain \frac{\partial^2\varphi}{\partial t^2} + \frac{\partial v^2}{\partial t}=c^2\nabla\cdot\mathbf v - \mathbf v\cdot (\mathbf v \cdot \nabla)\mathbf v. Substituting here \mathbf v=\nabla\varphi results in \varphi_{tt} + (\varphi_x^2+ \varphi_y^2+ \varphi_z^2)_t= (c^2-\varphi_x^2)\varphi_{xx}+(c^2-\varphi_y^2)\varphi_{yy}+(c^2-\varphi_z^2)\varphi_{zz}-2(\varphi_x\varphi_y\varphi_{xy}+\varphi_y\varphi_z\varphi_{yz}+\varphi_z\varphi_x\phi_{zx}).
Nearly parallel flows: As in before, for nearly parallel flows, we can write (after introducing a recaled time \tau=c_\infty t) \frac{\partial^2\phi}{\partial \tau^2} + 2M \frac{\partial^2\phi}{\partial x\partial\tau}= (1-M^2) \frac{\partial^2\phi}{\partial x^2} + \frac{\partial^2\phi}{\partial y^2} + \frac{\partial^2\phi}{\partial z^2} provided the constant Mach number M is not close to unity. When |M-1| is small (transonic flow), we have the following nonlinear equation \frac{\partial^2\phi}{\partial \tau^2} + 2\frac{\partial^2\phi}{\partial x\partial\tau} = -2\alpha_*\frac{\partial\phi}{\partial x} \frac{\partial^2\phi}{\partial x^2} + \frac{\partial^2\phi}{\partial y^2} + \frac{\partial^2\phi}{\partial z^2}.
Sound waves: In sound waves, the velocity magnitude v (or the Mach number) is very small, although the unsteady term is now comparable to the other leading terms in the equation. Thus neglecting all quadratic and higher-order terms and noting that in the same approximation, c is a constant (for example, in polytropic gas c^2=(\gamma-1)h_0), we have \frac{\partial^2 \varphi}{\partial t^2} = c^2 \nabla^2 \varphi, which is a linear
wave equation for the velocity potential . Again the oscillatory part of the velocity vector is related to the velocity potential by , while as before is the
Laplace operator, and is the average speed of sound in the
homogeneous medium. Note that also the oscillatory parts of the
pressure and
density each individually satisfy the wave equation, in this approximation. ==Applicability and limitations==