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.

9. Yield-stress fluids: exact Bingham solutions and the error of regularization

Toothpaste, cement paste, waxy crude oil and polymer gels flow only when the shear stress exceeds a yield stress. In the Bingham and Herschel–Bulkley models the rate of strain is zero below the yield stress, so the apparent viscosity is infinite there and a general flow solver cannot use the models directly. A common remedy is the regularization of Papanastasiou (1987), τ(γ˙)=ηpγ˙+τy(1−e−mγ˙)\tau(\dot{\gamma}) = \eta_p\dot{\gamma} + \tau_y(1 - e^{-m\dot{\gamma}}), which is smooth at zero shear rate.

The regularized fluid has no yield stress: below τy\tau_y it flows slowly, at a rate of order 1/m1/m, where the Bingham fluid is at rest. Increasing mm reduces this error and makes the equations stiffer. This lecture derives the exact solutions of Bingham flow in a channel and in a pipe, and measures the error of the regularization against them.

Learning objectives

  1. Derive the exact velocity profiles, plug widths and flow rates of a Bingham fluid in a plane channel and in a pipe (viscoplastic_admm.buckingham_reiner_exact_1d).

  2. Compare the regularized profiles of viscoplastic_admm.papanastasiou_1d_channel with the exact ones for mm between 10 and 1000.

  3. Show that below the yield stress the regularized model flows at the rate τ/(ηp+mτy)\tau / (\eta_p + m\tau_y), which is of order 1/m1/m.

  4. Relate the error of the flow rate to the stiffness of the regularized equations as mm increases.

Time: about 60 min

1. Exact Bingham flow in a channel and in a pipe

A Bingham material does not deform where the magnitude of the shear stress is at most the yield stress, ∣τ∣≤τy\lvert\tau\rvert \leq \tau_y, and flows with the plastic viscosity ηp\eta_p where it is larger:

