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.

12. Start-up of viscoelastic channel flow: the Waters–King solution and Brownian configuration fields

When a pressure gradient is applied suddenly to a Newtonian fluid at rest in a channel, the centreline velocity rises monotonically to its steady value. In a polymer solution with a large elasticity number, El=λη0/(ρH2)\mathrm{El} = \lambda\eta_0/(\rho H^2), it overshoots the steady value and oscillates before it settles. Waters and King (1970) solved this problem exactly for the Oldroyd-B fluid, and their solution is a demanding test of a time-dependent viscoelastic solver.

The second subject of the lecture is the coupling of a flow calculation to a stochastic simulation of the polymer, without a constitutive equation. If each cell has its own independent ensemble (the CONNFFESSIT approach of Laso and Öttinger, 1993), the statistical error of the stress differs from cell to cell, and its derivative, which enters the momentum equation, is very noisy. The Brownian configuration fields of Hulsen, van Heel and van den Brule (1997) use the same random numbers in all cells, which makes the stress smooth in space.

Learning objectives

  1. Write the start-up of plane Poiseuille flow in dimensionless form, with the elasticity number El=Wi/Re=λη0/(ρH2)\mathrm{El} = \mathrm{Wi}/\mathrm{Re} = \lambda\eta_0/(\rho H^2) and the viscosity ratio βs=ηs/η0\beta_s = \eta_s/\eta_0.

  2. Evaluate the Waters–King solution and find when its modes oscillate.

  3. Compare a finite-volume solver of the Oldroyd-B equations with the Waters–King solution.

  4. Compare Brownian configuration fields with independent ensembles, for Hookean and for FENE dumbbells.

Time: about 60 min

1. Start-up of channel flow and the Waters–King solution

Consider the flow u=(u(y,t),0,0)\mathbf{u} = (u(y,t), 0, 0) of an Oldroyd-B fluid in a plane channel, −H≤y≤H-H \le y \le H, which starts from rest (u(y,0)=0u(y,0)=0, τp(y,0)=0\boldsymbol{\tau}_p(y,0)=\mathbf{0}) when the pressure gradient −∂p/∂x=Gp-\partial p/\partial x = G_p is applied:

ρ∂u∂t=Gp+ηs∂2u∂y2+∂τp,xy∂y,τp,xy+λ∂τp,xy∂t=ηp∂u∂y\rho \frac{\partial u}{\partial t} = G_p + \eta_s \frac{\partial^2 u}{\partial y^2} + \frac{\partial \tau_{p,xy}}{\partial y}, \qquad \tau_{p,xy} + \lambda \frac{\partial \tau_{p,xy}}{\partial t} = \eta_p \frac{\partial u}{\partial y}

In this parallel flow the convective terms of the equation for τp,xy\tau_{p,xy} vanish (u ∂xτp,xy=0u\,\partial_x \tau_{p,xy} = 0), so that the problem for the velocity and the shear stress is linear. The normal stress follows from τp,xx+λ∂tτp,xx=2λτp,xy ∂yu\tau_{p,xx} + \lambda \partial_t \tau_{p,xx} = 2\lambda \tau_{p,xy}\,\partial_y u and is quadratic in the shear rate.

With yy scaled by HH, uu by the steady centreline velocity U∞=GpH2/(2η0)U_\infty = G_p H^2/(2\eta_0), where η0=ηs+ηp\eta_0 = \eta_s + \eta_p, and tt by the viscous time τν=ρH2/η0\tau_\nu = \rho H^2/\eta_0, the problem contains two dimensionless groups, which do not depend on GpG_p:

El=WiRe=λη0ρH2,βs=ηsη0∈[0,1]\mathrm{El} = \frac{\mathrm{Wi}}{\mathrm{Re}} = \frac{\lambda \eta_0}{\rho H^2}, \qquad \beta_s = \frac{\eta_s}{\eta_0} \in [0, 1]

Waters and King (1970) expanded the difference between the steady and the current velocity in modes that vanish at the walls, w(y,t)=u∞(y)−u(y,t)=∑n=0∞Wn(t)cos⁡(kny)w(y,t) = u_\infty(y) - u(y,t) = \sum_{n=0}^{\infty} W_n(t)\cos(k_n y) with kn=(2n+1)π/(2H)k_n = (2n+1)\pi/(2H). Eliminating τp,xy\tau_{p,xy} gives the equation of a damped oscillator for each mode:

