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 · 17. Project: screening a contraction and slit-die design across scales

Worked solutions to the three exercises of Lecture 17. 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. Check the lubrication result for the pressure drop in a slit whose gap varies as 1−εcos⁡x1 - \varepsilon\cos x, relative to a straight slit, Λ(ε)=12π∫02π(1−εcos⁡x)−3dx=2+ε22(1−ε2)5/2\Lambda(\varepsilon) = \frac{1}{2\pi}\int_0^{2\pi}(1-\varepsilon\cos x)^{-3}dx = \frac{2 + \varepsilon^2}{2(1 - \varepsilon^2)^{5/2}}, for ε∈[0.0,0.65]\varepsilon \in [0.0, 0.65] with the trapezoidal rule. Then compute the smallest pressure gradient at which the assumed gel CARBOPOL_EVP (τy=45 Pa\tau_y = 45\text{ Pa}) flows in a square duct of side 2H=10 mm2H = 10\text{ mm}, Gp,min⁡=τy/(H Bncrit)G_{p,\min} = \tau_y / (H\,\mathrm{Bn}_{\mathrm{crit}}).


Exercise 1: pressure drop of a wavy slit and the minimum pressure gradient of the feed duct
===========================================================================================
Max quadrature against exact (2+eps^2)/[2(1-eps^2)^(5/2)] error : 8.882e-16
Pressure amplification at eps = 0.50                        : 2.3094x straight slit
CARBOPOL_EVP minimum square-runner -dp/dz                   : 16.976 kPa/m (plane-channel formula: 9.000 kPa/m)
<Figure size 1166x429 with 2 Axes>

Figure S17.1. (a) Lubrication pressure drop of a channel with wall amplitude ε\varepsilon divided by that of a straight channel: quadrature against (2+ε2)/[2(1−ε2)5/2](2+\varepsilon^2)/[2(1-\varepsilon^2)^{5/2}]. (b) Smallest pressure gradient that moves CARBOPOL_EVP (assumed parameters): 9.0 kPa/m from the plane-channel formula, 17.0 kPa/m in a square duct.

Explanation. The trapezoidal rule, which converges very quickly for a periodic integrand, reproduces the formula to 9×10−169\times10^{-16}. At ε=0.50\varepsilon = 0.50 the pressure drop is 2.31 times that of a straight slit of the same mean gap, because the local pressure gradient is proportional to the inverse cube of the gap. The square duct needs 17.0 kPa/m to flow, against 9.0 kPa/m from the plane-channel formula τy/H\tau_y/H; the ratio is 1/Bncrit=1.8861/\mathrm{Bn}_{\mathrm{crit}} = 1.886.


Exercise 2

Problem. A design calculation that treats the fluid as Newtonian (Wi=0,τy=0\mathrm{Wi}=0, \tau_y=0) is applied to a wavy slit with ε=0.42\varepsilon = 0.42 that is operated at Wi=2.0\mathrm{Wi} = 2.0 and fed by a square duct at Bn=0.56\mathrm{Bn} = 0.56. Compare its predictions with solve_2d_wavy_contraction_channel and with solve_2d_duct_bingham_admm.


Exercise 2: a Newtonian calculation for a viscoelastic fluid with a yield stress
================================================================================
Largest Pakdel-McKinley number: Newtonian 0.000 against viscoelastic 0.610
Largest N1                    : Newtonian 0.000 against viscoelastic 6.774
Flow rate of the feed duct    : Newtonian 0.5618 against Bingham (Bn=0.56) 2.73e-07 (no flow)
<Figure size 1166x429 with 2 Axes>

Figure S17.2. A Newtonian calculation against the viscoelastic and viscoplastic ones. (a) Largest Pakdel–McKinley number: zero for the Newtonian fluid, 0.61 for the Oldroyd-B fluid, above the assumed limit. (b) Flow rate in the square duct: 0.56 for the Newtonian fluid, zero for the Bingham fluid at Bn=0.56\mathrm{Bn} = 0.56.

Explanation. The Newtonian calculation is wrong in two opposite ways. It predicts no normal stress and a Pakdel–McKinley number of zero in the slit, where the viscoelastic calculation gives N1=6.8N_1 = 6.8 and Mmax⁡=0.61\mathcal{M}_{\max} = 0.61. It also predicts a flow rate of 0.562 in the feed duct, where a Bingham fluid at Bn=0.56\mathrm{Bn} = 0.56, above the critical value 0.530, does not flow.


Exercise 3

Problem. Write find_max_safe_throughput(eps_list, bn_feed, m_allow) in NumPy. The function first checks with solve_2d_duct_bingham_admm that the feed duct flows, and then finds by bisection on Wi∈[0.15,3.20]\mathrm{Wi} \in [0.15, 3.20], with solve_2d_wavy_contraction_channel, the largest Weissenberg number Wi∗(ε)\mathrm{Wi}^*(\varepsilon) for which Mmax⁡(ε,Wi∗)≤Mallow=0.28\mathcal{M}_{\max}(\varepsilon, \mathrm{Wi}^*) \leq \mathcal{M}_{\mathrm{allow}} = 0.28 (an assumed limit), for ε∈{0.20,0.30,0.40}\varepsilon \in \{0.20, 0.30, 0.40\}.


Exercise 3: the largest Weissenberg number within an assumed limit, by bisection
================================================================================
Feed duct (Bn=0.28): Q = 0.1846, unyielded = 21.9%
  Die eps = 0.20 -> largest Wi within the limit = 3.176 (M_max = 0.255 <= 0.28, dP = 3.66)
  Die eps = 0.30 -> largest Wi within the limit = 0.627 (M_max = 0.277 <= 0.28, dP = 1.31)
  Die eps = 0.40 -> largest Wi within the limit = 0.293 (M_max = 0.272 <= 0.28, dP = 1.68)
<Figure size 1166x429 with 2 Axes>

Figure S17.3. (a) Largest Weissenberg number that keeps MM below 0.28, found by bisection, against the wall amplitude. (b) Dimensionless pressure drop at that rate.

Explanation. The feed duct at Bn=0.28\mathrm{Bn} = 0.28 flows, with a flow rate of 0.185 and 22 % of its cross-section unyielded. The largest admissible Weissenberg number falls quickly with the amplitude of the constriction: it is 0.63 for ε=0.30\varepsilon = 0.30 and 0.29 for ε=0.40\varepsilon = 0.40. For ε=0.20\varepsilon = 0.20 the limit is not reached within the range searched (Mmax⁡=0.255\mathcal{M}_{\max} = 0.255 at Wi=3.18\mathrm{Wi} = 3.18). The calculation uses methods from all six parts of the book. The limit of 0.28 and the material parameters are assumed, so the numbers illustrate the procedure and are not a design.