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.

15. Lees–Edwards shear, dissipative particle dynamics and discontinuous shear thickening

A simulation of a sheared fluid between walls is disturbed by the layering of particles at the walls, and a thermostat that applies a drag to the velocity of each particle damps the flow itself. Lees and Edwards (1972) removed the walls with periodic boundaries that move with the shear. In dissipative particle dynamics, in the form given by Español and Warren (1995), the thermostat acts on the relative velocities of pairs of particles, so that momentum is conserved.

The second subject is shear thickening. A dense suspension such as cornstarch in water flows easily at low stress and becomes very viscous above a characteristic stress τ∗\tau^*. In the model of Wyart and Cates (2014) the stress pushes particles into frictional contact, which lowers the volume fraction at which the suspension jams. Depending on the volume fraction, the viscosity rises continuously, jumps, or diverges.

Learning objectives

  1. Implement Lees–Edwards boundary conditions, which shift the position and the velocity of a particle that crosses the boundary in the gradient direction.

  2. Check the relation σDPD2=2γDPDkBT\sigma_{\mathrm{DPD}}^2 = 2\gamma_{\mathrm{DPD}} k_B T between the random and the dissipative forces of dissipative particle dynamics, and the conservation of momentum.

  3. Compute the flow curves of the Wyart–Cates model and distinguish continuous shear thickening, discontinuous shear thickening (dγ˙/dτ<0d\dot{\gamma}/d\tau < 0) and jamming.

  4. Simulate a two-dimensional suspension of particles with lubrication forces and frictional contacts, with and without friction.

Time: about 60 min

1. Lees–Edwards boundaries and dissipative particle dynamics

Homogeneous shear, with the mean velocity ⟨vx(y)⟩=γ˙(y−L/2)\langle v_x(y)\rangle = \dot{\gamma}(y - L/2), can be simulated in a periodic box of size L×LL \times L without walls. Lees and Edwards (1972) let the periodic images of the box above and below it move with the velocities ±γ˙L\pm \dot{\gamma} L, so that after the time tt they are displaced by the strain γ(t)=γ˙t\gamma(t) = \dot{\gamma} t times LL:

cy=round⁡ ⁣(yi−yjL),ΔyLE=(yi−yj)−cyL,ΔxLE=wrap⁡L ⁣((xi−xj)−cy(γL mod L)),Δvx,LE=(vx,i−vx,j)−cyγ˙Lc_y = \operatorname{round}\!\left(\frac{y_i - y_j}{L}\right), \qquad \Delta y_{\mathrm{LE}} = (y_i - y_j) - c_y L, \qquad \Delta x_{\mathrm{LE}} = \operatorname{wrap}_L\!\Big((x_i - x_j) - c_y (\gamma L \bmod L)\Big), \qquad \Delta v_{x,\mathrm{LE}} = (v_{x,i} - v_{x,j}) - c_y \dot{\gamma} L

The work of shearing heats the fluid, and a thermostat has to remove the heat without changing the momentum. In dissipative particle dynamics, in the form given by Español and Warren (1995), all forces act between pairs of particles closer than a cut-off rcr_c and are equal and opposite, Fij=−Fji\mathbf{F}_{ij} = -\mathbf{F}_{ji}:

Fij=arepw(rij)e^ij−γDPDw2(rij)(e^ij⋅vij)e^ij+σDPDΔtw(rij)ζije^ij,ζij=ζji∼N(0,1)\mathbf{F}_{ij} = a_{\mathrm{rep}} w(r_{ij})\hat{\mathbf{e}}_{ij} - \gamma_{\mathrm{DPD}} w^2(r_{ij})(\hat{\mathbf{e}}_{ij}\cdot\mathbf{v}_{ij})\hat{\mathbf{e}}_{ij} + \frac{\sigma_{\mathrm{DPD}}}{\sqrt{\Delta t}} w(r_{ij})\zeta_{ij}\hat{\mathbf{e}}_{ij}, \qquad \zeta_{ij} = \zeta_{ji} \sim \mathcal{N}(0, 1)

