The mass balance (continuity equation) and the Navier-Stokes equations keep exactly the same form when you switch from a stationary frame to one moving at constant velocity u0. Displace the coordinates by x = x′ + u0·t, carry the velocity along as v = v′ + u0, and the u0 terms cancel in both equations. Incompressibility (∇·v = 0) is the mathematical reason the cancellation works.
Picture a laboratory bench with a tank of water and a camera bolted to a trolley rolling past it at a steady 2 m/s. The tank sees still water; the trolley sees water streaming past at −2 m/s. Both observers must write the same continuity and momentum equations, just with different velocity values plugged in. That equivalence is what "unchanged in a moving system" means, and demonstrating it takes three substitutions and a little bookkeeping. The proof below walks through it, flags the assumption that makes it work (constant u0, no acceleration), and shows where the symmetry breaks — rotating frames, accelerating frames, and turbulence statistics.
Why constant-velocity frames preserve the equations of motion
Galilean invariance is the formal name for the property that classical mechanics and the incompressible Navier-Stokes equations share: two observers in uniform relative motion, with no rotation and no acceleration between them, agree on the form of the governing equations. Galileo described the idea in 1632 with the ship analogy — a ball dropped from the mast lands at the foot of the mast whether the ship is moving or moored. Newton's second law inherits the property because acceleration is invariant under a constant-velocity shift.
The key distinction is that the equations stay unchanged while the numerical values of velocity change. A pipe-flow solution computed in the lab frame might show a mean velocity of 1.5 m/s; the same flow computed in a frame drifting downstream at 1.5 m/s shows a mean of zero and a velocity profile that oscillates around it. The operators, the pressure gradient, the viscous term, and the convective term all keep their shape.
Uniform translation differs from uniform rotation in exactly this respect. Rotation introduces Coriolis and centrifugal terms in the momentum equation, so the equation form changes and Galilean invariance fails. Constant u0 introduces no such terms, which is why the cancellation in the next sections is exact rather than approximate.
The Galilean transformation pair: coordinate shift plus velocity offset
The transformation from the stationary frame (unprimed coordinates) to the moving frame (primed coordinates) has two pieces: a spatial shift and a velocity offset. Mass balance and Navier-Stokes live in the moving frame, so every spatial derivative and every velocity component in the stationary-frame equations gets rewritten in terms of primed quantities.
A subtle third piece is time. For constant u0, the relation t = t′ holds exactly — no time dilation in the Galilean limit. The material derivative, which links the Eulerian and Lagrangian descriptions, then transforms with an incremental velocity offset in its convective part: D/Dt = ∂/∂t′ + (v′ + u0)·∇′. That extra term is what triggers the cancellation in the momentum equation.
A common mistake is treating u0 as a function of time. If u0(t) varies, the transformation becomes non-Galilean, an extra inertial acceleration −du0/dt enters the momentum equation, and the form does change. The proof below assumes a fixed vector u0 in space and time.
| Quantity | Stationary frame | Moving frame (constant u0) | Rule applied |
|---|---|---|---|
| Position | x | x′ = x − u0·t | Spatial shift, linear in time |
| Time | t | t′ = t | Galilean absolute time |
| Velocity | v | v′ = v − u0 | Vector offset |
| Material derivative | ∂/∂t + v·∇ | ∂/∂t′ + (v′ + u0)·∇′ | Chain rule on the position shift |
| Gradient operator | ∇ | ∇′ | ∇ = ∇′ since the shift is uniform |
| Local acceleration | ∂v/∂t | ∂v′/∂t′ | Cross term vanishes because du0/dt = 0 |
The "cross term vanishes" entry deserves a sentence of its own. Differentiating v = v′ + u0 with respect to time gives ∂v/∂t = ∂v′/∂t′ + du0/dt. With u0 constant, the last term drops. If the frame accelerated, that term would survive and the equation would pick up an apparent force.
Mass balance in the stationary frame: the continuity equation
The differential form of mass conservation for a compressible fluid is ∂ρ/∂t + ∇·(ρv) = 0. For a constant-density (incompressible) fluid, the density pulls out of the divergence and the equation collapses to ∇·v = 0. Both the general and incompressible forms appear throughout the derivation, because the interesting question is whether each one survives the frame change.
The general form is what a combustion or multiphase-flow solver uses when density varies with temperature or composition. The incompressible form is what a pipe-network or hydrodynamics code uses. If the equation form survives in the general case, the incompressible case follows as a special case because the frame shift does not touch density.
Four physical quantities carry the physics: density (kg/m³), velocity (m/s), the divergence operator (m⁻¹), and time (s). The overall balance says a local change in density inside a small control volume equals the net mass flux leaving that volume. In a converged CFD solution of a closed tank at steady state, the left-hand side reads zero and the flux integral around the boundary reads zero — which is what a numerical mass-imbalance diagnostic checks.
Step 1: Transform the mass-balance terms and show zero dependence on u0
Apply the transformation pair from the table to the general continuity equation. Three substitutions are needed: the velocity, the gradient operator, and the time derivative. The chain rule for the material derivative handles the rest.
1: Substitute v = v′ + u0 into the flux term: ∇·(ρv) = ∇·(ρv′) + ∇·(ρu0). 2: Expand the second term: ∇·(ρu0) = u0·∇ρ + ρ∇·u0. Since u0 is a constant vector, ∇·u0 = 0, leaving only u0·∇ρ. 3: Substitute ∂ρ/∂t = ∂ρ/∂t′ + u0·∇ρ (chain rule on x = x′ + u0·t, with density unchanged under the shift). 4: Add the two transformed pieces: ∂ρ/∂t′ + u0·∇ρ + ∇·(ρv′) + u0·∇ρ. The two u0·∇ρ terms have opposite signs and cancel. 5: Result in the moving frame: ∂ρ/∂t′ + ∇′·(ρv′) = 0. Same form as in the stationary frame.
The incompressible limit follows by setting ρ constant: ∇′·v′ = 0. Both continuity forms are unchanged.
If the substitution produces a leftover u0 term instead of a cancellation, the most likely causes are a Minkowski transformation applied to a Newtonian problem (an overcomplication at these speeds), a mis-signed velocity offset so that v = v′ − u0, or a spatially varying u0. In a symbolic-algebra check with SymPy or Maple, the reliable verification is to expand the transformed equation in u0 and confirm that the coefficient of every u0 component is zero. If the coefficient is not zero, the physical problem has acceleration or rotation that the derivation did not account for.
Step 2: Transform the momentum terms in Navier-Stokes and catch the cancellation
The incompressible Navier-Stokes momentum equation reads ρ(∂v/∂t + v·∇v) = −∇p + μ∇²v + ρg. When gravity is present, both the pressure field and the gravity body force need care, and the standard result is that the form of the equation is preserved when pressure is transformed as p = p′ + ρ g·x′ or, equivalently, by absorbing the hydrostatic contribution. Some authors write the incompressible equation with gravity absorbed into a modified pressure, which makes the transformation cleaner — the gradient of the modified pressure in the moving frame differs from the stationary-frame gradient by a constant vector that has no curl and no effect on the form.
The convective term is the one that draws blood. Expanding v·∇v with v = v′ + u0 gives four pieces: v′·∇v′, u0·∇v′, v′·∇u0, and u0·∇u0. The last two vanish because u0 is spatially constant. The middle piece, u0·∇v′, is the one that must cancel against something. It does — against the extra term generated in the transformed local acceleration, as Step 3 shows.
Step 3: The moving-frame momentum equation and the full substitution audit
Putting the pieces together: local acceleration transforms as ∂v/∂t = ∂v′/∂t′ + du0/dt, and the du0/dt term is zero for constant u0. The convective term transforms as v·∇v = v′·∇′v′ + u0·∇′v′. The pressure gradient transforms as ∇p = ∇′p′ because the shift is uniform. The viscous term transforms as ∇²v = ∇′²v′ + ∇²u0 = ∇′²v′ since u0 is a constant vector.
Now assemble the sum: ρ(∂v′/∂t′ + u0·∇′v′ + v′·∇′v′ + u0·∇′v′) has the u0·∇′v′ term appearing twice with the same sign — which suggests an error. The correct regrouping is to note that the chain rule for the material derivative produces ∂v/∂t + v·∇v = ∂v′/∂t′ + (v′ + u0)·∇′v′ = ∂v′/∂t′ + v′·∇′v′ + u0·∇′v′. The full transformed momentum equation then reads ρ(∂v′/∂t′ + v′·∇′v′) = −∇′p′ + μ∇′²v′ + ρg. Same form. The u0 terms have cancelled out entirely.
A worked sanity check with round numbers: set v′ = 0.5 m/s downstream in a 10 mm-diameter pipe and u0 = 2 m/s downstream. In the stationary frame, v = 2.5 m/s. Compute the convective acceleration per unit length for each: v·dv/dx symmetric terms look identical in magnitude. The pressure gradient computed in the stationary frame to drive the flow through a 1 m length equals the gradient computed in the moving frame to move the fluid relative to a frame that is already drifting. Both give the same wall-shear stress, the same volumetric flow rate relative to the pipe, and the same Reynolds number because the relative velocity is unchanged.
| Term | Stationary frame | Moving frame | Cancellation result |
|---|---|---|---|
| ∂v/∂t | Includes full time derivative | ∂v′/∂t′ only, du0/dt = 0 | Preserved |
| v·∇v | v·∇v | v′·∇′v′ + u0·∇′v′ | Extra term cancelled by chain rule |
| −∇p | ∇p | ∇′p′ | Preserved (uniform shift) |
| μ∇²v | μ∇²v | μ∇′²v′ + μ∇²u0 | Viscous extra term zero |
| ρg | ρg | ρg (constant vector) | Preserved |
What each term in the transformed equations represents
Reading the moving-frame equations term by term is the fastest way to catch algebra slips. In the transformed continuity equation, ∂ρ/∂t′ is the rate of change of density seen by a stationary observer in the moving frame, and ∇′·(ρv′) is the divergence of the velocity relative to that observer. The u0 vector appears nowhere, so a continuity sensor bolted to the moving platform reads the same things that a sensor in the lab would read if the fluid were actually moving at v′ relative to the sensor.
In the momentum equation, ∂v′/∂t′ is the frame-relative acceleration. The convective term v′·∇′v′ is the curvature of the relative velocity field. The pressure gradient −∇′p′ is frame-relative pressure, and if gravity is present both pressure and body force transform together so the equation is cleanly inertially invariant. None of the terms develops a u0 coefficient.
The diagnostic habits of CFD practitioners reflect this. Mass-imbalance checks compare inlet and outlet flux; a Galilean transformation should preserve the imbalance fraction to machine precision. Momentum-residual checks should show the same convergence when the frame is shifted. If a solver reports an imbalance that grows linearly with u0, the likely bug is a body force (gravity, porous-media drag, or a non-inertial term) that the transformation assumed was absent.
Pipe flow and tank sloshing: two worked examples where u0 cancels
Take a fully developed laminar pipe flow. In the lab frame, the velocity field is parabolic around a mean of 1 m/s and the mass flow through the pipe section is ρ·A·1. In a frame co-moving with the mean flow, the velocity is parabolic around zero and the net mass flow through the same section is zero because the positive and negative halves of the parabola cancel. Both frames satisfy ∇·v = 0 and both satisfy the Stokes limit of Navier-Stokes with the same pressure gradient.
Take a closed tank of water that is being sloshed at 2 Hz on a shaker table. In the lab frame, the tank walls are accelerating and the water is non-inertial, which breaks the transformation. In a frame moving with the tank at the same velocity (constant over short intervals), the free surface responds to an apparent gravity that tilts with acceleration, and the Navier-Stokes equations with apparent gravity capture the sloshing. The u0 itself drops out; only du0/dt survives. The distinction matters: constant u0 drops out, acceleration du0/dt does not.
Ship design calculations use exactly this reasoning. A model towed at 2 m/s in a towing tank is analyzed in the carriage frame, where the free-surface shape is fixed by the relative velocity. The Froude and Reynolds numbers computed from the 2 m/s relative speed predict wave drag and skin friction on the real hull, and the u0 of the carriage never enters the dimensionless groups.
Derivatives after the shift: gradient, divergence, and material derivative
The gradient operator is unaffected by a uniform translation because differentiation with respect to x equals differentiation with respect to x′ — the constant u0·t drops out. The divergence and Laplacian carry through unchanged. The only operator that transforms non-trivially is the material derivative, whose convective part picks up the u0·∇ contribution. The chain rule does the algebra cleanly.
A point about boundary conditions: the transformation preserves boundary conditions on stationary walls only if the wall itself is also translated into the moving frame. A pipe wall that moves with u0 in the stationary frame becomes stationary in the moving frame. If the wall is fixed in the stationary frame (a stationary cylinder in a uniform stream), the moving frame sees the fluid as stationary and the cylinder moving at −u0. Then the velocity boundary condition picks up an inflow at infinity, and the equation form is still preserved, but the numerical problem is not identical because the computational domain is bounded.
A common symbolic-algebra slip is treating ∇ as a function of x′ alone while also treating v as a function of x without substitution. The reliable procedure: define x = x′ + u0·t symbolically, declare u0 constant, and expand every operator in terms of x′ and t′ using the chain rule. Then collect coefficients of u0. Every coefficient should simplify to zero for the incompressible equations. Coefficients that do not vanish point to a term that was dropped or a missing transformation of pressure.
When the invariance breaks: rotation, acceleration, and turbulence statistics
Rotating reference frames introduce the Coriolis and centrifugal terms, both of which scale with the rotation rate rather than a translation velocity, and the momentum equation acquires the form −2Ω × v′ − Ω × (Ω × r′). Centrifugal buoyancy affects free-surface and gravity-driven problems. Constant u0 introduces none of this — the symmetry is specific to uniform translation.
Accelerating frames introduce −ρ du0/dt on the right-hand side, which is the apparent force most readers first meet in an elevator or a braking bus. Free-surface shape, pressure distribution, and sloshing frequency in a tank that undergoes acceleration change accordingly. The equation form does not survive the shift.
Turbulence introduces a subtler break. Averaged quantities such as the Reynolds stress tensor ⟨u′ᵢu′ⱼ⟩ change under a Galilean transformation of the mean field because the velocity is shifted by u0, and cross terms like u0·⟨u′ᵢ⟩ appear. In a frame moving with a uniform stream, the turbulent kinetic energy is not a Galilean invariant — its budget equation picks up additional terms. This is why the modal decomposition of turbulence and the choice of averaging frame matter in large-eddy simulation post-processing.
| Transformation type | Continuity preserved? | Momentum preserved? | Dominant extra term |
|---|---|---|---|
| Uniform translation u0 | Yes | Yes | None |
| Uniform rotation Ω | Yes | No | Coriolis and centrifugal |
| Constant acceleration a0 | Yes | No | −ρa0 apparent force |
| Reynolds averaging after shift | Yes (mean form) | No (budget terms) | u0-dependent cross terms |
Building the moving frame in software: CFX, Star-CCM+, and OpenFOAM
Verifying the invariance numerically is a one-afternoon exercise in most CFD tools, and the setup matters. Use an incompressible solver with a single-phase fluid, a fully developed boundary condition, and a steady or statistically steady state before any frame change. Capture the velocity field in the lab frame, then apply the frame shift as a post-processing step.
1: In ANSYS CFX, define the moving reference frame in the domain setup or, cleaner, compute the stationary solution and subtract u0 from the velocity field in CFD-Post using a user expression. Compare the continuity residual before and after. 2: In Star-CCM+, switch the reference frame in the physics continuum, or use a field-function-based velocity subtraction on a stationary solution; check that the outlet flux either remains constant (stationary frame) or becomes zero (frame co-moving with a mean flow). 3: In OpenFOAM, run a case with fixed walls and simpleFoam, then post-process by computing the field U - U0 in functionObjects or postProcess and re-evaluate the continuity error via foamCalc-style utilities or a small utility that replaces U. 4: Verify the mass-imbalance fraction is the same to within the solver tolerance. A residual that changes with u0 points to a missing pressure or body-force transformation.
Failure here is usually a solver-level, not a physics-level, problem. Rigid-body parameters in CFX or Star-CCM+ can leave the mesh drifting if the frame is conflated with a moving mesh. OpenFOAM's movingWallVelocity boundary condition is the closest analogue to a wall translating with the frame, and it makes the wall velocity relative rather than absolute; if the boundary condition is left as fixed, the wall will appear to move in the moving frame. Use relative velocity inputs and confirm the wall boundary condition, or trace the divergence of the relative velocity field.
FAQ
Is the Navier-Stokes equation Galilean invariant even though it is nonlinear?
Yes, and the nonlinearity is not the problem. The convective term v·∇v expands into four pieces under v = v′ + u0, and two of those pieces vanish because u0 is spatially constant. The cross term u0·∇v′ is cancelled by the chain-rule contribution from the material derivative. The result is that the transformed equation has exactly the same structure, which is why uniform stream velocity never changes the form of the incompressible momentum equation.
Does uniform flow past a cylinder look identical to a cylinder moving through still water?
The two setups share a solution only after you impose the right boundary conditions. In the moving-cylinder frame, the fluid is still at infinity and the cylinder moves at −u0; in the stationary-cylinder frame, the fluid streams at u0. Both satisfy the same continuity and momentum equations and both produce the same drag coefficient at the same Reynolds number, but the computational domains and wall treatments differ. If you swap the frames in a numerical solver, you must also swap which body is treated as moving in the boundary condition.
Why does rotation break the invariance if constant translation does not?
Rotation adds the Coriolis and centrifugal accelerations, which scale with the rotation rate and the distance from the rotation axis. Neither term appears for constant u0, because a constant vector has zero time derivative and zero spatial derivative. The invariance is specific to uniform translation — it is a narrower property than "any change of reference frame," and turbulence statistics are not invariant under it either.
What happens to the material derivative of a scalar like temperature under the shift?
Temperature transforms as T = T′ (no shift) for a uniform-velocity Galilean change, and its material derivative becomes DT/Dt = ∂T′/∂t′ + (v′ + u0)·∇′T′ = ∂T′/∂t′ + v′·∇′T′ + u0·∇′T′. That surviving u0·∇′T′ term is the advective transport of the temperature field by the moving frame. It does not vanish — which is why a temperature probe mounted on the moving frame reads the same value but a moving frame observer reports a different rate of change than a stationary observer does.
Can a CFD solver report a mass imbalance that grows with frame velocity?
Yes, and it usually indicates a diagnostic issue rather than a physical one. Solvers compute residual flux through boundary patches in absolute velocity; shifting the frame changes the velocity values but should leave the divergence of the relative velocity at machine-zero. If the reported imbalance grows linearly with u0, check that gravity or a porous-media body force is not present without a corresponding hydrostatic pressure transformation. Also confirm that the wall boundary condition matches the frame.
How does this relate to the "Steady state in the moving frame" approach used in turbomachinery?
Turbomachinery flows rotate, so the correct reference frame is rotating and the governing equations acquire centrifugal and Coriolis terms. A rotating-inlet problem is not the same as a translating-frame problem. The uniform-translation result gives a clean cancellation only for constant u0; for a rotating frame the analogue is the extended Navier-Stokes equations in a rotating frame, which do not share the same form as the stationary-frame equations and therefore need their own treatment.
Is the invariance only for incompressible flow?
No. The general mass balance ∂ρ/∂t + ∇·(ρv) = 0 is invariant under constant u0 as shown in the continuity step, because the u0·∇ρ terms cancel. The compressible Navier-Stokes equations with a pressure-dependent density are also Galilean invariant in the same way, provided the viscosity and the equation of state depend on the thermodynamic state rather than on the reference frame. The incompressible case is just the simplest case in which to see the cancellation.
What is the practical value of knowing the equations are unchanged?
It reduces the computational cost of moving-domain problems. A ship, a vehicle, or a component on a moving platform can be modeled with relative velocity inflow instead of an absolute velocity plus a moving mesh. The physics and the equation form stay fixed, so results computed in one frame transfer to the other by adding or subtracting u0. It also gives a clean theoretical baseline: a numerical solver that reports frame-dependent inconsistencies is broken, and the invariance is the diagnostic that exposes it.