Introduction to Computational Fluid Dynamics

For example, even though we may limit ourselves to incompressible flows for which the viscosity is constant, we still end up with the following equations:

\[ \underbrace{\frac{\partial \boxed{u}}{\partial x} + \frac{\partial \boxed{v}}{\partial y} + \frac{\partial \boxed{w}}{\partial z} = 0}_{\text{Continuity equation (mass conservation)}} \]
\[ \left. \begin{aligned} \rho \left( \boxed{\frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + v \frac{\partial u}{\partial y} + w \frac{\partial u}{\partial z}} \right) &= \rho g_x - \frac{\partial \boxed{p}}{\partial x} + \boxed{\mu \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2} \right)} \\ \rho \left( \frac{\partial v}{\partial t} + u \frac{\partial v}{\partial x} + v \frac{\partial v}{\partial y} + w \frac{\partial v}{\partial z} \right) &= \rho g_y - \frac{\partial p}{\partial y} + \mu \left( \frac{\partial^2 v}{\partial x^2} + \frac{\partial^2 v}{\partial y^2} + \frac{\partial^2 v}{\partial z^2} \right) \\ \rho \left( \frac{\partial w}{\partial t} + u \frac{\partial w}{\partial x} + v \frac{\partial w}{\partial y} + w \frac{\partial w}{\partial z} \right) &= \rho g_z - \frac{\partial p}{\partial z} + \mu \left( \frac{\partial^2 w}{\partial x^2} + \frac{\partial^2 w}{\partial y^2} + \frac{\partial^2 w}{\partial z^2} \right) \end{aligned} \right\} \begin{aligned} &\text{Navier-Stokes equations} \\ &\text{(momentum)} \end{aligned} \]

In principle, these equations can be solved for the velocity field \(\mathbf{u}\) and pressure field \( p \), given sufficient initial and boundary conditions. Note that in general, \( u, v, w, \) and \( p \) all depend on \( x, y, z, \) and \( t \). In practice, there is no general analytic solution to these equations, for the combined effect of a number of reasons (none of which is insurmountable by itself):