Skip to content
Tutorials Center
My learning

Topics

Lesson 41 of 46 · Projects and Practice

Project: start-up of Poiseuille flow, exact versus numerical

Build and verify a solver for the start-up of plane Poiseuille flow: derive the exact series, code an explicit scheme, measure error and find the viscous time scale.

This project joins chapters 5 and 8. You will start with a fluid at rest between two walls, switch on a pressure gradient, and watch the velocity grow toward the parabola of Poiseuille flow. The problem has an exact answer (a Fourier series), so you can check your solver to many digits and learn how long it takes viscosity to spread momentum across a gap.

Four velocity profiles growing from rest toward the steady parabola, with a project plan card
Start-up of channel flow: momentum diffuses in from the walls until the parabola is reached.

What you will learn

  • How to separate the steady solution from the transient and expand the transient in a sine series.
  • How to code an explicit finite-difference solver with a forcing term and check it against the series.
  • The viscous time scale h²/(π² ν) and what it means for real fluids.
  • What happens when you break the stability limit on purpose.

The physics

Between walls at y = 0 and y = h, the fluid starts at rest. At t = 0 a pressure gradient G = -dp/dx is applied. The momentum equation is

∂u/∂t = G/ρ + ν ∂²u/∂y², with u(0,t) = u(h,t) = 0 and u(y,0) = 0

The steady state is the Poiseuille parabola u_s = G y (h - y)/(2μ). Write u = u_s + v. Then v satisfies the pure diffusion equation, vanishes at the walls and starts as v(y,0) = -u_s(y). Expand in the modes sin(nπy/h), which satisfy the wall conditions:

v = Σ b_n e^(-n²π²νt/h²) sin(nπy/h)

with b_n = (2/h) ∫ -u_s sin(nπy/h) dy. The integral ∫₀ʰ y(h - y) sin(nπy/h) dy = 4h³/(nπ)³ for odd n (and zero for even n). The result is

u(y,t) = G y(h - y)/(2μ) - Σ_{n odd} 4 G h² / (μ n³ π³) sin(nπy/h) e^(-n²π²νt/h²)

The n = 1 term decays slowest, with the time scale t₁ = h²/(π²ν). After a few t₁ the transient is gone. The factor 1/n³ makes the series converge very quickly.

Key terms

  • Transient: the part of the solution that decays as time passes.
  • Viscous diffusion time: the time h²/ν for momentum to spread across a gap h.
  • Mode: a spatial pattern (here sin(nπy/h)) that evolves independently.
  • Verification: checking a numerical solution against an exact one.

Step 1: the exact series

Code the formula above in nondimensional form: scale y by h, speed by U_max = G h²/(8μ), and time by h²/ν. Then

u/U_max = 4η(1 - η) - Σ_{n odd} (32/(n³π³)) sin(nπη) e^(-n²π²τ), with η = y/h, τ = νt/h²

At τ = 0 the sum must cancel the parabola exactly. That is a first check of your code.

Step 2: the numerical solver

Discretize with central differences and explicit time stepping. In nondimensional form the equation is ∂u/∂τ = 8 + ∂²u/∂η² (with U_max as the velocity unit). The update is u_j^{n+1} = u_j^n + r (u_{j+1}^n - 2u_j^n + u_{j-1}^n) + 8 Δτ, with r = Δτ/Δη².

Try it

Python Solver versus exact series

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 3: time scales and refinement

Because the decay time is h²/(π² ν), thin gaps respond quickly, and so do fluids with a large kinematic viscosity, because momentum diffuses faster there. For a gap of 1 mm: water (ν = 10⁻⁶ m²/s) has t₁ = (10⁻³)²/(π² × 10⁻⁶) ≈ 0.10 s, while glycerin (ν ≈ 1.1×10⁻³ m²/s, near 20 °C) responds about a thousand times faster, in under a tenth of a millisecond. The next program computes these numbers and the error of the solver on four grids.

Python Time scales and grid refinement

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Slide through time

Step 4: break it on purpose

Change r = 0.4 to r = 0.6 in the solver and run again. The error will explode after a few hundred steps: the shortest wavelength is amplified by |1 - 4r| = 1.4 per step (chapter 8). Then try an implicit solver (backward Euler with a tridiagonal solve) and confirm that it remains stable at r = 5 but with a time error that grows with Δτ.

Common misconceptions

  • "The start-up takes the same time for all fluids." The time scale is h²/ν, which differs by orders of magnitude between air, water and oil.
  • "The series needs thousands of terms." The 1/n³ factor means a handful of terms already gives machine-level accuracy for τ > 0.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Why is the transient part v written as a sum of sin(nπy/h) modes?

    Each sine vanishes at y = 0 and y = h, matching the wall conditions for v.
  2. 2. Which mode of the transient decays slowest?

    The decay rate is n²π²ν/h², so the smallest n lasts longest.
  3. 3. If the gap h is doubled, how does the viscous time scale change?

    The time scale is h²/(π²ν), proportional to h².
  4. 4. Which value of r makes the explicit scheme unstable?

    The limit is r ≤ 1/2; at r = 0.6 the amplification factor for the shortest wave is 1.4.

Summary

  • The start-up problem has the exact solution steady parabola minus a sum of decaying sine modes.
  • The viscous time h²/(π²ν) sets the response time; momentum diffuses from the walls.
  • An explicit solver reproduces the series within a small, second-order error when r ≤ 1/2.
  • Breaking the stability limit shows why the CFL and diffusion rules matter.

Next: Project: sizing a pipe system