{γ˙=0,∣τ∣≤τyτ=τysign⁡(γ˙)+ηpγ˙,∣τ∣>τy\begin{cases} \dot{\gamma} = 0, & \lvert\tau\rvert \leq \tau_y \\ \tau = \tau_y\operatorname{sign}(\dot{\gamma}) + \eta_p\dot{\gamma}, & \lvert\tau\rvert > \tau_y \end{cases}

Under a pressure gradient G=−dp/dz>0G = -dp/dz > 0 the momentum balance gives a shear stress that is linear in the transverse coordinate: ∣τ(y)∣=G∣y∣\lvert\tau(y)\rvert = G\lvert y\rvert in a plane channel −H≤y≤H-H \le y \le H, and τ(r)=12Gr\tau(r) = \frac{1}{2}G r in a pipe of radius RR. Let ξ=τy/τw\xi = \tau_y / \tau_w be the ratio of the yield stress to the wall stress. For ξ≥1\xi \geq 1 there is no flow. For 0≤ξ<10 \leq \xi < 1 the material near the centre, ∣y∣≤yp=ξH\lvert y\rvert \leq y_p = \xi H or r≤rp=ξRr \leq r_p = \xi R, moves as a rigid plug:

GeometryWall stress τw\tau_wHalf-width or radius of the plugFlow rate Q(ξ)/QNewtonianQ(\xi) / Q_{\mathrm{Newtonian}}
Plane channel [−H,H][-H, H]GHG Hyp=min⁡(H,τy/G)y_p = \min(H, \tau_y/G)1−32ξ+12ξ31 - \frac{3}{2}\xi + \frac{1}{2}\xi^3
Pipe [0,R][0, R]12GR\frac{1}{2} G Rrp=min⁡(R,2τy/G)r_p = \min(R, 2\tau_y/G)1−43ξ+13ξ41 - \frac{4}{3}\xi + \frac{1}{3}\xi^4 (Buckingham–Reiner)

Demonstration 1: exact Bingham profiles in a plane channel and in a pipe
========================================================================
Planar slit (tau_w=2.0 > tau_y=0.7): plug y_p = 0.350, flux Q = 0.66192
Planar slit (tau_w=0.6 < tau_y=0.7): plug y_p = 1.000, flux Q = 0.00000 (no flow)
Circular pipe (tau_w=2.0 > tau_y=0.7): plug r_p = 0.350, flux Q = 0.84562
<Figure size 1122x440 with 2 Axes>

Figure 9.1. Exact Bingham solutions. (a) Velocity profile for a wall stress above the yield stress, with its plug (shaded), and zero velocity for a wall stress below it. (b) Flow rate divided by the Newtonian value against the ratio of yield stress to wall stress, for a plane channel and a pipe; both are zero for a ratio of 1 or more.

What Demonstration 1 shows. In the Bingham model the edge of the plug, ∣y∣=yp\lvert y\rvert = y_p, is where du/dydu/dy reaches zero with the finite curvature −G/ηp-G/\eta_p, and the flow rate Q(ξ)Q(\xi) is exactly zero for ξ≥1\xi \geq 1.


2. The Papanastasiou regularization

To obtain a stress that is a smooth function of the shear rate, which a general flow solver requires, Papanastasiou (1987) introduced a parameter m>0m > 0 with the dimension of time:

τPap(γ˙)=ηpγ˙+τy(1−e−mγ˙)(γ˙≥0),lim⁡γ˙→0+τPap(γ˙)γ˙=ηp+mτy<∞\tau_{\mathrm{Pap}}(\dot{\gamma}) = \eta_p\dot{\gamma} + \tau_y\bigl(1 - e^{-m\dot{\gamma}}\bigr) \quad (\dot{\gamma} \geq 0), \qquad \lim_{\dot{\gamma} \to 0^+} \frac{\tau_{\mathrm{Pap}}(\dot{\gamma})}{\dot{\gamma}} = \eta_p + m\tau_y < \infty

The regularized stress τPap(γ˙)\tau_{\mathrm{Pap}}(\dot{\gamma}) increases monotonically from zero, with the finite initial slope ηp+mτy\eta_p + m\tau_y. The shear rate in a channel is then zero at the centreline alone, and the rigid plug is replaced by a region in which the velocity profile is curved.


Demonstration 2: regularized profiles against the exact plug for several values of m
====================================================================================
m =    8.0 | max |u_Pap - u_exact| = 0.05000 | max shear rate inside the core = 0.16452
m =   30.0 | max |u_Pap - u_exact| = 0.01333 | max shear rate inside the core = 0.06473
m =  150.0 | max |u_Pap - u_exact| = 0.00267 | max shear rate inside the core = 0.01658
m =  800.0 | max |u_Pap - u_exact| = 0.00050 | max shear rate inside the core = 0.00338
<Figure size 1122x440 with 2 Axes>

Figure 9.2. Papanastasiou regularization in a plane channel for four values of mm, against the exact Bingham solution. (a) Velocity. (b) Shear rate: the regularized model shears inside the plug (shaded).

What Demonstration 2 shows. Even at m=150m = 150 the regularized solution of papanastasiou_1d_channel has a non-zero strain rate everywhere in the core [−yp,+yp][-y_p, +y_p]. A yield surface defined by a threshold γ˙<ϵ\dot{\gamma} < \epsilon then depends on the threshold and on mm (Frigaard and Nouar, 2005).


3. Creep of the regularized model below the yield stress

The most serious error of the regularization appears when the wall stress is below the yield stress. Consider a channel loaded to τw=0.8 τy\tau_w = 0.8\,\tau_y: the Bingham material does not move, u(y)=0u(y) = 0. In the regularized model the shear rates are small, the expansion 1−e−mγ˙≈mγ˙1 - e^{-m\dot{\gamma}} \approx m\dot{\gamma} applies, and the material flows as a Newtonian fluid of viscosity ηp+mτy\eta_p + m\tau_y:

γ˙Pap(y)≈G∣y∣ηp+mτy=O(m−1),uPap(0)≈GH22(ηp+mτy)(for GH=0.8τy<τy)\dot{\gamma}_{\mathrm{Pap}}(y) \approx \frac{G\lvert y\rvert}{\eta_p + m\tau_y} = \mathcal{O}(m^{-1}), \qquad u_{\mathrm{Pap}}(0) \approx \frac{G H^2}{2(\eta_p + m\tau_y)} \quad (\text{for } G H = 0.8\tau_y < \tau_y)

Demonstration 3: creep below the yield stress at a wall stress of 0.8 tau_y
===========================================================================
Exact Bingham velocity at tau_w = 0.8*tau_y : 0.0 (identically zero)
Papanastasiou creep u(0) at m = 20          : 2.9520e-02 | at m = 10^4: 5.9748e-05
Asymptotic log-log slope d(ln u_creep)/d(ln m): -0.9978 (exact theory = -1.0000)
<Figure size 814x451 with 1 Axes>

Figure 9.3. Wall shear rate and centreline velocity of the Papanastasiou model at a wall stress below the yield stress, against mm. Both decrease as 1/m1/m; the exact Bingham values are zero.

What Demonstration 3 shows. The creep is of order 1/m1/m, so it could be made negligible with a very large mm. Section 4 shows the cost: in a flow solver, the ratio of the largest to the smallest viscosity is ηmax⁡/ηmin⁡=1+mτy/ηp\eta_{\max}/\eta_{\min} = 1 + m\tau_y/\eta_p.


4. Error of the flow rate against stiffness

Where the material should be unyielded (γ˙≈0\dot{\gamma} \approx 0), the slope of the regularized stress, which enters the Jacobian of a Newton iteration, is dτPap/dγ˙∣0=ηp+mτyd\tau_{\mathrm{Pap}}/d\dot{\gamma}\big|_0 = \eta_p + m\tau_y. In the yielded layers near the walls the slope is about ηp\eta_p. The ratio of the two grows linearly with mm:

κconstit(m)=(dτPap/dγ˙)γ˙=0(dτPap/dγ˙)γ˙→∞=1+m τyηp\kappa_{\mathrm{constit}}(m) = \frac{(d\tau_{\mathrm{Pap}}/d\dot{\gamma})_{\dot{\gamma}=0}}{(d\tau_{\mathrm{Pap}}/d\dot{\gamma})_{\dot{\gamma}\to\infty}} = 1 + \frac{m\,\tau_y}{\eta_p}

Demonstration 4: error of the flow rate against stiffness
=========================================================
m =    5.0 -> relative flux err =  22.45%, stiffness ratio =     6.0
m = 1000.0 -> relative flux err =  0.086%, stiffness ratio =  1001.0
Asymptotic (error * stiffness) product on large m: [0.9, 0.891, 0.88, 0.865]
<Figure size 814x451 with 2 Axes>

Figure 9.4. Relative error of the flow rate of the Papanastasiou model against the ratio of its largest to its smallest viscosity, 1+mτy/ηp1 + m\tau_y/\eta_p; the colour is log⁡10m\log_{10} m. The error falls only as fast as the ratio grows.

Inside the algorithm

The function viscoplastic_admm.papanastasiou_1d_channel solves, at each point, f(γ˙)=ηpγ˙+τy(1−e−mγ˙)−∣τ(y)∣=0f(\dot{\gamma}) = \eta_p\dot{\gamma} + \tau_y(1 - e^{-m\dot{\gamma}}) - \lvert\tau(y)\rvert = 0 with Newton’s method. The function ff is increasing and concave: f(0)=−∣τ∣≤0f(0) = -\lvert\tau\rvert \leq 0, f′(γ˙)=ηp+mτye−mγ˙>0f'(\dot{\gamma}) = \eta_p + m\tau_y e^{-m\dot{\gamma}} > 0 and f′′(γ˙)=−m2τye−mγ˙<0f''(\dot{\gamma}) = -m^2\tau_y e^{-m\dot{\gamma}} < 0. The iteration starts from max⁡(∣τ∣/(ηp+mτy), (∣τ∣−τy)/ηp)\max\bigl(\lvert\tau\rvert/(\eta_p + m\tau_y),\, (\lvert\tau\rvert - \tau_y)/\eta_p\bigr), which is a lower bound of the root, and converges to rounding error in fewer than 8 iterations for any value of mm.

Check against the package

The cell below prints the source of papanastasiou_1d_channel, repeats the calculation with a vectorized Newton iteration and Simpson’s rule in NumPy, and checks that the residual of the equation is below 1e-14 at every point and that the profile approaches that of buckingham_reiner_exact_1d as mm increases.


Inside the algorithm: the root solver of the regularized model
==============================================================
def papanastasiou_1d_channel(
    y_grid: np.ndarray,
    dpdz_neg: float = 2.0,
    H_half: float = 1.0,
    tau_y: float = 0.5,
    eta_p: float = 1.0,
    m_reg: float = 100.0,
) -> dict:
    """Velocity profile of the Papanastasiou-regularized Bingham model in a plane channel, from a root solve at each point."""
    y = np.asarray(y_grid, dtype=float).ravel()
    if H_half <= 0.0 or eta_p <= 0.0 or tau_y < 0.0 or m_reg <= 0.0 or dpdz_neg < 0.0:
        raise ValueError("Invalid parameters for papanastasiou_1d_channel.")

    tau_abs = float(dpdz_neg) * np.abs(y)
    gdot = np.zeros_like(y)
    # Solve eta_p * g + tau_y * (1 - exp(-m * g)) == tau_abs via safeguarded Newton on each point:
    for idx, t_val in enumerate(tau_abs):
        if t_val <= 1e-15:
            gdot[idx] = 0.0
            continue
        g = max(t_val / (eta_p + tau_y * m_reg), max(0.0, (t_val - tau_y) / eta_p))
        for _ in range(40):
            em = math.exp(-min(700.0, m_reg * g))
            f_val = eta_p * g + tau_y * (1.0 - em) - t_val
            df = eta_p + tau_y * m_reg * em
            step = f_val / df
            g = max(0.0, g - step)
            if abs(step) <= 1e-14 * (1.0 + g):
                break
        gdot[idx] = g

    # Integrate du/dy = -sign(y) * gdot(y) inward from walls y = +/- H_half using dense grid interpolation:
    y_dense = np.linspace(0.0, H_half, 401)
    tau_d = float(dpdz_neg) * y_dense
    gd_dense = np.zeros_like(y_dense)
    for idx, t_val in enumerate(tau_d):
        g = max(t_val / (eta_p + tau_y * m_reg), max(0.0, (t_val - tau_y) / eta_p))
        for _ in range(35):
            em = math.exp(-min(700.0, m_reg * g))
            g = max(0.0, g - (eta_p * g + tau_y * (1.0 - em) - t_val) / (eta_p + tau_y * m_reg * em))
        gd_dense[idx] = g
    # Cumulative integral from wall H_half inward:
    dy_d = y_dense[1] - y_dense[0]
    u_from_center = np.zeros_like(y_dense)
    u_from_center[:-1] = np.cumsum(0.5 * (gd_dense[:-1] + gd_dense[1:])[::-1])[::-1] * dy_d
    u_prof = np.interp(np.abs(y), y_dense, u_from_center)

    # Sub-yield creep velocity when wall stress tau_w = 0.8 * tau_y (exact Bingham velocity == 0.0):
    g_creep_wall = (0.8 * tau_y) / (eta_p + m_reg * tau_y) if tau_y > 0.0 else 0.0
    return {
        "y": y,
        "velocity": u_prof,
        "apparent_shear_rate": gdot,
        "subyield_creep_rate_at_0p8_tauy": float(g_creep_wall),
    }

Max constitutive residual = 2.220e-16 | max |vectorized - package| = 1.804e-16

Exercises

Worked solutions are in 09_solutions.ipynb. The cell below the list is a short self-check to start from.

  1. Verify a result. Check the Buckingham–Reiner flow rate in a pipe, Qpipe=πGR48ηp(1−43ξ+13ξ4)Q_{\mathrm{pipe}} = \frac{\pi G R^4}{8\eta_p}(1 - \frac{4}{3}\xi + \frac{1}{3}\xi^4) with ξ\xi the ratio of the yield stress to the wall stress, by numerical integration of 2π∫0Rr u(r) dr2\pi\int_0^R r\,u(r)\,dr for ξ∈{0.0,0.25,0.5,0.8,1.05}\xi \in \{0.0, 0.25, 0.5, 0.8, 1.05\}. Compare the fraction of the cross-section occupied by the plug in a pipe and in a plane channel at the same ξ\xi.

  2. Find how it fails. A layer of gel between vertical walls (H=0.01 mH = 0.01\text{ m}, τy=45 Pa\tau_y = 45\text{ Pa}, ηp=12 Pa⋅s\eta_p = 12\text{ Pa}\cdot\text{s}) is loaded by its own weight, ρg=3600 N/m3\rho g = 3600\text{ N/m}^3, so that the wall stress is τw=36 Pa=0.8 τy\tau_w = 36\text{ Pa} = 0.8\,\tau_y. A Bingham fluid does not move under this load. Compute the displacement of the centreline after 2 h=7200 s2\text{ h} = 7200\text{ s} that the Papanastasiou regularization predicts for m∈{10,50,250} sm \in \{10, 50, 250\}\text{ s}.

  3. Implement it yourself. Write herschel_bulkley_planar_exact(y_grid, dpdz_neg, H_half, tau_y, K_hb, n_hb) in NumPy from the exact velocity profile of a Herschel–Bulkley fluid, ∣τ∣=τy+Kγ˙n\lvert\tau\rvert = \tau_y + K\dot{\gamma}^n, in a plane channel. Check that (1) it agrees with buckingham_reiner_exact_1d for n=1n = 1, (2) the velocity is zero when GH≤τyG H \leq \tau_y, and (3) for the assumed parameters CARBOPOL_EVP (τy=45 Pa,K=12 Pa⋅sn,n=0.42\tau_y = 45\text{ Pa}, K = 12\text{ Pa}\cdot\text{s}^n, n = 0.42) the plug has the expected width.


Self-check for the exercises
============================
All checks passed.