Skip to main content

Chapter 2 · 9 hours

Governing Equations and Numerical Foundations

Practice questions

Practice questions and answers

8 exam-style questions on this chapter, written for this site from the official syllabus. We haven’t found past IOE papers for this subject yet; if you have some, share them in the community.

  • Practice · 6 marks

Derive the continuity equation in differential form for three-dimensional unsteady compressible flow in Cartesian coordinates. Reduce it for steady and for incompressible flow.

Answer

The continuity equation expresses conservation of mass: mass is neither created nor destroyed.

Derivation

Take a fixed small control volume (a cube) of sides dx, dy, dzdx,\ dy,\ dz with density ρ\rho and velocity components u,v,wu,v,w.

        y
        ^   +---------+
        |  /         /|
        | +---------+ |   mass in  : rho*u dy dz
        | |         | |   at x face
        | |         | +   mass out : [rho*u +
        | |         |/      d(rho*u)/dx dx] dy dz
        | +---------+
        +-------------> x

Net mass efflux in the x-direction:

[ρu+∂(ρu)∂xdx]dy dz−ρu dy dz=∂(ρu)∂xdx dy dz\left[\rho u+\frac{\partial(\rho u)}{\partial x}dx\right]dy\,dz-\rho u\,dy\,dz=\frac{\partial(\rho u)}{\partial x}dx\,dy\,dz

Similarly for y and z. Total net outflow of mass per unit time:

[∂(ρu)∂x+∂(ρv)∂y+∂(ρw)∂z]dx dy dz\left[\frac{\partial(\rho u)}{\partial x}+\frac{\partial(\rho v)}{\partial y}+\frac{\partial(\rho w)}{\partial z}\right]dx\,dy\,dz

Rate of decrease of mass inside the element is −∂ρ∂tdx dy dz-\dfrac{\partial\rho}{\partial t}dx\,dy\,dz. Equating the two and dividing by the volume:

∂ρ∂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

or in vector form

∂ρ∂t+∇⋅(ρV⃗)=0\frac{\partial\rho}{\partial t}+\nabla\cdot(\rho\vec V)=0

Special cases

  • Steady flow (∂ρ/∂t=0\partial\rho/\partial t=0):
∂(ρu)∂x+∂(ρv)∂y+∂(ρw)∂z=0\frac{\partial(\rho u)}{\partial x}+\frac{\partial(\rho v)}{\partial y}+\frac{\partial(\rho w)}{\partial z}=0
  • Incompressible flow (ρ\rho constant):
∂u∂x+∂v∂y+∂w∂z=∇⋅V⃗=0\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}+\frac{\partial w}{\partial z}=\nabla\cdot\vec V=0

This means the velocity field is divergence-free, and volume is conserved for a fluid element.

  • Practice · 4 marks

The x-component of velocity in a steady, incompressible two-dimensional flow is u=x2yu = x^2 y. Using the continuity equation, find the y-component vv, given that v=0v = 0 at y=0y = 0. Also find the z-component of vorticity.

Answer

Given: u=x2yu=x^2y, incompressible 2D flow, v=0v=0 at y=0y=0.

Continuity

∂u∂x+∂v∂y=0\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}=0 ∂u∂x=2xy ⇒ ∂v∂y=−2xy\frac{\partial u}{\partial x}=2xy\ \Rightarrow\ \frac{\partial v}{\partial y}=-2xy

Integrate with respect to yy:

v=−xy2+f(x)v=-xy^2+f(x)

The condition v=0v=0 at y=0y=0 for all xx gives f(x)=0f(x)=0. Hence

v=−xy2v=-xy^2

Vorticity

ζz=∂v∂x−∂u∂y=(−y2)−(x2)=−(x2+y2)\zeta_z=\frac{\partial v}{\partial x}-\frac{\partial u}{\partial y}=(-y^2)-(x^2)=-(x^2+y^2)

The vorticity is not zero, so the flow is rotational. Its magnitude increases with distance from the origin, and the minus sign means clockwise rotation.

Answer: v=−xy2v=-xy^2; ζz=−(x2+y2)\zeta_z=-(x^2+y^2) s−1^{-1} (rotational).

  • Practice · 5 marks

State the integral form of the continuity equation for a control volume. Air flows steadily through a duct. At the inlet the area is 0.020 m², density 1.2 kg/m³ and velocity 20 m/s. At the outlet the area is 0.010 m² and the density is 1.5 kg/m³. Find the mass flow rate and the outlet velocity.

