Fundamentals / Mechanical engineering / Fluid mechanics

Velocity fields, flow rates and conservation of mass

Read local acceleration from a velocity field and use an integral mass balance to connect inlet, outlet and storage.

From first principles

Derive the continuity equation from conservation of mass

Choose a fixed region of space containing fluid of density \(\rho(\mathbf x,t)\) and velocity \(\mathbf u(\mathbf x,t)\). Mass crosses a small boundary element \(dA\) with outward normal \(\mathbf n\) at the signed rate \(\rho\mathbf u\cdot\mathbf n\,dA\). A positive flux removes mass. With no sources of mass inside, the rate of change of the enclosed mass must balance the net outflow.

\[\frac d{dt}\int_V\rho\,dV+\oint_{\partial V}\rho\mathbf u\cdot\mathbf n\,dA=0 .\]

For a stationary control volume the time derivative can be taken inside the integral. The divergence theorem changes the boundary integral to a volume integral. Since the resulting balance holds for every sufficiently small volume in a smooth flow, its integrand must vanish.

\[\partial_t\rho+\nabla\cdot(\rho\mathbf u)=0,\]
\[\frac{D\rho}{Dt}+\rho\,\nabla\cdot\mathbf u=0 .\]

Here \(D/Dt=\partial_t+\mathbf u\cdot\nabla\) follows a moving parcel. Constant parcel density therefore gives

\[\nabla\cdot\mathbf u=0.\]

In a steady single-inlet, single-outlet incompressible duct, integration reduces this statement to \(A_1\bar u_1=A_2\bar u_2\).

Background · Material acceleration
\[D\mathbf u/Dt=\partial_t\mathbf u+(\mathbf u\cdot\nabla)\mathbf u\]

A fluid parcel can accelerate as it follows a steady but spatially varying velocity. A probe fixed in space measures only the local time history.

Derivation and applications

Distinguish a parcel trajectory from an instantaneous streamline

Dye introduced into an unsteady flow need not follow a line drawn tangent to one velocity snapshot. To calculate the difference, consider a spatially uniform planar velocity field with horizontal component \(u=U>0\) and vertical component \(v=at\), where \(a\) is constant. Such a field is divergence-free because neither component varies with position. Neglect diffusion and assume a neutrally buoyant tracer. A parcel released at the origin at time \(t_0\) obeys the two ordinary differential equations

\[\dot x=U,\]
\[\dot y=at,\]
\[x=U(t-t_0),\]
\[y=\tfrac12a(t^2-t_0^2).\]

Eliminate the elapsed time to find the parcel path. The first term reflects vertical velocity at release and the quadratic term accumulates the subsequent acceleration. In contrast, an instantaneous streamline uses the velocity direction at one frozen time \(t_s\) for all its points.

\[y_{\rm path}(x)=\frac{at_0}{U}x+\frac{a}{2U^2}x^2,\]
\[\left.\frac{dy}{dx}\right|_{\rm stream}=\frac{at_s}{U}.\]

Continuous injection at the origin generates a third observable. At a fixed observing time \(t_s\), different coloured parcels have different release times \(t_0=t_s-x/U\). Substitution into the position solution gives the locus of all visible dye at that instant, called the streakline.

\[y_{\rm streak}(x;t_s)=\frac{at_s}{U}x-\frac{a}{2U^2}x^2 .\]

The streakline is tangent to the instantaneous velocity at the injector but curves away from that direction farther downstream. In the steady limit \(a=0\) all three constructions produce horizontal lines.

Worked example

Compare a pulse of dye with a velocity image

Take \(U=0.400\) m/s and \(a=0.100\) m/s². A parcel released at \(t_0=0\) reaches \(x=0.800\) m at 2.00 s and has risen \(\tfrac12(0.100)(2.00)^2=0.200\) m. The streamline through the injector at 2.00 s has slope 0.500, reaching 0.400 m at the same horizontal coordinate. It represents the current velocity field, which changed while the pulse was travelling.

Change the inputs and inspect this calculation below

Second application

Recover acceleration from a continuous dye trace

In another experiment \(U=0.500\) m/s. At \(t_s=3.00\) s, continuously injected dye at \(x=0.500\) m lies 0.250 m above the source. That parcel is 1.00 s old, so its release time was 2.00 s. From \(y=a(3^2-2^2)/2\) one finds \(a=0.100\) m/s². The local velocity slope at observation is then 0.600, independently measurable from a short-exposure particle image.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Look at a point or follow a parcel

At a contraction in an otherwise steady pipe, a parcel of water speeds up. A probe fixed at the throat reports a constant speed throughout the experiment. Both observations are compatible because a field can vary along the path even when it has no explicit time dependence. Eulerian measurements describe velocity at a place. Following a marked parcel gives its changing position and velocity.