where w(r)=1−r/rcw(r) = 1 - r/r_c. The relation σDPD2=2γDPDkBT\sigma_{\mathrm{DPD}}^2 = 2\gamma_{\mathrm{DPD}} k_B T between the amplitudes of the random and the dissipative forces makes the equilibrium distribution that of the temperature TT.


Demonstration 1: Lees-Edwards boundaries and dissipative particle dynamics in shear
===================================================================================
Cross-boundary LE minimum image: r_ij = [-1.75 -0.5 ], v_ij = [0. 0.]
Mean kinetic temperature <kT_kin> (target 1.00) : 1.0722
Total peculiar momentum drift ||sum p_pec||     : 4.420e-15
Linear shear profile correlation r(y, vx)       : 0.9798
Irving-Kirkwood DPD shear viscosity eta         : 0.3589
<Figure size 1166x429 with 2 Axes>

Figure 15.1. (a) Mean velocity of the particles against height in a sheared box with Lees–Edwards boundaries, with the imposed linear profile. (b) Horizontal component of the minimum-image separation of a pair across the moving boundary against strain.

2. The thermostat and the viscosity

The friction coefficient γDPD\gamma_{\mathrm{DPD}} and the noise amplitude σDPD=2γDPDkBT\sigma_{\mathrm{DPD}} = \sqrt{2\gamma_{\mathrm{DPD}} k_B T} affect two quantities differently:

  • The kinetic temperature, kBTkin=12(N−1)∑im∥vi−γ˙(yi−L/2)e^x∥2k_B T_{\mathrm{kin}} = \frac{1}{2(N-1)}\sum_i m \lVert \mathbf{v}_i - \dot{\gamma}(y_i - L/2)\hat{\mathbf{e}}_x\rVert^2, computed from the velocities relative to the mean flow, stays at the target value whatever γDPD\gamma_{\mathrm{DPD}}.

  • The viscosity, computed from the stress with the Irving–Kirkwood expression, increases with γDPD\gamma_{\mathrm{DPD}} through the contribution of the dissipative forces. The total momentum relative to the mean flow stays below 10-11 for all parameter values.


Demonstration 2: temperature and viscosity of the dissipative particle dynamics fluid
=====================================================================================
gamma_diss =  2.0 | <kT_kin> = 1.1904 (target 1.20) | eta = 0.3661 | mom_drift = 2.05e-14
gamma_diss =  4.5 | <kT_kin> = 1.1275 (target 1.20) | eta = 0.3455 | mom_drift = 2.59e-14
gamma_diss =  8.5 | <kT_kin> = 1.2797 (target 1.20) | eta = 0.4532 | mom_drift = 1.43e-14
<Figure size 1155x429 with 2 Axes>

Figure 15.2. Dissipative particle dynamics at three friction coefficients, with σ2=2γkBT\sigma^2 = 2\gamma k_BT. (a) Kinetic temperature against the target 1.2. (b) Shear viscosity from the stress.

3. The Wyart–Cates model of shear thickening

In a dense suspension, with a volume fraction ϕ\phi above about 0.45 (as in the assumed parameter set BENCHMARK_FLUIDS_DB["SILICA_DST"]), a short-range repulsion between the particles keeps them apart at low stress; τ∗\tau^* is the stress needed to overcome it. At low stress the particles are lubricated, and the viscosity diverges only at the jamming fraction of frictionless particles, ϕ0≈0.64\phi_0 \approx 0.64. When the stress exceeds τ∗\tau^*, particles come into frictional contact, and the jamming fraction decreases towards that of frictional particles, ϕm≈0.55\phi_m \approx 0.55 (Wyart and Cates, 2014):

f(τ)=exp⁡ ⁣(−τ∗τ),ϕJ(τ)=f(τ)ϕm+[1−f(τ)]ϕ0,η(ϕ,τ)=ηf(1−ϕϕJ(τ))−2f(\tau) = \exp\!\left(-\frac{\tau^*}{\tau}\right), \qquad \phi_J(\tau) = f(\tau)\phi_m + \big[1 - f(\tau)\big]\phi_0, \qquad \eta(\phi, \tau) = \eta_f \left(1 - \frac{\phi}{\phi_J(\tau)}\right)^{-2}

