{
  "id": "continuity-equation",
  "title": "Continuity Equation",
  "lang": "en",
  "source_lang": "en",
  "summary": "A continuity equation expresses how a locally distributed quantity changes through transport, production, and loss, providing a mathematical framework for conservation laws.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Equation of continuity",
    "Local conservation equation",
    "Conservation equation"
  ],
  "generated_at": "2026-11-03",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/continuity-equation/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/continuity-equation/",
      "json": "https://aiwiki.page/zh/continuity-equation.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A continuity equation is a mathematical statement relating the rate of change of a quantity within a region to the rate at which that quantity crosses the region’s boundary. When the quantity is conserved, an increase inside the region must be accounted for by a net inward flow. More general continuity equations include production and destruction terms. The same mathematical structure describes the transport of mass, electric charge, particle number, and probability, although the physical interpretation of the density and current differs between applications.\n\nIn its common local form, the equation is\n\n\\[\\frac{\\partial q}{\\partial t}+\\nabla\\cdot\\mathbf J=s,\\]\n\nwhere \\(q\\) is the amount per unit volume, \\(\\mathbf J\\) is its flux density, and \\(s\\) is its local production rate per unit volume. This relationship underlies fluid mechanics, electrical theory, chemical transport, and quantum theory. It connects global bookkeeping to local field equations, but it does not by itself determine how a system moves: additional equations are required to specify the flux and any sources."
    },
    {
      "heading": "Local and integral statements of conservation",
      "text": "Consider a fixed region \\(V\\), enclosed by a surface \\(\\partial V\\) with outward unit normal \\(\\mathbf n\\). If \\(q(\\mathbf x,t)\\) is a volume density, the total quantity inside the region is\n\n\\[Q_V(t)=\\int_V q\\,dV.\\]\n\nThe corresponding balance law is\n\n\\[\\frac{d}{dt}\\int_V q\\,dV = -\\oint_{\\partial V}\\mathbf J\\cdot\\mathbf n\\,dA +\\int_V s\\,dV.\\]\n\nThe minus sign reflects the outward-normal convention: positive outward flux reduces the amount remaining inside. A positive source adds to the quantity, while a negative source removes it. For an exactly conserved quantity, \\(s=0\\), provided all relevant carriers and mechanisms of transport are included.\n\nThe flux density \\(\\mathbf J\\) measures the amount passing through unit area per unit time, with direction included. Its units are therefore those of \\(q\\) multiplied by velocity. For mass, \\(q\\) has units of kilograms per cubic metre and \\(\\mathbf J\\) has units of kilograms per square metre per second. For charge, the corresponding units are coulombs per cubic metre and amperes per square metre. The dimensions of all three terms in the local equation are amount per unit volume per unit time.\n\nApplying the divergence theorem to the surface integral gives\n\n\\[\\int_V\\left( \\frac{\\partial q}{\\partial t} +\\nabla\\cdot\\mathbf J-s \\right)dV=0.\\]\n\nIf the fields are sufficiently regular and this identity holds for every suitable fixed region, the integrand must vanish, yielding the differential continuity equation. The divergence \\(\\nabla\\cdot\\mathbf J\\) measures the local imbalance between outgoing and incoming flux; it does not simply measure whether transport is occurring. A spatially uniform, nonzero flux has zero divergence.\n\nLocal conservation is stronger than the statement that a single total remains constant. A fixed total could, mathematically, be maintained by removing material at one point and creating it elsewhere without any connecting transport. A local continuity equation instead specifies that changes are accounted for by nearby fluxes and explicitly identified sources.\n\nConversely, local conservation implies constant total quantity only under appropriate boundary conditions. For a closed region with \\(\\mathbf J\\cdot\\mathbf n=0\\), a source-free continuity equation gives \\(dQ_V/dt=0\\). For an open region, the total may change entirely through boundary exchange. On an infinite domain, decay conditions at large distance are needed before boundary fluxes can be discarded. These qualifications are important when interpreting experimental control volumes, atmospheric budgets, or probability normalization."
    },
    {
      "heading": "Moving volumes and the material description of mass",
      "text": "A fixed control volume describes changes at fixed positions. A material volume instead follows the same collection of fluid particles as they move. The distinction separates an Eulerian description, based on fields at spatial locations, from a Lagrangian description, based on moving material elements. Both descriptions express the same conservation principle.\n\nFor a region \\(V(t)\\) whose boundary moves with velocity \\(\\mathbf w\\), the Reynolds transport theorem gives\n\n\\[\\frac{d}{dt}\\int_{V(t)}q\\,dV = \\int_{V(t)}\\frac{\\partial q}{\\partial t}\\,dV + \\oint_{\\partial V(t)}q\\mathbf w\\cdot\\mathbf n\\,dA.\\]\n\nCombining this identity with the local balance law yields\n\n\\[\\frac{d}{dt}\\int_{V(t)}q\\,dV = -\\oint_{\\partial V(t)} (\\mathbf J-q\\mathbf w)\\cdot\\mathbf n\\,dA +\\int_{V(t)}s\\,dV.\\]\n\nThus the relevant flux through a moving boundary is the flux relative to that boundary. Omitting this correction can produce an apparent failure of conservation in a moving mesh, a growing droplet, or a deforming biological compartment.\n\nFor an ordinary single-component fluid, mass flux is\n\n\\[\\mathbf J_m=\\rho\\mathbf u,\\]\n\nwhere \\(\\rho\\) is mass density and \\(\\mathbf u\\) is fluid velocity. The local statement of conservation of mass is therefore\n\n\\[\\frac{\\partial\\rho}{\\partial t} +\\nabla\\cdot(\\rho\\mathbf u)=0.\\]\n\nWhen a material boundary moves with \\(\\mathbf w=\\mathbf u\\), no mass crosses it, and the mass of the enclosed fluid remains constant. The volume of that same material collection need not remain constant.\n\nExpanding the divergence produces an equivalent form,\n\n\\[\\frac{D\\rho}{Dt}+\\rho\\nabla\\cdot\\mathbf u=0, \\qquad \\frac{D}{Dt} = \\frac{\\partial}{\\partial t}+\\mathbf u\\cdot\\nabla.\\]\n\nThe operator \\(D/Dt\\), the material derivative, follows a moving fluid element. Positive velocity divergence means local expansion, so the element’s density decreases; negative divergence means compression. This expresses the same physical balance without reference to a fixed container.\n\nThe geometric content can also be written using a flow map \\(\\mathbf x=\\boldsymbol\\chi(\\mathbf a,t)\\), where \\(\\mathbf a\\) labels initial particle positions. If\n\n\\[\\mathcal J=\\det\\left(\\frac{\\partial\\boldsymbol\\chi}{\\partial\\mathbf a}\\right),\\]\n\nthen conservation requires\n\n\\[\\rho(\\boldsymbol\\chi(\\mathbf a,t),t)\\mathcal J(\\mathbf a,t)=\\rho_0(\\mathbf a).\\]\n\nDensity changes are exactly compensated by changes in material volume. These equivalent formulations connect laboratory flow measurements, particle-tracking methods, and deforming-continuum calculations."
    },
    {
      "heading": "Compressible and incompressible fluid flow",
      "text": "In fluid mechanics, the continuity equation forms part of a coupled system with momentum and energy balances. Leonhard Euler’s eighteenth-century formulation of fluid motion, particularly his work published in 1757, helped establish the modern use of local differential equations for these balances. In viscous flow, mass conservation is combined with the Navier–Stokes equations, constitutive relations for stress and heat transport, and an equation of state.\n\nFor an incompressible material,\n\n\\[\\frac{D\\rho}{Dt}=0,\\]\n\nso mass continuity gives\n\n\\[\\nabla\\cdot\\mathbf u=0.\\]\n\nA constant-density fluid satisfies this condition, but the converse requires care: a divergence-free velocity field can advect a spatially varying density without changing each particle’s density. Similarly, steady flow means that fields do not change at fixed positions; it does not mean that density is uniform. Steady compressible flow satisfies \\(\\nabla\\cdot(\\rho\\mathbf u)=0\\), not generally \\(\\nabla\\cdot\\mathbf u=0\\).\n\nFor a stream tube with impermeable sides and steady flow,\n\n\\[\\dot m=\\int_A\\rho\\mathbf u\\cdot\\mathbf n\\,dA\\]\n\nis the same at every cross-section. If density and axial speed are approximately uniform over each section,\n\n\\[\\rho_1A_1u_1=\\rho_2A_2u_2.\\]\n\nOnly when density is also unchanged does this reduce to\n\n\\[A_1u_1=A_2u_2.\\]\n\nFor example, an idealized constant-density flow through a pipe whose diameter decreases from \\(10\\) centimetres to \\(5\\) centimetres has one-quarter the cross-sectional area in the narrower section, so its mean speed increases by a factor of four.\n\nContinuity alone does not determine the associated pressure change. That requires a momentum or energy relationship, such as Bernoulli’s principle under its restricted assumptions. Nor does narrowing necessarily accelerate every compressible flow: changes in density, heat transfer, friction, and the relation between speed and sound speed all matter. In gas nozzles, the same mass balance operates in both subsonic and supersonic regimes, but the momentum and thermodynamic equations produce different responses to changing area.\n\nSmall perturbations of continuity about a uniform stationary fluid give\n\n\\[\\frac{\\partial\\rho'}{\\partial t} +\\rho_0\\nabla\\cdot\\mathbf u'=0.\\]\n\nTogether with the linearized momentum equation and a pressure–density relation, this leads to the acoustic wave equation. Continuity therefore explains one part of sound propagation: converging motion raises density, while diverging motion lowers it.\n\nIn incompressible numerical models, pressure acts as a constraint field that helps keep velocity divergence-free. It is not obtained from mass conservation as an independent thermodynamic evolution equation. This distinction is central to the different mathematical and computational treatment of compressible and incompressible flows."
    },
    {
      "heading": "Species transport, reactions, and environmental balances",
      "text": "A mixture contains multiple constituents, each with its own continuity equation. If \\(Y_k\\) is the mass fraction of species \\(k\\), its mass density is \\(\\rho Y_k\\). Relative to the mixture’s mass-averaged velocity \\(\\mathbf u\\), its balance is\n\n\\[\\frac{\\partial(\\rho Y_k)}{\\partial t} +\\nabla\\cdot(\\rho Y_k\\mathbf u+\\mathbf j_k) =\\dot\\omega_k,\\]\n\nwhere \\(\\mathbf j_k\\) is diffusive mass flux and \\(\\dot\\omega_k\\) is the rate of production by chemical reactions. This separates transport with the bulk fluid from transport relative to it.\n\nThe distinction matters because a species can move even when the mixture as a whole is stationary. In a simple dilute, isotropic setting, diffusion may be represented by Fick’s law,\n\n\\[\\mathbf j=-D\\nabla c,\\]\n\nwhere \\(c\\) is a concentration and \\(D\\) is a diffusion coefficient. With constant \\(D\\), zero bulk velocity, and no reaction, continuity becomes\n\n\\[\\frac{\\partial c}{\\partial t}=D\\nabla^2c.\\]\n\nWith advection and reaction included, the result is an advection–diffusion equation. The balance law supplies the bookkeeping; Fick’s law supplies a constitutive model for the flux.\n\nIn the ordinary nonrelativistic chemical description, summing all species mass equations recovers total mass continuity because\n\n\\[\\sum_kY_k=1,\\qquad \\sum_k\\mathbf j_k=0,\\qquad \\sum_k\\dot\\omega_k=0.\\]\n\nSpecies are created and destroyed, but their total mass is conserved to the accuracy of that description. Total molecular number, by contrast, need not be conserved. In the reaction \\(2\\mathrm H_2+\\mathrm O_2\\rightarrow2\\mathrm H_2\\mathrm O\\), three reactant molecules correspond to two product molecules. A number-density balance therefore has different source terms from a mass balance.\n\nEnvironmental models use the same structure at larger scales. In groundwater, a saturated dissolved-solute balance may be written\n\n\\[\\frac{\\partial(nc)}{\\partial t} +\\nabla\\cdot(c\\mathbf q_D+\\mathbf j_d)=r,\\]\n\nwhere \\(n\\) is porosity, \\(c\\) is concentration per pore-water volume, \\(\\mathbf q_D\\) is water flow per unit bulk area, and \\(\\mathbf j_d\\) represents diffusion and dispersion on the same bulk-area basis. Sorption onto solids requires an additional storage term. Confusing pore-water velocity with flow per unit bulk area introduces porosity errors into transport calculations.\n\nFor a river or reservoir, a control-volume balance relates storage changes to inflow, outflow, precipitation, evaporation, and exchanges with groundwater. A source term in the water balance can represent transfer from another compartment rather than creation of matter. Likewise, atmospheric pollutant models distinguish emissions, chemical conversion, deposition, and boundary transport. The meaning of “source” depends on what quantity and what subsystem the equation describes."
    },
    {
      "heading": "Electric charge and electromagnetic consistency",
      "text": "For electric charge, continuity takes the form\n\n\\[\\frac{\\partial\\rho_e}{\\partial t} +\\nabla\\cdot\\mathbf J_e=0,\\]\n\nwhere \\(\\rho_e\\) is net charge density and \\(\\mathbf J_e\\) is electric current density. Positive and negative charges can move in different directions, so net charge density and current cannot generally be inferred from total particle density alone. An electrically neutral conductor may carry a substantial current because oppositely charged contributions cancel in density but not in charge transport.\n\nCharge continuity is built into Maxwell’s equations. In vacuum notation, the Ampère–Maxwell law is\n\n\\[\\nabla\\times\\mathbf B = \\mu_0\\mathbf J_e +\\mu_0\\epsilon_0\\frac{\\partial\\mathbf E}{\\partial t}.\\]\n\nTaking its divergence and using the identity that the divergence of a curl vanishes gives\n\n\\[0=\\nabla\\cdot\\mathbf J_e +\\epsilon_0\\frac{\\partial}{\\partial t}(\\nabla\\cdot\\mathbf E).\\]\n\nSubstitution of Gauss’s law,\n\n\\[\\nabla\\cdot\\mathbf E=\\frac{\\rho_e}{\\epsilon_0},\\]\n\nthen yields charge continuity.\n\nThis compatibility explains the significance of James Clerk Maxwell’s displacement-current term, introduced in his electromagnetic work of the 1860s. Without it, the curl equation would require \\(\\nabla\\cdot\\mathbf J_e=0\\) even when charge was accumulating. A charging capacitor illustrates the issue: conduction current transports charge to the plates, while a changing electric field exists in the insulating gap. Displacement current is not ordinary transport of free charge across that gap, but it makes the magnetic-field equation consistent with charge accumulation.\n\nCircuit theory expresses a related balance at a node:\n\n\\[\\sum I_{\\mathrm{in}}-\\sum I_{\\mathrm{out}} =\\frac{dQ_{\\mathrm{node}}}{dt}.\\]\n\nThe usual current-sum rule assumes negligible net accumulation in the node as modeled. When charge storage matters, capacitance and distributed electromagnetic effects must be included. A zero sum of conduction currents at every arbitrarily chosen location is therefore not the most general conservation statement.\n\nAt material interfaces, charge may reside on a surface rather than throughout a volume. If \\(\\sigma\\) is surface charge density, \\(\\mathbf K\\) is tangential surface current, and \\(\\mathbf n\\) points from medium 1 into medium 2, a stationary-interface balance is\n\n\\[\\frac{\\partial\\sigma}{\\partial t} +\\nabla_s\\cdot\\mathbf K +\\mathbf n\\cdot(\\mathbf J_2-\\mathbf J_1)=0.\\]\n\nA discontinuity in normal bulk current can thus be balanced by changing surface charge or by redistribution along the interface. This is important in electrode systems, dielectric boundaries, and plasma interfaces."
    },
    {
      "heading": "Probability, quantum currents, and phase-space transport",
      "text": "A continuity equation can conserve probability rather than material substance. If \\(p(\\mathbf x,t)\\) is a probability density and \\(\\mathbf J_p\\) its probability current, then\n\n\\[\\frac{\\partial p}{\\partial t}+\\nabla\\cdot\\mathbf J_p=0.\\]\n\nNormalization remains constant when the boundary carries no net probability flux. An absorbing boundary instead permits probability to leave the modeled region; this is a change in the region’s probability, not necessarily a failure of conservation in an enlarged description.\n\nIn nonrelativistic quantum mechanics, a particle with wave function \\(\\psi\\) has position probability density\n\n\\[p=|\\psi|^2\\]\n\naccording to the Born rule. For a spinless particle of mass \\(m\\) obeying the Schrödinger equation with a real scalar potential,\n\n\\[i\\hbar\\frac{\\partial\\psi}{\\partial t} = -\\frac{\\hbar^2}{2m}\\nabla^2\\psi+V\\psi,\\]\n\nmultiplying by \\(\\psi^*\\), subtracting the complex-conjugate equation, and rearranging gives\n\n\\[\\frac{\\partial|\\psi|^2}{\\partial t} +\\nabla\\cdot\\mathbf J_p=0,\\]\n\nwith\n\n\\[\\mathbf J_p = \\frac{\\hbar}{2mi} (\\psi^*\\nabla\\psi-\\psi\\nabla\\psi^*) = \\frac{\\hbar}{m}\\operatorname{Im}(\\psi^*\\nabla\\psi).\\]\n\nHere \\(\\hbar\\) is the reduced Planck constant. The current is determined not just by the amplitude of the wave function but also by its spatial phase variation.\n\nFor a particle of charge \\(q_e\\) minimally coupled to an electromagnetic vector potential \\(\\mathbf A\\), the current becomes\n\n\\[\\mathbf J_p = \\frac{1}{m}\\operatorname{Re} \\left[\\psi^*(-i\\hbar\\nabla-q_e\\mathbf A)\\psi\\right].\\]\n\nMultiplication by \\(q_e\\) gives the associated charge current in this single-particle description. For multiple particles, probability conservation is naturally formulated in configuration space, with a divergence contribution for each particle coordinate. A current in ordinary three-dimensional space can then be obtained by integrating over the other coordinates.\n\nA time-independent probability density need not imply zero current. A complex stationary state can have a divergence-free circulating current. Conversely, a bound stationary state whose spatial wave function can be chosen real has zero current in the scalar-potential setting above. This distinction prevents “stationary” from being confused with “motionless.”\n\nClassical statistical descriptions have an analogous structure. In phase space, Liouville’s equation transports a probability density along trajectories generated by Hamiltonian mechanics. The phase-space velocity is divergence-free for canonical Hamiltonian motion. In stochastic dynamics, a Fokker–Planck equation combines drift and diffusion into a probability current. Absorbing potentials or effective loss terms can introduce sinks, but their interpretation depends on whether the model includes or excludes the degrees of freedom receiving the probability."
    },
    {
      "heading": "Relativistic currents, symmetry, and energy–momentum",
      "text": "In special relativity, density and flux are components of a single spacetime object. Taking \\(x^0=ct\\), define a four-current by\n\n\\[J^\\mu=(cq,\\mathbf J).\\]\n\nThe continuity equation becomes\n\n\\[\\partial_\\mu J^\\mu=0.\\]\n\nBecause the derivative with respect to \\(x^0\\) is \\(c^{-1}\\partial_t\\), this expression reproduces the ordinary time-plus-divergence equation. Its compact form shows that local conservation is compatible with transformations between inertial reference frames.\n\nFor particles with proper number density \\(n_0\\) and four-velocity \\(u^\\mu\\), the particle-number current is\n\n\\[N^\\mu=n_0u^\\mu.\\]\n\nIf particles are neither created nor destroyed,\n\n\\[\\partial_\\mu N^\\mu=0.\\]\n\nThe proper density is measured in the local rest frame of the matter; an observer-relative density differs because of relativistic volume contraction. Particle-number conservation must not be assumed universally: reactions can change particle counts while preserving charge and energy–momentum.\n\nIn general relativity, the corresponding equation uses a covariant derivative:\n\n\\[\\nabla_\\mu J^\\mu=0.\\]\n\nIn coordinates with metric determinant \\(g\\), this is\n\n\\[\\frac{1}{\\sqrt{-g}} \\partial_\\mu\\left(\\sqrt{-g}\\,J^\\mu\\right)=0.\\]\n\nThe determinant factor incorporates the spacetime geometry into the local volume measure. For a homogeneous conserved number density in an expanding cosmological model,\n\n\\[\\dot n+3Hn=0,\\]\n\nwhere \\(H=\\dot a/a\\) and \\(a\\) is the scale factor. Consequently, \\(na^3\\) remains constant: expansion dilutes number density without requiring local destruction of particles.\n\nEnergy and momentum are described by the stress–energy tensor rather than a single scalar-density current. In flat spacetime, their local balance is\n\n\\[\\partial_\\mu T^{\\mu\\nu}=0,\\]\n\nwhile in curved spacetime it is\n\n\\[\\nabla_\\mu T^{\\mu\\nu}=0.\\]\n\nThese equations describe local exchange among energy density, momentum density, stress, and energy flux. In a general curved spacetime, they do not automatically supply a globally conserved total energy; additional spacetime symmetries or boundary structures are needed.\n\nThe relationship between symmetry and continuity equations was formalized by Emmy Noether in 1918. Noether’s theorem associates continuous variational symmetries with conserved currents when the equations of motion hold. A global phase symmetry of a suitable complex field theory, for example, yields a charge-like current. Nevertheless, not every quantity labeled “conserved” in a simplified model corresponds to an exact fundamental symmetry. Approximate particle numbers, effective losses, and quantum anomalies require separate analysis of the underlying theory."
    },
    {
      "heading": "Discontinuities, shocks, and weak solutions",
      "text": "The differential continuity equation assumes derivatives that may not exist in ordinary form at a sharp interface. Real and idealized flows can contain density jumps, shock waves, contact surfaces, and concentrated surface quantities. The integral balance remains meaningful in many such cases and supplies the correct starting point.\n\nIn one spatial dimension, a conservation law has the form\n\n\\[\\frac{\\partial q}{\\partial t} +\\frac{\\partial f(q)}{\\partial x}=0.\\]\n\nSuppose a discontinuity moves with speed \\(s\\), separating left and right states \\(q_L\\) and \\(q_R\\). Integrating over a small interval surrounding the moving jump gives the Rankine–Hugoniot condition,\n\n\\[s(q_R-q_L)=f(q_R)-f(q_L).\\]\n\nThe condition states that the moving interface cannot accumulate an unaccounted amount of the conserved quantity.\n\nFor mass in a planar fluid flow, \\(f=\\rho u\\), so\n\n\\[s[\\rho]=[\\rho u],\\]\n\nwhere brackets denote the right value minus the left value. Equivalently,\n\n\\[\\rho_L(u_L-s)=\\rho_R(u_R-s).\\]\n\nThe mass flow measured relative to the discontinuity is equal on both sides. A compressible shock must also satisfy momentum and energy jump conditions. Mass conservation alone cannot determine all downstream quantities.\n\nA weak solution expresses the differential equation through integration against smooth test functions. Derivatives are transferred to those test functions, allowing the density or flux to be discontinuous. This is not a relaxation of conservation: properly formulated weak solutions retain the integral balance. It is a broader mathematical meaning of differentiation suited to physically important nonsmooth states.\n\nWeak solutions need not be unique. Nonlinear conservation laws therefore require admissibility criteria. In gas dynamics, the second law of thermodynamics selects physically admissible shocks through an entropy inequality. This excludes certain mathematical discontinuities that satisfy mass, momentum, and energy balances but would correspond to inadmissible entropy changes. Thin viscous and heat-conducting shock layers provide a physical basis for the discontinuous idealization.\n\nThe distinction between conservative and expanded forms becomes crucial here. For smooth fields,\n\n\\[\\frac{\\partial\\rho}{\\partial t} +\\nabla\\cdot(\\rho\\mathbf u)=0\\]\n\nand\n\n\\[\\frac{D\\rho}{Dt}+\\rho\\nabla\\cdot\\mathbf u=0\\]\n\nare equivalent by the product rule. Across discontinuities, separate products involving discontinuous fields and singular derivatives may not be defined without further interpretation. The conservative form directly supplies the jump balance and is therefore preferred for shock calculations.\n\nLikewise, when an interface carries a surface density, ordinary bulk equations must be supplemented by a surface balance. Otherwise, accumulation at the interface can be mistaken for a violation of the continuity law."
    },
    {
      "heading": "Numerical conservation, closure, and model interpretation",
      "text": "A continuity equation imposes a balance but usually does not determine a solution on its own. For prescribed velocity, an advection equation may determine how a density evolves. For fluid motion, velocity must be obtained from additional field equations. For diffusion, a relation between flux and concentration gradient is needed. These supplementary relationships are called closure relations, and they contain physical assumptions not supplied by conservation itself.\n\nThe finite volume method is built directly on the integral balance. Dividing a domain into cells gives, for cell \\(i\\),\n\n\\[\\frac{d}{dt}(\\bar q_iV_i) = -\\sum_{f\\in\\partial i}\\widehat F_fA_f +\\bar s_iV_i,\\]\n\nwhere \\(\\bar q_i\\) is the cell-average density, \\(V_i\\) is cell volume, and \\(\\widehat F_f\\) approximates the outward normal flux through face \\(f\\). If two neighboring cells use the same face flux with opposite signs, their internal exchange cancels exactly when the cell balances are summed.\n\nThis cancellation produces discrete conservation: the total changes only through external boundary fluxes and specified sources, apart from arithmetic and solver errors. A method that approximates derivatives accurately at individual points does not automatically have this global property. Conversely, a conservative method can still produce inaccurate profiles if its flux approximation is excessively diffusive or poorly resolved.\n\nNumerical stability introduces another constraint. In an explicit one-dimensional advection calculation, the Courant number is\n\n\\[C=\\frac{|u|\\Delta t}{\\Delta x}.\\]\n\nThe Courant–Friedrichs–Lewy condition requires the numerical domain of dependence to contain the physical domain of dependence. Many elementary explicit advection schemes require \\(C\\leq1\\), though the precise restriction depends on the algorithm, dimension, and characteristic speeds. Conservation, stability, accuracy, and nonnegativity are distinct properties; preserving one does not guarantee the others.\n\nBoundary conditions can dominate the resulting budget. A zero-gradient concentration boundary is not generally an impermeable boundary, because advective flux can remain nonzero. Impermeability requires the appropriate total normal flux to vanish. Similarly, periodic boundaries conserve the domain total only when paired fluxes are treated consistently. Moving-grid methods must account for grid velocity and geometric volume changes to avoid artificial sources.\n\nIn turbulence modeling, averaging the exact continuity equation introduces correlations into the mean mass flux. Compressible-flow models often use the density-weighted, or Favre, velocity\n\n\\[\\widetilde{\\mathbf u} =\\frac{\\overline{\\rho\\mathbf u}}{\\bar\\rho},\\]\n\nso that\n\n\\[\\frac{\\partial\\bar\\rho}{\\partial t} +\\nabla\\cdot(\\bar\\rho\\widetilde{\\mathbf u})=0.\\]\n\nThis preserves the conservative structure without asserting that density and velocity fluctuations are uncorrelated. Similar care is needed when comparing models with observations: unresolved boundary exchanges, incompatible averaging procedures, and omitted storage compartments can all appear as residual sources in an otherwise valid continuity balance."
    }
  ],
  "links": [
    "mass",
    "electric-charge",
    "probability",
    "divergence-theorem",
    "density",
    "conservation-of-mass",
    "momentum",
    "energy",
    "navier-stokes-equations",
    "equation-of-state",
    "pressure",
    "chemical-reaction",
    "diffusion",
    "ficks-laws-of-diffusion",
    "groundwater",
    "river",
    "electric-current",
    "maxwells-equations",
    "gauss-law",
    "james-clerk-maxwell",
    "electric-field",
    "quantum-mechanics",
    "wave-function",
    "born-rule",
    "schrodinger-equation",
    "planck-constant",
    "phase-space",
    "hamiltonian-mechanics",
    "special-relativity",
    "general-relativity",
    "noethers-theorem",
    "weak-solution",
    "second-law-of-thermodynamics",
    "finite-volume-method",
    "courant-friedrichs-lewy-condition",
    "turbulence"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}