Answer

Integral form

For a fixed control volume (CV) with control surface (CS):

∂∂t∫CVρ dV+∫CSρ (V⃗⋅n^) dA=0\frac{\partial}{\partial t}\int_{CV}\rho\,dV+\int_{CS}\rho\,(\vec V\cdot\hat n)\,dA=0

The first term is the rate of change of mass stored in the CV; the second is the net mass outflow through the surface. For steady flow the first term is zero, so total mass inflow equals total outflow. For one inlet and one outlet:

ρ1A1V1=ρ2A2V2=m˙\rho_1A_1V_1=\rho_2A_2V_2=\dot m

The integral form is the basis of the finite volume method, since it is applied to each cell. The differential form follows by applying the divergence theorem to a very small volume.

Numerical

Mass flow rate:

m˙=ρ1A1V1=1.2×0.020×20=0.48 kg/s\dot m=\rho_1A_1V_1=1.2\times0.020\times20=0.48\ \text{kg/s}

Outlet velocity:

V2=m˙ρ2A2=0.481.5×0.010=32 m/sV_2=\frac{\dot m}{\rho_2A_2}=\frac{0.48}{1.5\times0.010}=32\ \text{m/s}

Check: the velocity increases because the area is halved (factor 2) while the density rises by 1.25: V2=V1×ρ1A1ρ2A2=20×0.0240.015=32V_2=V_1\times\dfrac{\rho_1A_1}{\rho_2A_2}=20\times\dfrac{0.024}{0.015}=32 m/s.

Answer: m˙=0.48\dot m=0.48 kg/s; V2=32V_2=32 m/s.

  • Practice · 8 marks

Write the Navier-Stokes momentum equation for an incompressible Newtonian fluid with constant properties. Explain the physical meaning of each term and state the assumptions used. Why is the equation difficult to solve?

Answer

The Navier-Stokes (N-S) equations express Newton's second law (mass×acceleration=force\text{mass}\times\text{acceleration}=\text{force}) for a fluid element.

Equation (vector form)

ρ(∂V⃗∂t+(V⃗⋅∇)V⃗)=−∇p+μ∇2V⃗+ρg⃗\rho\left(\frac{\partial\vec V}{\partial t}+(\vec V\cdot\nabla)\vec V\right)=-\nabla p+\mu\nabla^2\vec V+\rho\vec g

In Cartesian form, x-direction:

ρ(∂u∂t+u∂u∂x+v∂u∂y+w∂u∂z)=−∂p∂x+μ(∂2u∂x2+∂2u∂y2+∂2u∂z2)+ρgx\rho\left(\frac{\partial u}{\partial t}+u\frac{\partial u}{\partial x}+v\frac{\partial u}{\partial y}+w\frac{\partial u}{\partial z}\right)=-\frac{\partial p}{\partial x}+\mu\left(\frac{\partial^2u}{\partial x^2}+\frac{\partial^2u}{\partial y^2}+\frac{\partial^2u}{\partial z^2}\right)+\rho g_x

with similar equations for yy and zz. It is used together with ∇⋅V⃗=0\nabla\cdot\vec V=0.

Meaning of terms

TermNamePhysical meaning
ρ ∂V⃗/∂t\rho\,\partial\vec V/\partial tLocal (unsteady) inertiaRate of change of momentum at a fixed point
ρ(V⃗⋅∇)V⃗\rho(\vec V\cdot\nabla)\vec VConvective inertiaMomentum carried by the flow; non-linear term
−∇p-\nabla pPressure forceForce per unit volume from the pressure gradient
μ∇2V⃗\mu\nabla^2\vec VViscous (diffusion) forceMomentum diffusion by molecular friction
ρg⃗\rho\vec gBody forceGravity (buoyancy etc.) per unit volume

The left side is mass times acceleration per unit volume; the right side is the sum of forces.

Assumptions

  • Continuum, Newtonian fluid (stress proportional to strain rate).
  • Constant density and viscosity (incompressible, isothermal).
  • Stokes' hypothesis for bulk viscosity is not needed when ∇⋅V⃗=0\nabla\cdot\vec V=0.