The flow curve γ˙(τ)=τ/η(ϕ,τ)\dot{\gamma}(\tau) = \tau / \eta(\phi, \tau) has three forms, depending on ϕ\phi:

  1. Continuous shear thickening, at moderate ϕ\phi: dγ˙/dτ>0d\dot{\gamma}/d\tau > 0 everywhere, and the viscosity rises smoothly from a low to a high plateau.

  2. Discontinuous shear thickening, for ϕDST<ϕ<ϕm\phi_{\mathrm{DST}} < \phi < \phi_m: the curve γ˙(τ)\dot{\gamma}(\tau) is S-shaped, with dγ˙/dτ<0d\dot{\gamma}/d\tau < 0 over a range of stress, and the stress jumps when the shear rate is controlled.

  3. Shear jamming, for ϕm≤ϕ<ϕ0\phi_m \leq \phi < \phi_0: the suspension flows at low stress, and at a finite stress the jamming fraction ϕJ(τ)\phi_J(\tau) falls to ϕ\phi; the viscosity diverges and the flow stops.


Demonstration 3: Wyart-Cates flow curves: continuous thickening, discontinuous thickening and jamming
=====================================================================================================
phi = 0.460 | S-shaped DST = False | max eta = 0.36 Pa*s
phi = 0.510 | S-shaped DST = False | max eta = 1.76 Pa*s
phi = 0.540 | S-shaped DST = True  | max eta = 22.59 Pa*s
phi = 0.565 | S-shaped DST = True  | shear jamming (eta = inf)
<Figure size 1188x451 with 2 Axes>

Figure 15.3. Wyart–Cates model with the parameters of SILICA_DST (assumed) at four volume fractions. (a) Shear stress against shear rate; the curve bends back for ϕ=0.54\phi = 0.54, and for ϕ=0.565>ϕm\phi = 0.565 > \phi_m the rate returns to zero at high stress. (b) Viscosity against shear rate.

4. A particle simulation with lubrication and friction

A particle simulation can test the Wyart–Cates model without assuming a constitutive law. The function mesoscopic_suspensions_dpd.simulate_frictional_suspension_2d follows, in two dimensions and in simplified form, the simulations of Seto, Mari, Morris and Denn (2013). Discs of two radii, 1.0 and 1.4, which do not crystallize, move in a box with Lees–Edwards boundaries and interact through three forces:

  1. a lubrication force that resists the approach of two particles, Flub∝−vn/max⁡(hgap,hmin⁡)F_{\mathrm{lub}} \propto -v_n / \max(h_{\mathrm{gap}}, h_{\min});

  2. an elastic contact force Fn=kn(−hgap)F_n = k_n (-h_{\mathrm{gap}}), which acts when the normal load exceeds the repulsive force Frep,0F_{\mathrm{rep},0};

  3. a tangential spring limited by Coulomb friction, ∣Ft∣≤μmax⁡(0,Fn−Frep,0)\lvert F_t\rvert \leq \mu \max(0, F_n - F_{\mathrm{rep},0}).

The demonstration compares μ=1.0\mu = 1.0 with frictionless particles, μ=0\mu = 0, from the same initial configuration and the same random numbers, so that the difference between the two runs is due to friction.


Demonstration 4: a two-dimensional suspension with and without friction
=======================================================================
Frictional (mu = 1.0) relative viscosity : [ 4.02 10.7  16.44 19.26] -> jump = 4.79x
Smooth     (mu = 0.0) relative viscosity : [4.02 3.97 3.91 3.91] -> jump = 1.03x
Frictional contact fraction f_fric       : [0.    0.326 0.726 0.915]
<Figure size 1188x440 with 2 Axes>

Figure 15.4. Two-dimensional particle simulation at four shear rates. (a) Relative viscosity with friction (μ=1\mu = 1), which rises by a factor 4.8, and without (μ=0\mu = 0). (b) Fraction of contacts that carry friction.

Inside the algorithm: minimum image under shear and pairwise forces