Write the velocity field as \(\mathbf u(\mathbf x,t)\). During \(dt\) the parcel advances through \(d\mathbf x=\mathbf u\,dt\). The chain rule along that trajectory gives

\[\mathbf a=\partial_t\mathbf u+(\mathbf u\cdot\nabla)\mathbf u.\]

The first term is local acceleration and the second is convective acceleration. In steady one-dimensional flow \(a_x=u\,du/dx\). A streamline is tangent to the instantaneous velocity. In a steady flow pathlines and streamlines coincide, whereas in an unsteady field the curve traced by a parcel can differ from a single snapshot’s streamlines.

Background · Can a sequence of photographs identify the acceleration of one parcel?

A fixed camera that records velocity at one pixel measures an Eulerian history. A particle may enter a different pixel long before the next frame. For the planar velocity field \(\mathbf u=(a x,-a y)\) with constant \(a\), all fixed pixels record an unchanging field. A parcel released on the positive \(x\) axis instead obeys \(x(t)=x_0e^{at}\).

\[\frac{D\mathbf u}{Dt}=\partial_t\mathbf u+(\mathbf u\cdot\nabla)\mathbf u=(a^2x,a^2y).\]

At \(a=2~\mathrm{s}^{-1}\) and \(x=0.10\) m on the axis, the downstream acceleration is 0.40 m/s². The parcel moves into faster neighbouring fluid. Estimating acceleration from an image pair therefore requires either tracking the same particle or combining the local time difference with spatial velocity gradients.

Count the mass crossing a surface

Enclose part of a fluid system in a fixed control volume. A small surface element with outward normal \(\mathbf n\) passes volume \((\mathbf u\cdot\mathbf n)dA\,dt\) in time \(dt\). Multiply by density and add over the whole boundary. Normal inflow is negative, reducing the net outward flux. Conservation of mass is

\[\frac{d}{dt}\int_{\rm CV}\rho\,dV+\int_{\rm CS}\rho\,\mathbf u\cdot\mathbf n\,dA=0.\]

In steady operation the mass flow rate entering all inlets equals that leaving all outlets. A one-inlet, one-outlet reduction with uniform cross-sectional density gives

\[\rho_1 A_1\bar u_1=\rho_2 A_2\bar u_2.\]

The mean velocity is the area integral of the normal component divided by area. A centreline speed is seldom that mean. For variable density the volume rate can change along a duct while mass rate remains constant.

Accelerate water in a contraction

Water of density 1000 kg/m³ enters a straight circular nozzle 60 mm in diameter with a mean speed of 1.50 m/s. The outlet is 30 mm in diameter. First use the inlet area to find the volume and mass passing per second.

\[\begin{aligned} Q&=\bar u_1\frac{\pi D_1^2}{4} =4.24\times10^{-3}~\mathrm{m^3/s},\\ \dot m&=\rho Q=4.24~\mathrm{kg/s}. \end{aligned}\]

For steady incompressible flow the same volume per second must pass through an outlet of one quarter the inlet area. The mean speed increases accordingly.

\[\bar u_2=\bar u_1\left(\frac{D_1}{D_2}\right)^2 =1.50\left(\frac{60}{30}\right)^2~\mathrm{m/s}=6.00~\mathrm{m/s}.\]

These speeds determine the change in streamwise momentum flux if both profiles are nearly uniform. The pressure and wall forces responsible for that change require a momentum balance.

Suppose along a centreline segment of length 0.30 m the speed is approximately linear from 1.50 to 6.0 m/s. Its gradient is 15 s⁻¹. At a local speed of 3.0 m/s the convective acceleration is 45 m/s². The transit time through the segment is

\[\int dx/u=\ln(6/1.5)/15=0.0924\,\mathrm{s}.\]

Dividing distance by the arithmetic mean of the two speeds gives a different answer because a particle spends a larger fraction of its time in the slower region.

Let the control volume fill

A vented tank receives 4 L/s and initially delivers 2 L/s through a controlled outlet. In a constant horizontal tank section of 0.50 m² the water level rises at \((0.004-0.002)/0.50=0.0040\) m/s. The storage term remains essential even if both inlet and outlet flow meters have steady readings. A free-surface tank can therefore act as an independent calibration: the measured volume increase over a timed interval should equal the integrated difference between inflow and outflow. If the outlet is driven by the changing hydrostatic head, its rate will cease to be constant and the balance becomes a differential equation for the depth.

Check continuity directly in a velocity field

