maths.free › Fluid Dynamics › Conservation of mass, the continuity equation and incompressibility
Conservation of mass, the continuity equation and incompressibility
From a balance of mass in a box to the continuity equation, and why incompressible means divergence-free.
Mass is neither created nor destroyed. Take any fixed region \(V\) with boundary \(\partial V\) and outward normal \(\mathbf{n}\). The mass inside changes only by what flows across the boundary, and the rate at which mass leaves through a small patch \(dS\) is \(\rho\,\mathbf{u}\cdot\mathbf{n}\,dS\). So \[ \frac{d}{dt}\int_V \rho\,dV = -\oint_{\partial V}\rho\,\mathbf{u}\cdot\mathbf{n}\,dS = -\int_V \nabla\cdot(\rho\mathbf{u})\,dV, \] by the divergence theorem. Since \(V\) is arbitrary and the integrand is continuous, the integrand itself vanishes: \[ \frac{\partial\rho}{\partial t} + \nabla\cdot(\rho\mathbf{u}) = 0. \] This is the continuity equation. Expanding the divergence gives the equivalent Lagrangian form \(D\rho/Dt + \rho\,\nabla\cdot\mathbf{u} = 0\).
A flow is incompressible when the density of each particle does not change, \(D\rho/Dt = 0\). Because \(\rho \gt 0\), the continuity equation then says exactly \[ \nabla\cdot\mathbf{u} = 0. \] By Euler's expansion formula \(DJ/Dt = (\nabla\cdot\mathbf{u})J\), this is the same as \(J \equiv 1\): the flow map preserves volume. A blob of fluid can be stretched into a long thread, but its volume stays fixed. The density need not be constant everywhere (salt water under fresh water is incompressible but layered); when it is, \(\rho = \rho_0\), the flow is called homogeneous, and that is the setting of the Navier-Stokes equations studied in this course.
No real fluid is exactly incompressible. The approximation is good when the Mach number \(\mathrm{Ma} = U/c\) is small, where \(c\) is the speed of sound: density changes are then of relative size about \(\mathrm{Ma}^2\). Air moving at \(30\) m/s has \(\mathrm{Ma} \approx 0.09\) and density variations below one per cent, so a car in a wind tunnel is an incompressible flow problem.
Checking incompressibility is a calculation. The strain \(\mathbf{u} = (x,-y,0)\) has \(\nabla\cdot\mathbf{u} = 1 - 1 + 0 = 0\): it squeezes in one direction exactly as fast as it stretches in the other. The radial field \((x,y,z)\) has divergence \(3\) and is a source. Incompressibility also changes the role of pressure. There is no longer an equation of state relating \(p\) to \(\rho\); instead the pressure adjusts instantly, everywhere, to whatever value keeps \(\nabla\cdot\mathbf{u} = 0\). We will see this made precise when the pressure is eliminated from the Navier-Stokes equations.
Picture it: a square of dye in the strain flow becomes a long thin rectangle with the same area. Think it: divergence-free vector fields are exactly those whose flow maps preserve volume, and they form a linear subspace; projecting onto that subspace is what the pressure does.
Gewerkte voorbeeld · divergence of [x, -y, 0]
Divergence of [x, -y, 0]
Stap met stap
- \mathbf{F} = \left\langle x,\ - y,\ 0 \right\rangle,\quad \nabla\cdot\mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}
The divergence adds up how fast each component grows along its own axis.
- \frac{\partial P}{\partial x} = \frac{\partial }{\partial x}\left(x\right) = 1
Differentiate the x-component with respect to x, holding y and z constant.
- \frac{\partial Q}{\partial y} = \frac{\partial }{\partial y}\left(- y\right) = -1
Differentiate the y-component with respect to y, holding x and z constant.
- \frac{\partial R}{\partial z} = \frac{\partial }{\partial z}\left(0\right) = 0
Differentiate the z-component with respect to z, holding x and y constant.
- \nabla\cdot\mathbf{F} = \left(1\right) + \left(-1\right) + \left(0\right) = 0
Add the three partial derivatives.
- \nabla\cdot\mathbf{F} = 0
Zero divergence everywhere: the field has no sources or sinks. For a velocity field this is incompressible flow.
Openbaar die antwoord
Nou jy Kies'n probleem, of tik of teken jou eie.'n Foto, die antwoord wat verberg is totdat jy vra.
Simbools wat hier gebruik word
Maak enige simbool van die volledige definisie,'n prent en wat elke letter daarin beteken.
Hoe om: Conservation of mass, the continuity equation and incompressibility
- Write the velocity components (u, v, w) as functions of x, y, z.
- Differentiate each component with respect to its own coordinate: u_x, v_y, w_z.
- Add them. Zero everywhere means incompressible; a positive value means local expansion.
- To make a field divergence-free, solve w_z = -(u_x + v_y) for the missing component.
Vrae wat mense vra
Is a gas ever incompressible?
As a flow, yes: when it moves slowly compared with the speed of sound its density hardly changes, so the incompressible equations describe it well even though the gas itself is easy to compress in a piston.
Why is it called the continuity equation?
Because it says the fluid is continuous in the sense of not appearing or vanishing: every bit of mass that leaves a region is accounted for by flux through its boundary.
What do I need before starting fluid dynamics?
Multivariable calculus (divergence, curl, the divergence and Stokes theorems), linear algebra (symmetric matrices and eigenvalues) and partial differential equations (the heat and Laplace equations). The last lessons also use Sobolev spaces, which are introduced where they are needed.
What are the Navier-Stokes equations in one sentence?
Newton's second law for each particle of a viscous incompressible fluid: acceleration equals the pressure force plus viscous diffusion of momentum, with the constraint that the velocity field is divergence-free.
Why is two-dimensional flow easier than three-dimensional flow?
In 2D the vorticity is a scalar that is only carried and diffused, so its maximum never grows; in 3D vortex lines can be stretched, which amplifies vorticity, and no known bound rules out unlimited growth.
Is this course physics or mathematics?
Both, in order. The first half derives the equations from physical principles and solves classical flows; the second half treats the equations as mathematical objects and studies which of their properties can be proved.
Meer in Fluid Dynamics
The continuum hypothesis and fieldsEulerian and Lagrangian descriptions, the material derivativeKinematics: streamlines, pathlines and streaklinesThe stream function and two-dimensional incompressible flowVorticity, circulation and Kelvin's circulation theoremThe stress tensor and Cauchy's momentum equationHydrostatics and pressureThe Euler equations and Bernoulli's theoremPotential flow and the Laplace equationViscosity, Newtonian fluids and the Navier-Stokes equationsExact solutions: Couette, Poiseuille and Stokes' first problemDimensional analysis, the Reynolds number and the scaling symmetryStokes flow at low Reynolds numberBoundary layers