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 · 15. Lees–Edwards shear, dissipative particle dynamics and discontinuous shear thickening

Worked solutions to the three exercises of Lecture 15. 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. 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.


Exercise 1: the onset volume fraction of discontinuous shear thickening
=======================================================================
Exact analytical Wyart-Cates DST onset volume fraction : phi_DST = 0.53510
Below onset (phi = 0.5311) -> is_s_shaped_dst = False
Above onset (phi = 0.5391) -> is_s_shaped_dst = True
<Figure size 792x440 with 1 Axes>

Figure S15.1. Smallest logarithmic slope of the rate against the stress in the Wyart–Cates model. It reaches zero at ϕDST=0.5351\phi_{\mathrm{DST}} = 0.5351 (dotted).

Explanation. As the stress rises above τ∗\tau^* and frictional contacts form, the jamming fraction ϕJ(τ)\phi_J(\tau) decreases towards ϕm\phi_m and the viscosity rises. The slope dln⁡γ˙/dln⁡τd\ln\dot{\gamma}/d\ln\tau first reaches zero at ϕDST=0.5351\phi_{\mathrm{DST}} = 0.5351. For volume fractions between this value and ϕm=0.55\phi_m = 0.55 the shear rate decreases with stress over a range of stresses, and the flow curve is S-shaped. The test is_s_shaped_dst of the package is false at ϕ=0.5311\phi = 0.5311 and true at 0.5391.


Exercise 2

Problem. 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.


Exercise 2: a drag on particle velocities in the laboratory frame against the pairwise thermostat
=================================================================================================
Pairwise thermostat : momentum_drift = 2.733e-14 | vx RMSE = 0.2023
Drag on velocities  : momentum_drift = 9.319e+00 | vx RMSE = 1.3965
<Figure size 1155x429 with 2 Axes>

Figure S15.2. (a) Mean velocity profile with pairwise friction and with friction on each particle’s laboratory velocity, which removes the shear profile. (b) Norm of the total peculiar momentum at the end: 10-14 against 9.3.

Explanation. A drag −γvi-\gamma \mathbf{v}_i on each particle acts on the mean flow as well as on the thermal motion: it removes momentum (the drift is 9.3, against 3×10−143\times10^{-14} with the pairwise thermostat) and distorts the velocity profile (a root-mean-square deviation of 1.40 against 0.20). The pairwise drag −γw2(e^ij⋅vij)e^ij-\gamma w^2(\hat{\mathbf{e}}_{ij}\cdot\mathbf{v}_{ij})\hat{\mathbf{e}}_{ij} depends on relative velocities alone, so it conserves momentum and is unchanged by a uniform translation of the system. A thermostat that subtracts an assumed linear profile before applying the drag is also wrong when the real profile is not linear, as in shear banding.


Exercise 3

Problem. 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.


Exercise 3: hysteresis of the Wyart-Cates flow curve under controlled shear rate
================================================================================
Spinodal rate window [dot_gamma_down, dot_gamma_up] : [13.97, 20.05] 1/s
Discontinuous viscosity jump factor at dot_gamma_up : 34.55x
<Figure size 1188x440 with 2 Axes>

Figure S15.3. Wyart–Cates model under controlled rate. (a) The curve of controlled stress (dotted) and the stress followed when the rate is raised and lowered. (b) The corresponding viscosity, which jumps by a factor of about 35 on the way up.

Explanation. The flow curve is S-shaped between the shear rates 13.97 and 20.05 s−120.05\ \mathrm{s}^{-1}. When the rate is increased beyond the upper value the stress jumps to the upper branch, and the viscosity rises by a factor of 35; when the rate is decreased the stress stays on the upper branch down to the lower value, so that the two sweeps enclose a loop. Compare Lecture 8: there the stress decreases with rate over a range of rates and the fluid separates into bands at one stress, while here the rate decreases with stress, and a jump occurs when the rate is controlled.