Continuity Equation for Fluids in Different Coordinate Systems

Last edited: 2024-11-12 17:40:30

Thumbnail

The continuity equation for fluids can be applied to problems like calculating the outlet velocity of a pipe with varying diameters. It can also be expressed in different coordinate systems such as the cylindrical and spherical coordinate systems. Let us explore the properties of the different formulas for the continuity equation for fluids.

Continuity Equation For Steady Flow

Let us assume a fluid moves in a steady flow through a pipe as in the figure above, meaning the mass flow (m˙\dot{m}) into A1A_1 is the same as the mass flow out of A2A_2. This leads to the following formula:

m˙=ρ1v1A1=ρ2v2A2, \dot{m} = \rho_1 v_1 A_1 = \rho_2 v_2 A_2,

where v1v_1 and v2v_2 are the inlet and outlet velocities respectively. A1A_1 is the area of the inlet and A2A_2 is the area of the outlet. ρ1\rho_1 is the density of the fluid at the inlet and ρ2\rho_2 is the density of fluid at the outlet. To understand the formula you can think of the velocity vv as a height per second and AA as a base area so when the two multiply you get a volume per second. ρ\rho is the density so that gives us mass per second, aka the mass flow.

Continuity Equation Compressible Flow

If the fluid is compressible meaning that the density changes when the pressure changes then the equation above should be used since when the area, as an example, decreases the density and/or velocity have to increase to maintain the equality in the formula.

Continuity Equation Incompressible Flow

If the fluid is incompressible, which water essentially is, then density is constant (ρ1=ρ2\rho_1 = \rho_2) so we can cancel it out on both sides and get:

v1A1=v2A2. v_1 A_1 = v_2 A_2.

So if the area decreases the velocity has to increase. You most likely have experienced this effect when putting your thumb over the end of a water hose. When you do that the area decreases and you get a high velocity flow exiting the hose.

Continuity Equation in Differential Form

The continuity equation in differential form for fluids looks like this:

ρt=(ρu), \frac{\partial \rho}{\partial t} = - \nabla \cdot (\rho \vec{u}),

where ρ\rho is the density, tt is time, and u\vec{u} the flow velocity vector field. If you would like a derivation of this formula then check out our post on the continuity equation in electromagnetism and just replace the charge density ρ\rho with the fluid density and the current density j\vec{j} with ρu\rho \vec{u}.

Continuity Equation in Cartesian Coordinates

The continuity equation in cartesian coordinates (x,y,z)(x,y,z) is

ρt+(ρu)x+(ρv)y+(ρw)z=0, \frac{\partial \rho}{\partial t} + \frac{\partial (\rho u)}{\partial x} + \frac{\partial (\rho v)}{\partial y} + \frac{\partial (\rho w)}{\partial z} = 0,

where uu, vv, and ww are the flow velocity in the xx-, yy-, and zz-direction respectively.

Continuity Equation in Cartesian Coordinates With Incompressible Flow

If the fluid is incompressible, ρ\rho is constant then the formula becomes:

ρ(ux+vy+wz)=0, \rho \left(\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z} \right) = 0,

since ρt=0\frac{\partial \rho}{\partial t}=0

Continuity Equation in Cylindrical Coordinates

The continuity equation for cylindrical coordinates (r,θ,z)(r,\theta,z) is

ρt+1r(ρrur)r+1r(ρuθ)θ+(ρuz)z=0, \frac{\partial \rho}{\partial t} + \frac{1}{r} \frac{\partial(\rho r u_r)}{\partial r} + \frac{1}{r} \frac{\partial(\rho u_\theta)}{\partial \theta} + \frac{\partial(\rho u_z)}{\partial z} = 0,

where uru_r, uθu_\theta, and uzu_z are the flow velocity in the rr-, θ\theta-, and zz-direction respectively.

Continuity Equation in Cylindrical Coordinates With Incompressible Flow

If the fluid is incompressible, ρ\rho is constant then the formula becomes:

ρ(1r(rur)r+1r(uθ)θ+uzz)=0. \rho \left( \frac{1}{r} \frac{\partial(r u_r)}{\partial r} + \frac{1}{r} \frac{\partial(u_\theta)}{\partial \theta} + \frac{\partial u_z}{\partial z} \right) = 0.

Continuity Equation in Spherical Coordinates

The continuity equation for spherical coordinates (r,θ,φ)(r,\theta,\varphi) is

ρt+1r2(ρr2ur)r+1rsinθ(ρuθsinθ)θ+1rsinθ(ρuφ)φ=0, \frac{\partial \rho}{\partial t} + \frac{1}{r^2} \frac{\partial(\rho r^2 u_r)}{\partial r} + \frac{1}{r \sin{\theta}} \frac{\partial(\rho u_\theta \sin{\theta})}{\partial \theta} + \frac{1}{r \sin{\theta}} \frac{\partial(\rho u_\varphi)}{\partial \varphi} = 0,

where uru_r, uθu_\theta, and uφu_\varphi are the flow velocity in the rr-, θ\theta-, and φ\varphi-direction respectively.

Continuity Equation in Spherical Coordinates With Incompressible Flow

If the fluid is incompressible, ρ\rho is constant then the formula becomes:

ρ(1r2(r2ur)r+1rsinθ(uθsinθ)θ+1rsinθ(uφ)φ)=0. \rho \left( \frac{1}{r^2} \frac{\partial (r^2 u_r)}{\partial r} + \frac{1}{r \sin{\theta}} \frac{\partial(u_\theta \sin{\theta})}{\partial \theta} + \frac{1}{r \sin{\theta}} \frac{\partial(u_\varphi)}{\partial \varphi} \right) = 0.

Was the post useful? Feel free to donate!

DONATE