Bernoulli's Equation
$$ \rho_0 H = \rho_0 \frac{u^2}{2} + p + \rho_0 gz = \text{const.} $$ \[ H = \underbrace{\frac{u^2}{2}}_{\text{kinetic energy per unit mass}} + \underbrace{\frac{p}{\rho_0}}_{\text{pressure potential energy per unit mass}} + \underbrace{gz}_{\text{gravitational potential energy per unit mass}} = \text{const.} \] These three forms of energy together make up the mechanical energy of the fluid, hence the Bernoulli equation is the equation expressing the conservation of mechanical energy in a fluid

From the derivation process, we can see that the conditions for applying the Bernoulli equation include along a streamline, steady, inviscid, and incompressible flow. The first three are conditions required by the Euler equation, and the last one is a condition introduced during integration.


The Bernoulli equation can also be derived from the Euler equation. The one-dimensional steady-flow Euler equation along the z-axis can be written as \(w \frac{dV}{dz} = \vec{f}_{b,z} - \frac{1}{\rho}\frac{dp}{dz}\). When the body force is only gravity, and the positive z-axis is taken as upward, replacing w with U, the above equation becomes \(\frac{dp}{\rho} + gdz + UdU = 0\). When the flow is incompressible, it is relatively easy to integrate the above to obtain \(\frac{p}{\rho} + gz + \frac{U^2}{2} = \text{const.}\).