Ch. 6Differential Analysis of Fluid Flow
Main points:
Rotation of fluid particle given by

for incompressible flow:

Inviscid flow
Euler equationsf = ma for a general fluid neglecting viscous effects (no shearing stresses). Valid for unsteady, compressible flowcan capture shocks. Widely used for design through numerical solutions.
If flow is steady and incompressible, can show from Euler equations that Bernoullis equation is valid along streamlines.
If flow is also irrotational, Bernoullis equation applies between ANY two points within that irrotational flowno restriction to streamlines only.
If an incompressible, steady flow conserves mass and is also irrotational, the complex Euler equations can be reduced to Laplaces equation in a velocity potential, f.

Similarly, for the same conditions but in 2D, the equations reduce to Laplaces equation in the streamfunction:

and lines of constant streamfunction and constant potential are orthogonal!
Many useful inviscid flows can be created analytically by superimposing elemental solutions for source, sink, uniform flow, doublet. Such "practical" configurations include flow over a cylinder, flow over airfoil shapes.
Today, most inviscid flow solutions are obtained by solving the Euler or Laplace equations numerically by finite difference or finite volume methods.
Viscous flows: Effects of viscosity considered. Real flows are viscous. Results in no slip at solid boundaries, i.e., the velocity is zero at solid boundaries. The equations that govern motion (F=ma) are the Navier-Stokes equations. These are like the Euler equations except that the effects of shearing stresses are added. The stress terms we considered earlier are related to rates of strain. Some exact solutions exist for simple flows but today, numerical solutions to the N-S equations are fairly common.
Some notes on solving Laplace's equation numerically

Without viscous effects, the rotation of fluid particles cannot be changed leading to

This equation can be approximated by the finite-difference formulation:

When the grid spacing is equal in both directions, (
), the equation simplifies to

Preferred method for solving is Gauss-Seidel iteration. The method works well for solving large systems of linear algebraic equations that have a certain level of "diagonal dominance." When the dominance is there the procedure is:
Note: The required diagonal dominance is that the magnitude of the coefficient on the left is greater than or equal to the sum of the magnitudes of the coefficients to unknowns on the right with the greater than holding for one equation. If this procedure is working, each unknown takes a turn at appearing on the left so that as we pass through the list, each unknown is updated.