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 · 10. The augmented Lagrangian method for Bingham flow in a square duct

Worked solutions to the three exercises of Lecture 10. 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. A region with rounded corners of radius RR inside a square duct of half-width HH has the area A=4H2−(4−π)R2A = 4H^2 - (4 - \pi)R^2 and the perimeter P=8H−2(4−π)RP = 8H - 2(4 - \pi)R. Maximize Φ(R)=AHP=4H2−(4−π)R2H [8H−2(4−π)R]\Phi(R) = \frac{A}{H P} = \frac{4H^2 - (4 - \pi)R^2}{H\,[8H - 2(4 - \pi)R]} over 0≤R≤H0 \le R \le H to obtain R∗=2H2+πR_* = \frac{2H}{2 + \sqrt{\pi}} and Bncrit=22+π≈0.530159\mathrm{Bn}_{\mathrm{crit}} = \frac{2}{2 + \sqrt{\pi}} \approx 0.530159, and explain why the square (R=0R=0) and the inscribed circle (R=HR=H) both give Φ=0.50\Phi = 0.50.


Exercise 1: the critical Bingham number of a square duct
========================================================
Square boundary (R = 0)  ratio A/(H*P) = 0.500000
Inscribed circle (R = H) ratio A/(H*P) = 0.500000
Optimal Mosolov arc R*   = 0.530000 (exact = 0.530159) -> Bn_crit = 0.53015890 (exact = 0.53015890)
<Figure size 1078x440 with 2 Axes>

Figure S10.1. (a) Area of a square with rounded corners divided by HH times its perimeter, against the corner radius; the maximum 0.5302 is at R=0.530HR = 0.530H. (b) The corresponding plug boundary inside the duct.

Explanation. A region of area AA and perimeter PP can move only if the pressure force G AG\,A exceeds the yield force τyP\tau_y P, that is if Bn=τyGH<AHP\mathrm{Bn} = \frac{\tau_y}{G H} < \frac{A}{H P}. The flow stops when no region can move, so the critical Bingham number is the largest value of A/(HP)A/(HP). For the square and for the inscribed circle the ratio is 0.5. A square with rounded corners has a larger ratio, with the maximum 22+π=0.5302\frac{2}{2 + \sqrt{\pi}} = 0.5302 at R∗=0.530HR_* = 0.530H, 6 % above 0.5. The search over a grid of radii gives 0.53015890, in agreement with the formula to eight digits.


Exercise 2

Problem. For H=1.0H = 1.0, τy=0.58\tau_y = 0.58, ηp=1.0\eta_p = 1.0 and G=1.0G = 1.0 (Bn=0.58\mathrm{Bn} = 0.58), compare the flow rate estimated from the plane-channel formula, 2HQ1D2 H Q_{\mathrm{1D}}, with the result of the two-dimensional solver for the square duct (r_aug=2.0). Compute the smallest pressure gradient at which the duct flows, Gmin⁡=τy/(H Bncrit)G_{\min} = \tau_y / (H\,\mathrm{Bn}_{\mathrm{crit}}), and check that there is flow at G=1.35G = 1.35.


Exercise 2: the plane-channel estimate for a blocked square duct
================================================================
Plane-channel formula at G=1.0 (Bn=0.58)      : Q = 0.30341
Square duct, 2-D solver, at G=1.0 (Bn=0.58)   : Q = 0.00000, unyielded = 100.0%
Smallest pressure gradient with flow, G_min   : 1.0940 | restarted Q at G=1.35 = 0.05136
<Figure size 1078x418 with 3 Axes>

Figure S10.2. (a) Flow rate from the plane-channel formula, from the square-duct solver at the same pressure gradient (zero), and from the solver at G=1.35G = 1.35. (b) Velocity in the duct at G=1.35G = 1.35.

Explanation. A plane channel flows at any Bingham number below 1, and its formula predicts a flow rate of 0.303 here. In the square duct the side walls carry part of the load, the critical Bingham number is 0.530, and at Bn=0.58\mathrm{Bn} = 0.58 the solver gives no flow: the whole cross-section is unyielded. Flow starts at Gmin⁡=1.094G_{\min} = 1.094, and at G=1.35G = 1.35 the flow rate is 0.051. An estimate from the plane-channel formula predicts flow here in a duct that is blocked.


Exercise 3

Problem. Write solve_1d_channel_bingham_admm(nx, H_half, dpdz_neg, tau_y, eta_p, r_aug), the augmented Lagrangian method for a plane channel without regularization: a Poisson problem solved with the discrete sine transform, followed by the shrinkage step for the strain rate. Compare the velocity and the flow rate with buckingham_reiner_exact_1d for τw=2.0\tau_w = 2.0 and τy=0.7\tau_y = 0.7, and check that the velocity is zero for τw=0.8 τy\tau_w = 0.8\,\tau_y.


Exercise 3: the augmented Lagrangian method in a plane channel
==============================================================
Yielded test   : max |u_ADMM - u_exact| = 3.5947e-11, rel flux err = 3.2733e-05
Sub-yield test : max |u_ADMM| at tau_w = 0.8*tau_y = 2.439e-17
<Figure size 1078x418 with 2 Axes>

Figure S10.3. One-dimensional augmented Lagrangian solver. (a) Velocity against the exact Bingham solution, and zero velocity at τw=0.8τy\tau_w = 0.8\tau_y. (b) The variable dd is zero across the plug (shaded).

Explanation. Each iteration solves a linear problem with the constant operator −(ηp+r)∇2-(\eta_p + r)\nabla^2 and then applies the shrinkage step, which sets the strain rate to exactly zero wherever the stress is below the yield stress. The velocity agrees with the exact solution to 4×10−114\times10^{-11} at the grid points, and the flow rate to a relative error of 3×10−53\times10^{-5}. Below the yield stress the largest velocity is 2×10−172\times10^{-17}, in contrast with the creep of order 1/m1/m of the regularized model of Lecture 9.