ρλW¨n+(ρ+ληskn2)W˙n+η0kn2Wn=0\rho\lambda \ddot{W}_n + \left(\rho + \lambda\eta_s k_n^2\right)\dot{W}_n + \eta_0 k_n^2 W_n = 0

A mode oscillates when its discriminant Δn=(ρ+ληskn2)2−4ρλη0kn2\Delta_n = (\rho + \lambda\eta_s k_n^2)^2 - 4\rho\lambda\eta_0 k_n^2 is negative. Shear waves then travel between the walls with a speed of order G0/ρ=ηp/(ρλ)\sqrt{G_0/\rho} = \sqrt{\eta_p/(\rho\lambda)}, and the centreline velocity overshoots its steady value and oscillates with decreasing amplitude.


Demonstration 1: the Waters-King solution for several elasticity numbers
========================================================================
El = 0.00 | peak u(0,t)/U_inf = 1.0000 | post-peak min/U_inf = 1.0000
El = 0.35 | peak u(0,t)/U_inf = 1.1923 | post-peak min/U_inf = 0.9795
El = 1.20 | peak u(0,t)/U_inf = 1.8394 | post-peak min/U_inf = 0.7724
El = 4.00 | peak u(0,t)/U_inf = 2.8453 | post-peak min/U_inf = 0.3612
BOGER_PIB at H = 1.0 mm: El = 1516.9 (elasticity dominates inertia)
<Figure size 1188x451 with 2 Axes>

Figure 12.1. Exact start-up of plane Poiseuille flow of an Oldroyd-B fluid. (a) Centreline velocity divided by its steady value for four elasticity numbers. (b) Velocity profiles at five times for El=1.2\mathrm{El} = 1.2, with the steady parabola.

2. A finite-volume solver on a staggered grid

Demonstration 1 shows how elasticity changes the start-up of the flow. At El=0\mathrm{El}=0 the velocity obeys a diffusion equation, and the centreline velocity cannot exceed its steady value, u(0,t)≤U∞u(0,t) \leq U_\infty. For El≳0.35\mathrm{El} \gtrsim 0.35 at βs=0.10\beta_s = 0.10 the equations behave as a damped wave equation, and the velocity overshoots the steady profile before it settles.

The function viscoelastic_fvm_2d.solve_1d_channel_viscoelastic_startup solves the same problem numerically, also for models that are not linear, on a staggered grid, which avoids a decoupling of velocity and stress between neighbouring points:

  • The velocity ujnu_j^n is stored at the Ny+1N_y + 1 cell faces yj=−H+jΔyy_j = -H + j\Delta y, with u0=uNy=0u_0 = u_{N_y} = 0 at the walls.

  • The polymer stresses (τxy,τxx,τyy)j+1/2n(\tau_{xy}, \tau_{xx}, \tau_{yy})_{j+1/2}^n are stored at the NyN_y cell centres. The velocity gradient γ˙j+1/2=(uj+1−uj)/Δy\dot{\gamma}_{j+1/2} = (u_{j+1} - u_j)/\Delta y and the derivative of the stress (∂yτxy)j=(τxy,j+1/2−τxy,j−1/2)/Δy(\partial_y \tau_{xy})_j = (\tau_{xy,j+1/2} - \tau_{xy,j-1/2})/\Delta y are then central differences of second order.

  • The solvent term ηs∂yyun+1\eta_s \partial_{yy} u^{n+1} is implicit and is inverted with the discrete sine transform, which removes the restriction Δt≲ρΔy2/ηs\Delta t \lesssim \rho \Delta y^2 / \eta_s of an explicit scheme.


Demonstration 2: the finite-volume solver against the Waters-King solution
==========================================================================
Transient centreline relative L2 error against Waters-King : 0.00079
Final polymer shear stress max error |tau_xy - exact|  : 0.00673
Final normal stress difference max error |N1 - exact|  : 0.00290
<Figure size 1188x440 with 2 Axes>

Figure 12.2. The finite-volume solver against the exact solution. (a) Centreline velocity; the relative error is 0.08 %. (b) Polymer shear stress and first normal stress difference across the channel against the steady values.