The cell below prints the source of mesoscopic_suspensions_dpd.lees_edwards_minimum_image and checks in NumPy that Lees–Edwards boundaries combined with symmetric random numbers ζij=ζji\zeta_{ij} = \zeta_{ji} give pair forces that obey Newton’s third law, so that ∑i=1NFi=0\sum_{i=1}^N \mathbf{F}_i = \mathbf{0} also for pairs that interact across the sheared boundary.

Check against the package

Consider two particles near the upper and the lower boundary, yi≈L−0.1y_i \approx L - 0.1 and yj≈0.1y_j \approx 0.1, which interact through the image shifted by cy=+1c_y = +1. Exchanging ii and jj changes the sign of cyc_y, and with it the signs of the displacement and of the relative velocity: rij,LE=−rji,LE\mathbf{r}_{ij,\mathrm{LE}} = -\mathbf{r}_{ji,\mathrm{LE}} and vij,LE=−vji,LE\mathbf{v}_{ij,\mathrm{LE}} = -\mathbf{v}_{ji,\mathrm{LE}}, to rounding error (< 1e-15).


Inside the algorithm: minimum image under shear and conservation of momentum
============================================================================
def lees_edwards_minimum_image(
    pos_i: np.ndarray,
    pos_j: np.ndarray,
    vel_i: np.ndarray,
    vel_j: np.ndarray,
    box_L: float,
    shear_rate: float,
    strain_gamma: float,
) -> tuple[np.ndarray, np.ndarray]:
    """Minimum-image displacement r_ij and relative velocity v_ij with the boundary conditions of Lees and Edwards (1972)."""
    if box_L <= 0.0:
        raise ValueError("Simulation box_L must be > 0.")
    L = float(box_L)
    rij = np.asarray(pos_i, dtype=float) - np.asarray(pos_j, dtype=float)
    vij = np.asarray(vel_i, dtype=float) - np.asarray(vel_j, dtype=float)

    # Number of vertical periodic box crossings cy = round(dy / L):
    cy = np.round(rij[..., 1] / L)
    rij_le = rij.copy()
    vij_le = vij.copy()
    rij_le[..., 1] -= cy * L
    # Top/bottom image bricks are shifted horizontally by strain_gamma * L and move at shear_rate * L
    dx_shift = (float(strain_gamma) * L) % L
    rij_le[..., 0] -= cy * dx_shift
    rij_le[..., 0] -= np.round(rij_le[..., 0] / L) * L
    vij_le[..., 0] -= cy * float(shear_rate) * L
    return rij_le, vij_le

Pairwise skew-symmetry ||r_01 + r_10|| + ||v_01 + v_10|| : 0.000e+00
Total net DPD force norm ||sum_i F_i|| across LE box     : 2.589e-14

Exercises

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

  1. Verify a result. In the Wyart–Cates model with ϕ0=0.64\phi_0 = 0.64 and ϕm=0.55\phi_m = 0.55, find the volume fraction ϕDST\phi_{\mathrm{DST}} above which the flow curve is S-shaped (discontinuous shear thickening) and below which the thickening is continuous. Compute the minimum over the stress of dln⁡γ˙/dln⁡τd\ln\dot{\gamma}/d\ln\tau for ϕ∈[0.46,0.548]\phi \in [0.46, 0.548] from the analytical derivative, and check the change of sign with wyart_cates_dst_flow_curve.

  2. Find how it fails. Run simulate_dpd_shear_2d with n_particles=100, box_L=7.0, shear_rate=0.85, n_steps=260, once with the pairwise thermostat of dissipative particle dynamics and once with unshifted_langevin_bug=True, which applies a drag proportional to the velocity of each particle in the laboratory frame. Compare the conservation of momentum and the deviation of the velocity profile from the imposed linear profile.

  3. Implement it yourself. Write a function in NumPy that follows the Wyart–Cates flow curve at ϕ=0.543\phi = 0.543 (ϕ0=0.64,ϕm=0.55,τ∗=18 Pa,ηf=0.01 Pa⋅s\phi_0=0.64, \phi_m=0.55, \tau^*=18\text{ Pa}, \eta_f=0.01\text{ Pa}\cdot\text{s}) while the shear rate is increased and then decreased, and compute the jump of the viscosity and the area of the hysteresis loop.


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