6. Conservation laws
Account for what can change
Section titled “Account for what can change”A conservation law is an accounting identity. For an extensive quantity inside a fixed region ,
The three terms are storage, outward flux, and production. This sign convention makes positive a loss from the region. Changing the orientation changes the flux sign, not the physics.
Learning outcomes
Section titled “Learning outcomes”After this chapter, you should be able to:
- identify storage, flux, and source terms in a balance;
- use the divergence theorem to relate integral and local forms;
- distinguish conservation from a constitutive law that supplies a flux; and
- catch a sign error by checking a simple control-volume limit.
From a control volume to a local relation
Section titled “From a control volume to a local relation”For a sufficiently smooth flux, the divergence theorem gives
If the balance holds for every suitable subregion, its local form is
The integral form states the accounting principle directly. The local form is often convenient for authoring field relations. Moving between them requires regularity and a clear orientation; it is not a change of numerical method.
Two steady fluid balances
Section titled “Two steady fluid balances”For constant-density incompressible flow, mass conservation reduces to
relation incompressibility on body { div(velocity) = 0;}The zero divergence says that a small control volume has no net volumetric outflow. It does not determine the velocity by itself.
The same standard package writes a steady momentum balance as
relation momentum on body { -div( 2 * dynamic_viscosity * symmetric_part(grad(velocity)) - isotropic_lift(pressure) ) - grad(force_potential) = 0;}Here the divergence acts on the stress-like flux. Viscosity and pressure specify how that flux depends on the fields; those are constitutive ingredients inside the conservation statement.
Read the standard fluid components.
Deliberate failure: reverse only one flux sign
Section titled “Deliberate failure: reverse only one flux sign”Imagine a source-free, steady one-dimensional region with more flux leaving the right face than entering the left. Its contents cannot remain steady. A residual that declares this imbalance zero after reversing only the right-face sign has lost the chosen outward-normal convention.
Test the signs on this two-face control volume before manipulating the full field equation. A compiler can verify compatible types and dimensions, but it cannot infer which orientation you intended.
Exercises
Section titled “Exercises”- Set and storage to zero. What must the total outward flux be?
- Derive the local balance from the integral statement using the divergence theorem.
- Integrate
div(velocity) = 0over a region and interpret the boundary integral. - In the momentum excerpt, identify the conserved balance and the constitutive ingredients separately.
- Draw a one-dimensional control volume and label the outward normal at both ends. Use it to check the flux signs.
Previous: Fields and spatial domains · Back to the series map · Next: Constitutive laws