3. Coupling to stochastic simulations: configuration fields and independent ensembles

For models such as the FENE dumbbell no exact constitutive equation exists, and a closure such as FENE-P introduces errors in fast start-up flows (Lecture 6). A micro–macro method avoids the constitutive equation: it simulates NfN_f connector vectors in each cell of the flow calculation and passes the Kramers stress τp=G0(⟨Q⊗F(Q)⟩−I)\boldsymbol{\tau}_p = G_0(\langle \mathbf{Q}\otimes\mathbf{F}(\mathbf{Q})\rangle - \mathbf{I}) to the momentum equation. There are two ways to choose the random numbers:

  1. Independent ensembles (CONNFFESSIT; Laso and Öttinger, 1993). Each cell jj has its own ensemble with its own random increments dWj,k(t)d\mathbf{W}_{j,k}(t). The statistical errors of neighbouring cells, δτxy,j∼Nf−1/2\delta\tau_{xy,j} \sim N_f^{-1/2}, are then uncorrelated, and the error of the derivative ∂yτxy≈(τxy,j+1−τxy,j)/Δy\partial_y \tau_{xy} \approx (\tau_{xy,j+1} - \tau_{xy,j})/\Delta y is of order Nf−1/2/ΔyN_f^{-1/2}/\Delta y, which grows as the grid is refined.

  2. Brownian configuration fields (Hulsen, van Heel and van den Brule, 1997). The ensemble consists of NfN_f fields Qk(y,t)\mathbf{Q}_k(y, t), each uniform in yy at the start and each driven by a random increment dWk(t)d\mathbf{W}_k(t) that is the same at all positions (∂ydWk=0\partial_y d\mathbf{W}_k = \mathbf{0}):

dQk(y,t)=[L(y,t)Qk(y,t)−12λF ⁣(Qk(y,t))]dt+1λ dWk(t)d\mathbf{Q}_k(y, t) = \left[\mathbf{L}(y, t)\mathbf{Q}_k(y, t) - \frac{1}{2\lambda}\mathbf{F}\!\big(\mathbf{Q}_k(y,t)\big)\right]dt + \frac{1}{\sqrt{\lambda}}\,d\mathbf{W}_k(t)

Because neighbouring cells receive the same random increment, a field Qk(y,t)\mathbf{Q}_k(y,t) varies in space only through the velocity gradient ∂yu(y,t)\partial_y u(y,t), which is smooth. The noise of the derivative of the stress is smaller by more than a factor of ten.


Demonstration 3: configuration fields against independent ensembles of the same size
====================================================================================
BCF Hookean centreline error against exact PDE     : 0.0466
BCF spatial stress curvature roughness ||d2tau||: 0.0299
CONNFFESSIT spatial stress roughness ||d2tau||  : 17.3791
Roughness suppression factor (CONNFFESSIT / BCF): 581.4x
<Figure size 1188x440 with 2 Axes>

Figure 12.3. Micro–macro start-up with 450 Hookean dumbbells per cell. (a) Centreline velocity with configuration fields and with independent ensembles, against the Oldroyd-B solver. (b) Polymer shear stress at the end: smooth with configuration fields, noisy with independent ensembles.

4. Start-up with FENE configuration fields

For Hookean dumbbells the configuration fields reproduce the Oldroyd-B model, for which a constitutive equation exists. The method becomes useful when the linear spring is replaced by the FENE spring, F(Q)=Q/(1−∥Q∥2/b)\mathbf{F}(\mathbf{Q}) = \mathbf{Q}/(1 - \lVert\mathbf{Q}\rVert^2/b). The fields are then advanced with the semi-implicit step of Lecture 3 (brownian_chains.solve_fene_cubic_radial), which keeps ∥Qk∥<b\lVert\mathbf{Q}_k\rVert < \sqrt{b} for any time step.

With a large pressure gradient (Gp=3.2G_p = 3.2) the shear rate at the walls exceeds λ−1\lambda^{-1}:

  • Near the walls the finite extensibility limits the stretch of the dumbbells, and the polymer viscosity is lower than at rest, ηp(γ˙)<ηp,0\eta_p(\dot{\gamma}) < \eta_{p,0}.

  • With less resistance at the walls, the steady velocity in the centre is higher than for the Oldroyd-B fluid, and the overshoot is smaller. No closure approximation is involved.