Why difficult to solve

  • The convective term u ∂u/∂xu\,\partial u/\partial x is non-linear, so superposition fails and no general analytical solution exists.
  • Four unknowns (u,v,w,pu,v,w,p) are coupled with four equations, and pressure has no equation of its own (needs pressure-velocity coupling).
  • At high ReRe the solution is turbulent, with a wide range of scales, so very fine meshes are needed (DNS) or modelling (RANS/LES).
  • Analytical solutions exist only for simple cases such as Couette and Poiseuille flows, which are used to test CFD codes.
  • Practice · 8 marks

Starting from the Navier-Stokes equation, derive the velocity profile for steady, fully developed laminar flow of an incompressible fluid between two stationary parallel plates separated by a distance hh. Oil of viscosity 0.08 Pa·s and density 870 kg/m³ flows between two plates 6 mm apart under a pressure gradient dp/dx=−1500dp/dx = -1500 Pa/m. Find the maximum velocity, the flow rate per metre width, the mean velocity, the wall shear stress and the Reynolds number based on the gap.

Answer

Derivation

Assumptions: steady, incompressible, fully developed (∂u/∂x=0\partial u/\partial x=0), v=w=0v=w=0, no body force effect along x, infinitely wide plates (∂/∂z=0\partial/\partial z=0).

   y=h  ======================  fixed plate
         ->    ->     ->
         ->   -->    --->   u(y)
         ->    ->     ->
   y=0  ======================  fixed plate

The x-momentum equation reduces to

0=−dpdx+μd2udy2 ⇒ d2udy2=1μdpdx0=-\frac{dp}{dx}+\mu\frac{d^2u}{dy^2}\ \Rightarrow\ \frac{d^2u}{dy^2}=\frac1\mu\frac{dp}{dx}

(the y-momentum equation shows that pp depends only on xx). Integrate twice:

u=12μdpdxy2+C1y+C2u=\frac{1}{2\mu}\frac{dp}{dx}y^2+C_1y+C_2

No-slip: u=0u=0 at y=0y=0 gives C2=0C_2=0; u=0u=0 at y=hy=h gives C1=−12μdpdxhC_1=-\dfrac{1}{2\mu}\dfrac{dp}{dx}h. So

u=−12μdpdx y (h−y)u=-\frac{1}{2\mu}\frac{dp}{dx}\,y\,(h-y)

The profile is parabolic. Maximum velocity at y=h/2y=h/2:

umax=−h28μdpdxu_{max}=-\frac{h^2}{8\mu}\frac{dp}{dx}

Flow rate per unit width q=∫0hu dy=−h312μdpdxq=\int_0^hu\,dy=-\dfrac{h^3}{12\mu}\dfrac{dp}{dx}, so mean velocity uˉ=q/h=23umax\bar u=q/h=\tfrac23u_{max}. Wall shear stress τw=μ dudy∣0=−h2dpdx\tau_w=\mu\,\dfrac{du}{dy}\Big|_{0}=-\dfrac h2\dfrac{dp}{dx} in magnitude.

Numerical

Data: μ=0.08\mu=0.08 Pa·s, ρ=870\rho=870 kg/m³, h=0.006h=0.006 m, G=−dp/dx=1500G=-dp/dx=1500 Pa/m.

umax=Gh28μ=1500×(0.006)28×0.08=0.0844 m/su_{max}=\frac{G h^2}{8\mu}=\frac{1500\times(0.006)^2}{8\times0.08}=0.0844\ \text{m/s} q=Gh312μ=1500×(0.006)312×0.08=3.375×10−4 m2/s per m widthq=\frac{Gh^3}{12\mu}=\frac{1500\times(0.006)^3}{12\times0.08}=3.375\times10^{-4}\ \text{m}^2/\text{s per m width} uˉ=qh=3.375×10−40.006=0.05625 m/s(=23×0.0844)\bar u=\frac qh=\frac{3.375\times10^{-4}}{0.006}=0.05625\ \text{m/s}\quad(=\tfrac23\times0.0844) τw=Gh2=1500×0.0062=4.5 Pa\tau_w=\frac{Gh}{2}=\frac{1500\times0.006}{2}=4.5\ \text{Pa} Re=ρuˉhμ=870×0.05625×0.0060.08=3.67Re=\frac{\rho\bar uh}{\mu}=\frac{870\times0.05625\times0.006}{0.08}=3.67

Re≪1Re\ll1, so the flow is laminar (creeping), and the assumption is valid.

