Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Solutions · 11. Couette–Poiseuille flow and the start-up of channel flow

School of Engineering, Nazarbayev University

Worked solutions to the three exercises of Lecture 11. Each solution is computed here and checked with assert statements against an exact identity or an independent calculation. The first code cell sets up the notebook and runs Demonstration 1 of the lecture without showing its output, because some of the solutions use its variables.

Exercise 1

Problem. Compute the exact 99%99\% mid-plane startup timescale t99%=ln⁡(400/π)π2H2νt_{99\%} = \frac{\ln(400/\pi)}{\pi^2}\frac{H^2}{\nu} across all 10 fluids in constants.FLUIDS_DB for H=0.01 mH = 0.01\ \mathrm{m}, and verify via impulsive_couette_exact that 0.5Uwall−u(H/2,t99%)0.5Uwall=0.01\frac{0.5 U_{\mathrm{wall}} - u(H/2, t_{99\%})}{0.5 U_{\mathrm{wall}}} = 0.01 to <10−7< 10^{-7} across every fluid.


Exercise 1: Viscous Startup Timescale check Across All 10 Benchmark Fluids in FLUIDS_DB
=======================================================================================
Fluid                  |   nu [m^2/s] |     t_99% [s] |  Rel Mid-Plane Deficit
------------------------------------------------------------------------------
glycerol_298K          |    7.534e-04 |       0.06518 |             0.01000000
engine_oil_313K        |    2.397e-04 |       0.20485 |             0.01000000
steam_473K             |    3.491e-05 |       1.40654 |             0.01000000
methane_298K           |    1.686e-05 |       2.91189 |             0.01000000
air_298K               |    1.562e-05 |       3.14459 |             0.01000000
ethanol_298K           |    1.368e-06 |      35.89342 |             0.01000000
water_298K             |    8.926e-07 |      55.01441 |             0.01000000
liquid_sodium_673K     |    3.318e-07 |     148.01473 |             0.01000000
mercury_298K           |    1.128e-07 |     435.53307 |             0.01000000
co2_supercritical      |    7.599e-08 |     646.20788 |             0.01000000

Explanation. A common beginner misconception is that ‘thick, syrupy’ glycerol takes longer to reach steady Couette flow than water or mercury. Equation (3.1) shows the exact opposite. Kinematic viscosity ν=μ/ρ\nu = \mu/\rho is the diffusivity of momentum: glycerol (ν=7.53×10−4 m2/s\nu = 7.53\times 10^{-4}\ \mathrm{m^2/s}) diffuses wall momentum across a 1 cm1\ \mathrm{cm} gap in 65 ms65\ \mathrm{ms}, whereas dense, low-viscosity liquid mercury (ν=1.13×10−7 m2/s\nu = 1.13\times 10^{-7}\ \mathrm{m^2/s}) requires over 435 seconds435\ \mathrm{seconds} (>7 minutes> 7\ \mathrm{minutes}). Also at t=t99%t = t_{99\%}, the next odd mode n=3n = 3 has decayed to 4/3π(400/π)9∼10−19\frac{4/3\pi}{(400/\pi)^9} \sim 10^{-19}, making the single-mode formula exact to 16 digits.


Exercise 2

Problem. Verify poiseuille_couette_exact and impulsive_couette_exact raise ValueError on non-positive H,μ,ν,tH, \mu, \nu, t, and demonstrate via constants.von_neumann_advection_diffusion_amp and time marching that explicit FTCS at r=0.65>0.5r = 0.65 > 0.5 suffers ∣G(π)∣=1.6|G(\pi)| = 1.6 Nyquist blow-up while Crank–Nicolson remains bounded.


Exercise 2: Parabolic FTCS Blow-Up (r = 0.65 > 0.5) & Physical Guards
=====================================================================
FTCS von Neumann at theta=pi, r=0.65: G(pi) = -1.60, |G(pi)| = 1.60, stable = False
After 40 steps at r=0.65: max |u_FTCS| = 5.399e+05 vs max |u_CN| = 1.0000

Explanation. At the grid Nyquist mode θ=π\theta = \pi (eiπj=(−1)je^{i\pi j} = (-1)^j), explicit FTCS gives GFTCS(π)=1−4r=−1.60G_{\mathrm{FTCS}}(\pi) = 1 - 4r = -1.60 at r=0.65r = 0.65, so the sawtooth mode grows by a factor of 1.6 per step and the solution reaches 5×1055\times 10^{5} after 40 steps. Crank–Nicolson replaces 1−4r1 - 4r with the Cayley rational transform GCN(π)=1−2r1+2rG_{\mathrm{CN}}(\pi) = \frac{1 - 2r}{1 + 2r}, which satisfies ∣GCN(θ)∣≤1|G_{\mathrm{CN}}(\theta)| \leq 1 for every r>0r > 0.


Exercise 3

Problem. Implement both exact_startup_poiseuille(y, t, H, mu, rho, dP_dx) (odd-harmonic Fourier sine series) and startup_poiseuille_cn(n_nodes, H, mu, rho, dP_dx, dt, n_steps) (Crank–Nicolson with grids_fvm.solve_tridiagonal) for startup pressure-driven channel flow from rest. Verify agreement to <10−4< 10^{-4} across Fo∈{0.03,0.12,0.80}\mathrm{Fo} \in \{0.03, 0.12, 0.80\} and convergence onto poiseuille_couette_exact as Fo→∞\mathrm{Fo} \to \infty.


Exercise 3: Implement It Yourself — Startup Planar Poiseuille Flow (Exact Series vs Crank-Nicolson)
===================================================================================================
Fo = 0.03 (t =  0.30 s) | u_center = 0.47018 m/s | max |CN - Exact| = 2.337e-05
Fo = 0.12 (t =  1.20 s) | u_center = 1.36846 m/s | max |CN - Exact| = 4.131e-05
Fo = 0.80 (t =  8.00 s) | u_center = 1.99923 m/s | max |CN - Exact| = 1.578e-07

Summary. Because a uniform pressure gradient −dP/dx-dP/dx is symmetric about the channel mid-plane y=H/2y = H/2, all even sine harmonics (n=2,4,…n = 2, 4, \dots) vanish by symmetry. At early times (Fo=0.03\mathrm{Fo} = 0.03), fluid in the inviscid core accelerates uniformly as ucore(t)≈(−dP/dx/ρ) tu_{\mathrm{core}}(t) \approx (-dP/dx/\rho)\,t with thin Stokes wall boundary layers, before merging smoothly into the parabolic Hagen–Poiseuille profile as Fo≳0.5\mathrm{Fo} \gtrsim 0.5.