Continuity Equation for Fluids in Different Coordinate Systems
Last edited: 2024-11-12 17:40:30
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˙) into A1 is the same as the mass flow out of A2. This leads to the following formula:
m˙=ρ1v1A1=ρ2v2A2,
where v1 and v2 are the inlet and outlet velocities respectively. A1 is the area of the inlet and A2 is the area of the outlet. ρ1 is the density of the fluid at the inlet and ρ2 is the density of fluid at the outlet. To understand the formula you can think of the velocity v as a height per second and A as a base area so when the two multiply you get a volume per second. ρ 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) so we can cancel it out on both sides and get:
v1A1=v2A2.
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),
where ρ is the density, t is time, and 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 ρ with the fluid density and the current density j with ρu.
Continuity Equation in Cartesian Coordinates
The continuity equation in cartesian coordinates (x,y,z) is
∂t∂ρ+∂x∂(ρu)+∂y∂(ρv)+∂z∂(ρw)=0,
where u, v, and w are the flow velocity in the x-, y-, and z-direction respectively.
Continuity Equation in Cartesian Coordinates With Incompressible Flow
If the fluid is incompressible, ρ is constant then the formula becomes:
ρ(∂x∂u+∂y∂v+∂z∂w)=0,
since ∂t∂ρ=0
Continuity Equation in Cylindrical Coordinates
The continuity equation for cylindrical coordinates (r,θ,z) is
∂t∂ρ+r1∂r∂(ρrur)+r1∂θ∂(ρuθ)+∂z∂(ρuz)=0,
where ur, uθ, and uz are the flow velocity in the r-, θ-, and z-direction respectively.
Continuity Equation in Cylindrical Coordinates With Incompressible Flow
If the fluid is incompressible, ρ is constant then the formula becomes:
ρ(r1∂r∂(rur)+r1∂θ∂(uθ)+∂z∂uz)=0.
Continuity Equation in Spherical Coordinates
The continuity equation for spherical coordinates (r,θ,φ) is