Physlib.FluidDynamics.FluidFlow.Continuity
Continuity equation for fluid flows
i. Overview
This module defines the classical conservative mass-balance equation for a fluid flow and the corresponding continuity residual. These definitions are independent of a particular momentum equation, so they can be reused by Navier-Stokes, Euler, and other fluid models.
ii. Key results
- `FluidFlow.ClassicalContinuityEquation` : Classical conservation of mass in conservative form. - `FluidFlow.continuityResidual` : The scalar residual `partial_t rho + div (rho u)`. - `FluidFlow.SmoothContinuityEquation` : Continuity for globally differentiable fields. - `FluidFlow.classicalContinuityEquation_of_smoothContinuityEquation` : A smooth continuity equation implies the classical continuity equation.
iii. Table of contents
- A. Continuity equations
iv. References
A. Continuity equations
4 declarations
Classical continuity equation
For a fluid flow in -dimensional space with density and velocity field , the classical continuity equation asserts that for all times and positions , if is differentiable with respect to time at and the mass flux is spatially differentiable at , then the following conservation law holds: where denotes the time derivative and denotes the spatial divergence operator.
Continuity residual
For a fluid flow in dimensions with mass density and velocity field , the continuity residual at time and position is defined as: where is the partial derivative with respect to time, and is the spatial divergence operator. This residual represents the local rate of change of mass plus the divergence of mass flux; in a physical flow, this quantity vanishes to satisfy the conservation of mass.
Smooth continuity equation
For a fluid flow in dimensions with mass density and velocity field , the smooth continuity equation is the proposition that: 1. For every position , the density function is differentiable. 2. For every time , the mass flux function is differentiable. 3. For all times and positions , the continuity residual vanishes: where denotes the partial derivative with respect to time and denotes the spatial divergence operator.
Smooth Continuity Equation implies Classical Continuity Equation
For a fluid flow in -dimensional space with density and velocity field , if the flow satisfies the smooth continuity equation—meaning that is differentiable with respect to time, the mass flux is spatially differentiable, and the equation holds for all times and positions —then it also satisfies the classical continuity equation.
