Skip to content
Get started

6. Conservation laws

Does the slab lose energy or merely pass it along?

Section titled “Does the slab lose energy or merely pass it along?”

A steady slab conducts heat from a hot reservoir to a cold one without changing its own stored energy. That does not mean zero heat flux. It means the total outward power is zero: power entering one face leaves the other.

text
hot side slab of area A, thickness L cold side
jx → ┌─────────────────────────┐ jx →
│ stored energy │
└─────────────────────────┘
n = −ex n = +ex

Conceptual control volume. Heat travels to the right at both faces, while the outward normals point in opposite directions. Side faces are insulated.

If jx=20 W/m2j_x=20\,\mathrm{W/m^2} and A=0.1 m2A=0.1\,\mathrm{m^2}, the left face’s outward power is −2 W-2\,\mathrm W and the right face’s is +2 W+2\,\mathrm W. Their sum is zero. If the right-face flux increases to 30 W/m230\,\mathrm{W/m^2} while the left remains unchanged, stored energy must decrease at 1 W1\,\mathrm W in the absence of internal generation. This is our sign check before calculus.

A conservation law is an accounting identity. For an extensive quantity QQ inside a fixed region Ω\Omega,

ddt∫Ωq dV+∫∂Ωj ⁣⋅n dA=∫Ωs dV.\frac{\mathrm{d}}{\mathrm{d}t}\int_\Omega q\,\mathrm{d}V + \int_{\partial\Omega}\boldsymbol{j}\!\cdot\boldsymbol{n}\,\mathrm{d}A = \int_\Omega s\,\mathrm{d}V.

The three terms are storage, outward flux, and production. This sign convention makes positive j ⁣⋅n\boldsymbol{j}\!\cdot\boldsymbol{n} a loss from the region. Changing the orientation changes the flux sign, not the physics.

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.

For a sufficiently smooth flux, the divergence theorem gives

∫∂Ωj ⁣⋅n dA=∫Ω∇ ⁣⋅j dV.\int_{\partial\Omega}\boldsymbol{j}\!\cdot\boldsymbol{n}\,\mathrm{d}A = \int_\Omega \nabla\!\cdot\boldsymbol{j}\,\mathrm{d}V.

If the balance holds for every suitable subregion, its local form is

∂tq+∇ ⁣⋅j−s=0.\partial_t q + \nabla\!\cdot\boldsymbol{j} - s = 0.

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.

Let uvu_v be internal energy per volume, jxj_x heat flux, and svs_v internal heating per volume. Integrating a short slab from xx to x+Δxx+\Delta x gives

ddt∫xx+ΔxuvA dx+A[jx(x+Δx)−jx(x)]=∫xx+ΔxsvA dx.\frac{\mathrm d}{\mathrm dt}\int_x^{x+\Delta x} u_v A\,\mathrm dx +A\bigl[j_x(x+\Delta x)-j_x(x)\bigr] =\int_x^{x+\Delta x}s_v A\,\mathrm dx.

Divide by AΔxA\Delta x and take the smooth limit. With stationary material and constant volumetric heat capacity cv=ρcc_v=\rho c, where cc is the appropriate specific heat under this solid approximation, storage becomes ∂tuv=cv∂tT\partial_tu_v=c_v\partial_tT. Thus

cv∂tT+∂xjx=sv.c_v\partial_tT+\partial_xj_x=s_v.

The units are watts per cubic metre in all three terms. This equation does not yet tell us jxj_x. If we additionally choose Fourier conduction jx=−κ∂xTj_x=-\kappa\partial_xT, it becomes

cv∂tT−∂x(κ∂xT)=sv.c_v\partial_tT-\partial_x(\kappa\partial_xT)=s_v.

For constant κ\kappa, steady state, and no source, it reduces to T′′=0T''=0. Two integrations give T=a+bxT=a+bx; the two prescribed end temperatures then recover the linear profile from the fields chapter. The straight line comes from the whole combination of balance, material law, and boundary data.

For constant positive svs_v, steady balance instead gives ∂xjx=sv\partial_xj_x=s_v: more power exits than enters because energy is added inside. With equal fixed temperatures at both ends, heat flows outward on both faces. The heat-transfer path explores these profiles.

If the bead’s temperature is uniform, integrate its volumetric storage over the whole volume to obtain CT˙C\dot T. Replacing the total outward surface power with G(T−T∞)G(T-T_\infty) recovers the first chapter’s ODE. The lumped equation and spatial balance therefore share the same energy accounting; their difference is the assumed spatial detail.

A moving fluid needs care: a fixed control volume can receive energy or mass by advection as well as conduction. A balance written only for conductive flux must not be reused as the complete transport law for moving material.

For constant-density incompressible flow, the corresponding mass statement is ∇⋅u=0\nabla\cdot\boldsymbol u=0. It says there is no net volumetric outflow from a small fixed volume; it does not determine velocity by itself. Momentum balance adds the force accounting. In the fluid component, find incompressibility and momentum:

steady balance component
public component SteadyNewtonianBalance2d(
support body: volume(ambient_dimension = 2),
variable velocity: vector<m / s, 2> on body,
variable pressure: kg / (m * s ^ 2) on body,
variable force_potential: kg / (m * s ^ 2) on body,
parameter dynamic_viscosity: kg / (m * s)
) {
relation momentum on body {
-div(
2 * dynamic_viscosity * symmetric_part(grad(velocity))
- isotropic_lift(pressure)
) - grad(force_potential) = 0;
}
relation incompressibility on body {
div(velocity) = 0;
}
}

The divergence in momentum acts on stress. Its viscous term supplies a material relation, while pressure enforces the incompressibility constraint. A force potential supplies the body-force density through its gradient. The next chapter separates those material assumptions from conservation itself.

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.

  1. Set s=0s=0 and storage to zero. What must the total outward flux be?
  2. Derive the local balance from the integral statement using the divergence theorem.
  3. Integrate div(velocity) = 0 over a region and interpret the boundary integral.
  4. In the momentum excerpt, identify the conserved balance and the constitutive ingredients separately.
  5. Draw a one-dimensional control volume and label the outward normal at both ends. Use it to check the flux signs.

In exercise 1, zero total outward flux permits a nonzero flux through individual faces. For exercise 5, write the boundary sum as A[jx(L)−jx(0)]A[j_x(L)-j_x(0)] before assigning numerical values. The minus sign at the left face comes from its outward normal, not from reversing the physical heat-flow direction.

Generation check. A slab with volume ALAL produces heat uniformly at sv W/m3s_v\,\mathrm{W/m^3}. Show that steady outward power must be svALs_vAL. If symmetry sends equal power through both ends, find each end’s outward flux. This integrated check can expose a sign or source error even when a temperature plot looks smooth.

  • Gilbert Strang and Edwin “Jed” Herman, Calculus, volume 3 (OpenStax, 2016), section 6.8, The divergence theorem, for converting an outward surface integral to a volume integral.

Continue with heat transfer for energy balances or fluid mechanics for mass and momentum balances.

Previous: Fields and spatial domains · Back to the series map · Next: Constitutive laws