Demonstration 4: FENE configuration fields for several values of b
==================================================================
Hookean BCF (b -> inf) : u_c(t_end) = 1.6399, wall |tau_xy| = 2.3548
FENE BCF (b =  12.0)   : u_c(t_end) = 2.4659, wall |tau_xy| = 2.3403
FENE BCF (b =  30.0)   : u_c(t_end) = 2.1479, wall |tau_xy| = 2.1724
FENE BCF (b = 100.0)   : u_c(t_end) = 1.8609, wall |tau_xy| = 2.1629
<Figure size 1188x440 with 2 Axes>

Figure 12.4. Configuration fields with FENE dumbbells for three values of bb, and with Hookean dumbbells. (a) Centreline velocity. (b) Velocity profiles at the end of the run.

Inside the algorithm: the modes of the Waters–King solution

The cell below prints the source of constants_benchmarks.waters_king_startup_poiseuille and evaluates the solution independently in NumPy, to check each kind of mode: overdamped (Δm>0\Delta_m > 0), critically damped (Δm=0\Delta_m = 0) and oscillating (Δm<0\Delta_m < 0).

Check against the package

For each mode km=(2m+1)π/(2H)k_m = (2m+1)\pi/(2H) the initial amplitude wm(0)w_m(0) is the Fourier coefficient of the steady profile u∞(y)u_\infty(y). Because the polymer stress is zero at the start, the initial rate of change is w˙m(0)=−(η0km2/ρ) wm(0)\dot{w}_m(0) = -(\eta_0 k_m^2/\rho)\,w_m(0); the cell checks this with assert np.allclose(..., atol=1e-13). For large kmk_m, and ηs>0\eta_s > 0, ληskm2≫ρ\lambda\eta_s k_m^2 \gg \rho: the solvent viscosity damps the modes of short wavelength, while the modes of long wavelength oscillate.


Inside the algorithm: the modes of the Waters-King solution
===========================================================
def waters_king_startup_poiseuille(
    y_grid: np.ndarray,
    t_vals: np.ndarray,
    dpdx_neg: float = 2.0,
    H_half: float = 1.0,
    rho: float = 1.0,
    eta_s: float = 0.2,
    eta_p: float = 0.8,
    lam: float = 0.8,
    n_modes: int = 80,
) -> dict:
    """Start-up of plane Poiseuille flow of an Oldroyd-B fluid: the series solution of Waters and King (1970)."""
    y = np.asarray(y_grid, dtype=float).ravel()
    t = np.asarray(t_vals, dtype=float).ravel()
    if H_half <= 0.0 or rho <= 0.0 or eta_s < 0.0 or eta_p < 0.0 or (eta_s + eta_p) <= 0.0 or lam < 0.0:
        raise ValueError("Require H_half > 0, rho > 0, non-negative viscosities with eta_0 > 0, and lam >= 0.")
    if np.any(t < 0.0) or np.any(np.abs(y) > H_half + 1e-12):
        raise ValueError("Require t >= 0 and y in [-H_half, +H_half].")

    eta_0 = float(eta_s + eta_p)
    u_steady = (float(dpdx_neg) / (2.0 * eta_0)) * (H_half**2 - y**2)

    n_idx = np.arange(int(n_modes), dtype=float)
    k_n = (2.0 * n_idx + 1.0) * math.pi / (2.0 * H_half)  # (M,)
    sign_n = np.where((np.arange(int(n_modes)) % 2) == 0, 1.0, -1.0)
    a_fourier = 2.0 * sign_n / (H_half * (k_n**3))  # Fourier coeffs of (H^2 - y^2)/2
    w0_n = (float(dpdx_neg) / eta_0) * a_fourier
    dw0_n = -(eta_0 * (k_n**2) / float(rho)) * w0_n

    # Mode amplitude matrix W_modes of shape (T, M):
    w_modes = np.zeros((t.size, k_n.size), dtype=float)
    if lam <= 1e-14:
        decay = (eta_0 * (k_n**2)) / float(rho)
        w_modes = w0_n[None, :] * np.exp(-t[:, None] * decay[None, :])
    else:
        a_c = float(rho * lam)
        b_c = float(rho) + float(lam * eta_s) * (k_n**2)
        c_c = eta_0 * (k_n**2)
        disc = b_c**2 - 4.0 * a_c * c_c
        gamma_damp = b_c / (2.0 * a_c)

        for m in range(k_n.size):
            gm = gamma_damp[m]
            w0 = w0_n[m]
            v0 = dw0_n[m]
            dm = disc[m]
            if dm > 1e-18:
                om = math.sqrt(dm) / (2.0 * a_c)
                c1 = 0.5 * (w0 + (v0 + gm * w0) / om)
                c2 = 0.5 * (w0 - (v0 + gm * w0) / om)
                w_modes[:, m] = c1 * np.exp((-gm + om) * t) + c2 * np.exp((-gm - om) * t)
            elif dm < -1e-18:
                om = math.sqrt(-dm) / (2.0 * a_c)
                w_modes[:, m] = np.exp(-gm * t) * (w0 * np.cos(om * t) + ((v0 + gm * w0) / om) * np.sin(om * t))
            else:
                w_modes[:, m] = np.exp(-gm * t) * (w0 + (v0 + gm * w0) * t)

    cos_ky = np.cos(k_n[:, None] * y[None, :])  # (M, Y)
    u_yt = u_steady[None, :] - (w_modes @ cos_ky)  # (T, Y)
    # Enforce exact t == 0 zero velocity without Gibbs truncation ripple:
    u_yt[t == 0.0, :] = 0.0
    u_yt[:, np.isclose(np.abs(y), H_half)] = 0.0

    el_num = float(lam * eta_0 / (rho * (H_half**2)))
    beta_ratio = float(eta_s / eta_0)
    return {
        "y": y,
        "t": t,
        "u_yt": u_yt,
        "u_steady": u_steady,
        "u_centerline": u_yt[:, int(np.argmin(np.abs(y)))],
        "u_centerline_steady": float(dpdx_neg * (H_half**2) / (2.0 * eta_0)),
        "elasticity_number": el_num,
        "beta_viscosity_ratio": beta_ratio,
    }