Answer: umax=0.0844u_{max}=0.0844 m/s; q=3.375×10−4q=3.375\times10^{-4} m²/s per m; uˉ=0.0563\bar u=0.0563 m/s; τw=4.5\tau_w=4.5 Pa; Re=3.67Re=3.67.

  • Practice · 6 marks

Write the energy equation in terms of enthalpy for a viscous flow and explain its terms. Show how it simplifies to the heat transfer (temperature) equation for an incompressible fluid with constant properties.

Answer

The energy equation comes from the first law of thermodynamics applied to a fluid element: the rate of change of energy equals heat added plus work done on the element.

Enthalpy form

With specific enthalpy h=e+p/ρh=e+p/\rho, the transport equation is

ρDhDt=DpDt+∇⋅(k∇T)+Φ+Sh\rho\frac{Dh}{Dt}=\frac{Dp}{Dt}+\nabla\cdot(k\nabla T)+\Phi+S_h

that is

ρ(∂h∂t+V⃗⋅∇h)=∂p∂t+V⃗⋅∇p+∇⋅(k∇T)+Φ+Sh\rho\left(\frac{\partial h}{\partial t}+\vec V\cdot\nabla h\right)=\frac{\partial p}{\partial t}+\vec V\cdot\nabla p+\nabla\cdot(k\nabla T)+\Phi+S_h
TermMeaning
ρ Dh/Dt\rho\,Dh/DtRate of change of enthalpy of a moving fluid element
Dp/DtDp/DtWork of pressure changes; important for compressible flow
∇⋅(k∇T)\nabla\cdot(k\nabla T)Heat conduction (Fourier's law)
Φ\PhiViscous dissipation: mechanical work converted to heat
ShS_hVolumetric heat source (reaction, radiation, Joule heating)

For an ideal gas or incompressible liquid dh=cp dTdh=c_p\,dT, so the equation can be written in terms of temperature.

Simplification

For incompressible flow with constant ρ, cp, k\rho,\ c_p,\ k and negligible viscous dissipation and pressure work (low speed):

ρcp(∂T∂t+u∂T∂x+v∂T∂y+w∂T∂z)=k∇2T+q˙\rho c_p\left(\frac{\partial T}{\partial t}+u\frac{\partial T}{\partial x}+v\frac{\partial T}{\partial y}+w\frac{\partial T}{\partial z}\right)=k\nabla^2T+\dot q

or

∂T∂t+V⃗⋅∇T=α∇2T+q˙ρcp,α=kρcp\frac{\partial T}{\partial t}+\vec V\cdot\nabla T=\alpha\nabla^2T+\frac{\dot q}{\rho c_p},\qquad \alpha=\frac{k}{\rho c_p}

This is the convection-diffusion equation for temperature.

Special cases

  • No flow (V⃗=0\vec V=0): ∂T/∂t=α∇2T\partial T/\partial t=\alpha\nabla^2T, the transient heat conduction equation.
  • Steady, no flow, no source: ∇2T=0\nabla^2T=0, the Laplace equation.
  • Steady 1D conduction with source: k d2T/dx2+q˙=0k\,d^2T/dx^2+\dot q=0.

The ratio of convection to conduction is the Peclet number Pe=ρcpVL/k=Re PrPe=\rho c_pVL/k=Re\,Pr.

  • Practice · 7 marks

(a) Write the Euler equations of motion for inviscid flow and show that they give Bernoulli's equation along a streamline for steady, incompressible flow. (b) A Pitot-static tube in an air duct (ρ=1.2\rho = 1.2 kg/m³) shows a pressure difference between the stagnation and static ports of 450 Pa. Find the air velocity.

Answer

(a) Euler equations

For an inviscid fluid (μ=0\mu=0) the Navier-Stokes equation loses the viscous term:

ρ(∂V⃗∂t+(V⃗⋅∇)V⃗)=−∇p+ρg⃗\rho\left(\frac{\partial\vec V}{\partial t}+(\vec V\cdot\nabla)\vec V\right)=-\nabla p+\rho\vec g

In components (x-direction): ∂u∂t+u∂u∂x+v∂u∂y+w∂u∂z=−1ρ∂p∂x+gx\dfrac{\partial u}{\partial t}+u\dfrac{\partial u}{\partial x}+v\dfrac{\partial u}{\partial y}+w\dfrac{\partial u}{\partial z}=-\dfrac1\rho\dfrac{\partial p}{\partial x}+g_x.

Bernoulli from Euler: take steady flow along a streamline of length dsds. The momentum equation along ss becomes

VdVds=−1ρdpds−gdzdsV\frac{dV}{ds}=-\frac1\rho\frac{dp}{ds}-g\frac{dz}{ds}

Multiply by dsds and integrate with constant ρ\rho:

∫dpρ+∫V dV+∫g dz=const ⇒ pρ+V22+gz=constant\int\frac{dp}{\rho}+\int V\,dV+\int g\,dz=\text{const}\ \Rightarrow\ \frac p\rho+\frac{V^2}{2}+gz=\text{constant}

Equivalently p+12ρV2+ρgz=p+\tfrac12\rho V^2+\rho gz= const along a streamline. It is valid for steady, incompressible, inviscid flow with no heat or work addition. If the flow is also irrotational, the constant is the same for the whole field.

In CFD, Euler solvers are used for high-speed external flows where viscous effects outside the boundary layer are small, as they are cheaper than full N-S solvers.

(b) Pitot tube

At the stagnation port the velocity is zero, so

p0−p=12ρV2p_0-p=\tfrac12\rho V^2 V=2(p0−p)ρ=2×4501.2=27.4 m/sV=\sqrt{\frac{2(p_0-p)}{\rho}}=\sqrt{\frac{2\times450}{1.2}}=27.4\ \text{m/s}

(The Mach number is about 0.08, so incompressible treatment is valid.)

Answer: V=27.4V=27.4 m/s.

  • Practice · 6 marks

What is Stokes flow? State the conditions and give the drag force on a sphere. A sand particle of diameter 0.1 mm and density 2650 kg/m³ settles in still water at 20 °C (ρ=998\rho = 998 kg/m³, μ=1.002×10−3\mu = 1.002\times10^{-3} Pa·s). Find its terminal velocity and check that Stokes' law is valid.

Answer

Stokes flow

Stokes (creeping) flow is flow at very low Reynolds number (Re≪1Re\ll1, in practice Re<1Re<1) in which inertia is negligible compared with viscous forces. The Navier-Stokes equation reduces to the linear form

∇p=μ∇2V⃗,∇⋅V⃗=0\nabla p=\mu\nabla^2\vec V,\qquad \nabla\cdot\vec V=0

Conditions: small particle or length scale, high viscosity, or very low velocity (e.g. micro-fluidics, sedimentation, lubrication films). The solution is linear and time-reversible.

For a sphere of diameter dd moving at velocity VV in an infinite fluid, Stokes' drag is

FD=3πμdV,CD=24ReF_D=3\pi\mu dV,\qquad C_D=\frac{24}{Re}

Terminal velocity

At terminal velocity: weight −- buoyancy == drag

πd36(ρp−ρf)g=3πμdVt ⇒ Vt=(ρp−ρf) g d218μ\frac{\pi d^3}{6}(\rho_p-\rho_f)g=3\pi\mu dV_t\ \Rightarrow\ V_t=\frac{(\rho_p-\rho_f)\,g\,d^2}{18\mu}

Substituting (d=1×10−4d=1\times10^{-4} m):

Vt=(2650−998)×9.81×(1×10−4)218×1.002×10−3=1652×9.81×10−80.018036=8.99×10−3 m/sV_t=\frac{(2650-998)\times9.81\times(1\times10^{-4})^2}{18\times1.002\times10^{-3}}=\frac{1652\times9.81\times10^{-8}}{0.018036}=8.99\times10^{-3}\ \text{m/s}

Check of validity

Re=ρfVtdμ=998×8.99×10−3×10−41.002×10−3=0.895<1Re=\frac{\rho_fV_td}{\mu}=\frac{998\times8.99\times10^{-3}\times10^{-4}}{1.002\times10^{-3}}=0.895<1

The particle Reynolds number is below 1, so Stokes' law is acceptable (slightly at the upper limit).

The drag force is FD=3πμdVt=8.5×10−9F_D=3\pi\mu dV_t=8.5\times10^{-9} N, equal to the net weight.

Answer: Vt=8.99V_t=8.99 mm/s (about 9 mm/s), Re=0.89Re=0.89, so Stokes' law is valid.

Written from the official syllabus. Questions and answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