A planar test field \(u=ax,\ v=-ay\) with constant \(a\) stretches a fluid square in one direction and shortens it in the other. Since \(\partial_xu+\partial_yv=a-a=0\), its area is preserved locally. A particle released at \(x_0,y_0\) follows \(x=x_0e^{at},\ y=y_0e^{-at}\); the product \(xy\) remains constant. This explicit trajectory shows how an incompressible parcel can deform and accelerate even when the velocity at every fixed point is independent of time.

Count mass through a control surface that moves

A flow meter on a translating piston does not see the same volume rate as a stationary meter at the same instant. Start with a material system, whose total mass is constant. Over a short time \(dt\), a patch of control surface of area \(dA\) moves a distance \(\mathbf v_s\cdot\mathbf n\,dt\) in its outward normal direction. Fluid moves a distance \(\mathbf v\cdot\mathbf n\,dt\) in that direction. The volume swept through the moving patch is the difference times \(dA\). Converting this volume into mass gives the moving-control-volume form of continuity:

\[\frac{d}{dt}\int_{CV(t)}\rho\,dV+\int_{CS(t)}\rho(\mathbf v-\mathbf v_s)\cdot\mathbf n\,dA=0 .\]

The storage term differentiates the mass inside the actual changing volume. A boundary following a parcel has zero relative normal velocity there, even when the parcel and the boundary move quickly in the laboratory. On an impermeable wall this no-penetration condition applies to its normal movement; the mass balance alone imposes no constraint on tangential slip. Setting \(\mathbf v_s=0\) recovers the fixed-volume formula. Making the entire surface material removes the flux term and recovers conservation of the system mass.

For constant density, differentiating the geometric volume and using the outward convention gives

\[dV/dt=\int\mathbf v_s\cdot\mathbf n\,dA.\]

Substitution shows how the familiar \(\int\mathbf v\cdot\mathbf n\,dA=0\) can hold for an instantaneous surface even while its enclosed volume is growing. Relative flux and volume storage must be paired consistently.

Interpret a flow reading on a moving piston

A horizontal cylinder of area \(0.010\,\mathrm{m^2}\) has an inlet in its fixed left end and a small outlet passing through a piston at its right end. The piston moves to the right at 0.040 m/s while the cylinder stays full of incompressible water. A fixed inlet meter measures \(0.00070\,\mathrm{m^3/s}\). The volume occupied by water grows at \(0.010(0.040)=0.00040\,\mathrm{m^3/s}\). Therefore the relative outlet flux through the piston is \(0.00070-0.00040=0.00030\,\mathrm{m^3/s}\), or 0.30 L/s.

The outlet area is \(2.0\times10^{-4}\,\mathrm{m^2}\) and flow exits to the right. Its mean velocity relative to the piston is 1.50 m/s, while its laboratory velocity at the moving outlet is

\[1.50+0.040=1.54\,\mathrm{m/s}.\]

Multiplying that laboratory velocity directly by the outlet area gives 0.308 L/s, too high for the outlet flow measured by an instrument carried on the piston. If the piston moved to the right at 0.070 m/s, the entire inlet rate would fill the new volume and relative outlet discharge would be zero. These conclusions assume no leakage past the piston rim and that the outlet area is part of the moving boundary; a fixed downstream collection nozzle would require its own control surface and storage terms.

A downstream weighing tank that travels with the piston would collect 0.30 kg per second at water density 1000 kg/m³. This is the discharge relative to that apparatus. The distinction is measurable and does not depend on any pressure-loss assumption for the outlet.

Can a steady flow accelerate a fluid particle?

Let the cross-sectional area in a straight nozzle be \(A(x)/A_0=1-a x/L\). In an ideal steady quasi-one-dimensional incompressible flow, continuity gives

\[u=U_0/(1-a x/L).\]

The material acceleration is \(u\,du/dx\) although every stationary probe measures a constant velocity.

Can a steady flow accelerate a fluid particle?. Horizontal axis: Distance / nozzle length. Vertical axis: Acceleration × length / inlet speed². Data follow the figure.
Reducing the area to 60% of its inlet value gives an exit acceleration of approximately 1.85 U₀²/L. The concentrating acceleration comes from both the increasing speed and its increasing gradient.
Read values from the plot
Acceleration × length / inlet speed² at selected values of Distance / nozzle length.
Distance / nozzle lengthOutlet / inlet area = 0.80Outlet / inlet area = 0.60Outlet / inlet area = 0.40
00.20.40.6
0.250.233270.54870.977
0.50.274350.781251.7493
0.750.325671.16623.6063
10.390621.85199.375

Download all 201 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Reduce the exit area and inspect where the acceleration grows fastest. Doubling inlet velocity quadruples the acceleration.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.