Number of underdamped viscoelastic Fourier modes (disc < 0): 4 / 80
Max pointwise discrepancy against engcomprheo Waters-King      : 0.000e+00

Exercises

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

  1. Verify a result. The lowest mode of the Waters–King solution, with wavenumber k0=π/(2H)k_0 = \pi/(2H), oscillates when Δ0(El,βs)=(1+βsκ0El)2−4κ0El\Delta_0(\mathrm{El}, \beta_s) = (1 + \beta_s \kappa_0 \mathrm{El})^2 - 4\kappa_0 \mathrm{El} is negative, where κ0=π2/4\kappa_0 = \pi^2/4. Find the two roots El±∗(βs)\mathrm{El}_\pm^*(\beta_s) of Δ0=0\Delta_0 = 0 and plot them for 0.02<βs<0.980.02 < \beta_s < 0.98. Check with waters_king_startup_poiseuille at βs=0.20\beta_s = 0.20 that the centreline velocity is monotonic for an elasticity number below El−∗\mathrm{El}_-^* and exceeds its steady value U∞U_\infty for one between the two roots.

  2. Find how it fails. Compare independent ensembles in each cell (the CONNFFESSIT approach) with Brownian configuration fields at a fixed ensemble size Nf=180N_f = 180 on grids of Ny∈{16,28,44}N_y \in \{16, 28, 44\} cells (t_end=2.2, dt=0.006). Compute the roughness of the stress profile (spatial_stress_roughness, the norm of ∂yyτxy\partial_{yy}\tau_{xy}) and the root-mean-square error of ∂yτxy\partial_y\tau_{xy}, the force that enters the momentum equation, relative to the solution of the Oldroyd-B equation.

  3. Implement it yourself. Write a solver in NumPy for start-up of channel flow with Hookean configuration fields: assemble the tridiagonal matrix of the implicit solvent term, and advance Nf=400N_f = 400 fields in antithetic pairs with random increments dWkd\mathbf{W}_k that are uniform in space. Compare with solve_1d_channel_viscoelastic_startup, with which it should agree to rounding error, and with waters_king_startup_poiseuille.


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