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.

180 of 180 checks pass. Each check compares a function of engcomprheo with an exact solution, an identity or an independent calculation.

This file is written by python scripts/validate.py, which needs only NumPy.

Parameter sets, the Waters–King solution and the list of models and methods (20/20 PASS)

#CheckComputedExpectedStatus
1Package version is 1.0.01.0.01.0.0PASS
2Six parameter sets are defined66 (rtol=1.0e-09)PASS
3Critical Bingham number of the square duct equals 2/(2+π)2/(2+\sqrt{\pi}) (Mosolov and Miasnikov)0.53015890.5301589 (rtol=1.0e-09)PASS
4Critical Bingham number of the square duct lies below that of the plane channel, 10.530159In (0.530, 0.531)PASS
5List of models and methods has 24 entries2424 (rtol=1.0e-09)PASS
6Entries of the list are numbered 1 to 241..241..24PASS
7Every entry of the list names a function that exists in the package2424 (rtol=1.0e-09)PASS
8The list covers all six partsI,II,III,IV,V,VII..VIPASS
9Waters–King solution starts from rest00 (rtol=1.0e-09)PASS
10Waters–King solution satisfies no slip at both walls at all times00 (rtol=1.0e-09)PASS
11Waters–King steady centreline velocity equals GpH2/(2η0)G_p H^2/(2\eta_0)11 (rtol=1.0e-09)PASS
12Waters–King profile tends to the Poiseuille parabola at long times2.7379689e-050 (rtol=1.0e-09)PASS
13Newtonian start-up (λ=0\lambda = 0) approaches the steady state without overshootmax=1.0000≤ 1.0000PASS
14Oldroyd-B start-up at large El overshoots the steady velocity by more than 25 %peak=1.839> 1.25PASS
15Velocity falls below the steady value after the first peakmin_after_peak=0.772< 0.98PASS
16Elasticity number El=λη0/(ρH2)\mathrm{El} = \lambda\eta_0/(\rho H^2) equals 1.21.21.2 (rtol=1.0e-09)PASS
17Viscosity ratio β=ηs/η0\beta = \eta_s/\eta_0 equals 0.10.10.1 (rtol=1.0e-09)PASS
18Waters–King profile is symmetric about the centrelineSymmetricSymmetricPASS
19Waters–King solution rejects negative timesValueErrorValueErrorPASS
20Parameter sets of the Boger fluid and the LDPE melt have positive relaxation timesValid presetsPositive paramsPASS

Frame indifference, convected derivatives and the log-conformation formulation (20/20 PASS)

#CheckComputedExpectedStatus
1Upper-convected derivative is frame indifferent (error below 10-12)err=8.37e-16< 1e-10PASS
2Lower-convected derivative is frame indifferenterr=1.20e-15< 1e-10PASS
3Jaumann derivative is frame indifferenterr=7.70e-16< 1e-10PASS
4Gordon–Schowalter derivative (ξ=0.35\xi = 0.35) is frame indifferenterr=5.69e-16< 1e-10PASS
5Partial time derivative is not frame indifferenterr=6.32not frame indifferentPASS
6Gordon–Schowalter derivative at ξ=0\xi = 0 equals the upper-convected derivative00 (rtol=1.0e-09)PASS
7Gordon–Schowalter derivative at ξ=1\xi = 1 equals the Jaumann derivative2.2887834e-160 (rtol=1.0e-09)PASS
8Gordon–Schowalter derivative at ξ=2\xi = 2 equals the lower-convected derivative4.7102774e-160 (rtol=1.0e-09)PASS
9Finger tensor in simple shear has Bxx=1+γ2B_{xx} = 1 + \gamma^23.253.25 (rtol=1.0e-09)PASS
10Simple shear conserves volume (det⁡F=1\det\mathbf{F} = 1) and has I1=I2=3+γ2I_1 = I_2 = 3 + \gamma^2I1=5.2503 + gamma^2PASS
11Free energy is zero at equilibrium, C=I\mathbf{C} = \mathbf{I}00 (rtol=1.0e-09)PASS
12Free energy is positive for a positive definite C≠I\mathbf{C} \neq \mathbf{I}psi=0.9356> 0PASS
13check_spd_conformation detects a tensor with a negative eigenvalueis_spd=FalseFalsePASS
14exp⁡(ln⁡C)\exp(\ln\mathbf{C}) returns C\mathbf{C} to within 10-132.7599707e-150 (rtol=1.0e-09)PASS
15Decomposition of the log-conformation equation is finite at C=I\mathbf{C} = \mathbf{I}00 (rtol=1.0e-09)PASS
16Rotation tensor Ω\boldsymbol{\Omega} of Fattal and Kupferman is antisymmetric7.9854664e-170 (rtol=1.0e-09)PASS
17Log-conformation Oldroyd-B steady shear stress equals ηpγ˙\eta_p\dot{\gamma}5.9997266 (rtol=1.0e-03)PASS
18Log-conformation Oldroyd-B steady N1N_1 equals 2ηpλγ˙22\eta_p\lambda\dot{\gamma}^235.98197136 (rtol=2.0e-03)PASS
19Direct Euler update with a large step loses positive definiteness in shear reversalmin_det=-9.308e+02≤ 0PASS
20Log-conformation update with the same step keeps det⁡C>0\det\mathbf{C} > 0min_det=1.000e+00> 0 (unconditional SPD)PASS

Brownian dynamics of dumbbells, control variates and chains with hydrodynamic interaction (20/20 PASS)

#CheckComputedExpectedStatus
1Closed-form root of the FENE cubic (Öttinger) satisfies the equation to 10-111.5916157e-120 (rtol=1.0e-09)PASS
2Root of the FENE cubic lies in [0,b)[0, \sqrt{b}) up to Y=500Y = 500max_R=6.990068 < 7.0< sqrt(b)PASS
3Root of the FENE cubic at Y=0Y = 0 is 000 (rtol=1.0e-09)PASS
4Hookean Brownian dynamics reproduces the exact start-up 0.08(1−e−t)0.08(1 - e^{-t}) to 10-4err=1.27e-05< 1e-4PASS
5Hookean control variate reduces the variance of FENE Brownian dynamics by more than 15 timesVRF=89.2x> 15xPASS
6Semi-implicit FENE update gives no extension beyond b\sqrt{b} at Wi = 8, Δt=0.1\Delta t = 0.100 (rtol=1.0e-09)PASS
7Explicit Euler FENE update gives extensions beyond b\sqrt{b} at Wi = 8, Δt=0.1\Delta t = 0.1overstretched=793> 0PASS
8Mean-square extension of FENE dumbbells stays below b=25b = 25max_<Q^2>=9.44< 25.0PASS
9FENE dumbbells shear-thin: τxy/Wi<1\tau_{xy}/\mathrm{Wi} < 1 at Wi = 4eta_p=0.527< 0.75PASS
10FENE dumbbells have N1>0N_1 > 0 in steady shearN1=7.84> 1.5PASS
11FENE dumbbells reach a finite steady stretch above Wiext=0.5\mathrm{Wi}_{\mathrm{ext}} = 0.5<Q^2>=11.30In (10, 30)PASS
12Worm-like-chain dumbbells (Marko–Siggia force) stay below full extension with positive shear stresstau=2.49Bounded WLCPASS
13Rotne–Prager–Yamakawa mobility matrix is symmetric00 (rtol=1.0e-09)PASS
14Rotne–Prager–Yamakawa mobility matrix is positive definite for beads that do not overlapmin_eig > 0SPDPASS
15Rotne–Prager–Yamakawa mobility matrix is positive definite for overlapping beads (r=0.4ar = 0.4a)min_eig=2.771e-03> 0 (SPD)PASS
16Oseen mobility matrix is not positive definite for two beads at r<1.5ar < 1.5amin_eig=-2.138e-01< 0 (not positive definite)PASS
17Rotne–Prager–Yamakawa mobility is continuous at r=2ar = 2a2.9841542e-080 (rtol=1.0e-09)PASS
18Longest Rouse time of an 8-bead chain equals 1/[8sin⁡2(π/16)]1/[8\sin^2(\pi/16)]3.28426783.2842678 (rtol=1.0e-09)PASS
19Hydrodynamic interaction shortens the longest relaxation timeZimm=2.83 < Rouse=3.28tau_Zimm < tau_RousePASS
20Mobility matrix stays positive definite in every step of the Zimm simulationspd_preserved=TrueTruePASS

FENE-P and FENE-CR closures, the Rolie-Poly model and the Pom-Pom model (20/20 PASS)

#CheckComputedExpectedStatus
1FENE-P: tr⁡C\operatorname{tr}\mathbf{C} stays below b=30b = 30max_trC=10.26< 30.0PASS
2FENE-P viscosity falls below its zero-shear value ηp=2\eta_p = 2eta=1.497< 1.8PASS
3FENE-CR viscosity equals ηp=2\eta_p = 2 at Wi = 12.00003452 (rtol=2.0e-03)PASS
4FENE-CR viscosity equals ηp=2\eta_p = 2 at Wi = 522 (rtol=5.0e-03)PASS
5FENE-CR first normal-stress coefficient decreases with the shear ratePsi1(5) < Psi1(1)Thinning Psi1PASS
6FENE-P shear stress tends to the Oldroyd-B value 6.0 for b=5000b = 50005.97860156 (rtol=1.0e-02)PASS
7FENE-P extensional viscosity reaches a finite plateau above Wi = 0.5trC=27.82< 40.0PASS
8Conformation-dependent drag gives a wide coil–stretch hysteresis looparea=18.64> 5.0PASS
9Constant drag gives a much narrower loopoff=0.188<< drag-coupledPASS
10Rolie-Poly without stretch and with βCCR=0\beta_{\mathrm{CCR}} = 0 has a decreasing shear stress at large Wid\mathrm{Wi}_d0.537 < 0.609Decreasing without CCRPASS
11Rolie-Poly with βCCR=1\beta_{\mathrm{CCR}} = 1 has a monotonic flow curve[0.317, 0.561, 0.607]Strictly increasingPASS
12Rolie-Poly with stretch shows a stress overshoot and stretch above 1 in start-upmax_lam=1.94Overshoot & stretch > 1PASS
13Rolie-Poly keeps all eigenvalues of C\mathbf{C} positiveSPDdet(C) > 0PASS
14Pom-Pom extensional viscosity exceeds 1.5 times the Trouton value 3η03\eta_0eta_E/3eta0=6.94> 1.5x TroutonPASS
15Pom-Pom shear viscosity falls below 0.7 η0\eta_0eta_sh/eta0=0.03< 0.70PASS
16Pom-Pom orientation tensor has unit tracetr S = 11.0PASS
17Pom-Pom backbone stretch is limited to the number of arms, q=3q = 3cap=3.00, uncap=1314.26Capped at q=3PASS
18Pom-Pom backbone with one arm does not stretchStretch = 11.0PASS
19Pom-Pom N1>0N_1 > 0 in steady shearN1=4.32> 0PASS
20solve_pom_pom_melt rejects fewer than one armValueErrorValueErrorPASS

Non-monotonic flow curves, shear banding and the Pakdel–McKinley criterion (20/20 PASS)

#CheckComputedExpectedStatus
1Johnson–Segalman flow curve is non-monotonic for βs=0.05<1/8\beta_s = 0.05 < 1/8TrueNon-monotonicPASS
2Johnson–Segalman flow curve is monotonic for βs=0.20>1/8\beta_s = 0.20 > 1/8Monotonicbeta_s > 1/8PASS
3Johnson–Segalman model with ξ=0\xi = 0 (Oldroyd-B) has a linear flow curveLinearxi = 0PASS
4Slope of the flow curve is zero at the lower spinodal rate5.5511151e-120 (rtol=1.0e-09)PASS
5Slope of the flow curve is zero at the upper spinodal rate00 (rtol=1.0e-09)PASS
6Diffusive Johnson–Segalman model forms two bands at Wi = 3.0ratio=10.77> 4.0PASS
7Mean shear rate of the banded profile equals the applied Wi33 (rtol=1.0e-10)PASS
8Plateau stress does not depend on the initial perturbation0.804925330.80492533 (rtol=5.0e-03)PASS
9At Wi = 0.6, below the spinodal range, the flow stays homogeneousHomogeneousZero bandingPASS
10Total stress stays on the plateau between Wi = 2.5 and 3.80.804924830.80492519 (rtol=1.5e-02)PASS
11Fraction of the gap at the high rate grows with Wi as the lever rule predicts0.14 -> 0.27Increasing band widthPASS
12Without stress diffusion the interface is sharper than with ℓd=0.03\ell_d = 0.03Sharper jump at l_d=0Interfacial smoothingPASS
13Two-species model (VCM) conserves the monomer number nA+nB/2n_A + n_B/21.56694671.5669467 (rtol=1.0e-10)PASS
14Mean shear rate of the VCM profile equals the applied Wi = 2.82.82.8 (rtol=1.0e-10)PASS
15Long micelles are depleted where the shear rate is highestcorr(gdot, nA) < -0.5Chain scission in high-rate bandPASS
16Short micelles are enriched in the high-shear bandcorr(gdot, nB) > +0.5Short-species enrichmentPASS
17Newtonian fluid (λ=0\lambda = 0) has M=0M = 000 (rtol=1.0e-09)PASS
18Pakdel–McKinley number equals (λU/R) τ11/(η0γ˙)\sqrt{(\lambda U/R)\,\tau_{11}/(\eta_0\dot{\gamma})}21.90890221.908902 (rtol=1.0e-09)PASS
19Strongly curved streamlines exceed the critical Pakdel–McKinley numberM=21.91 ≥ 5.92Elastic instabilityPASS
20pakdel_mckinley_criterion rejects a negative relaxation timeValueErrorValueErrorPASS

Exact Bingham flow, regularization, the augmented Lagrangian method and the Saramito model (20/20 PASS)

#CheckComputedExpectedStatus
1Plane-channel Bingham solution at τy=0\tau_y = 0 gives the Newtonian flow rate 4/31.33333331.3333333 (rtol=1.0e-09)PASS
2Plug half-width in the plane channel equals τy/Gp=0.4\tau_y/G_p = 0.40.40.4 (rtol=1.0e-09)PASS
3Velocity is constant inside the plug00 (rtol=1.0e-09)PASS
4No flow when the wall stress is below the yield stress00 (rtol=1.0e-09)PASS
5Plug radius in a pipe equals 2τy/Gp=0.252\tau_y/G_p = 0.250.250.25 (rtol=1.0e-09)PASS
6Papanastasiou profile approaches the exact Bingham profile as mm grows from 10 to 500err=0.040->0.0008Converges as O(1/m)PASS
7Papanastasiou model gives creep below the yield stress (τw=0.8τy\tau_w = 0.8\tau_y)creep=0.0711> 0 (spurious creep)PASS
8Augmented Lagrangian solver at τy=0\tau_y = 0 matches the series flow rate of the square duct (0.5623) to 0.2 %0.562138470.5623081 (rtol=2.0e-03)PASS
9Augmented Lagrangian solver at Bn = 0.32 converges in both residualsres=5.20e-05< 1e-4PASS
10Strain rate is zero in the central plugZero in the plugExact plugPASS
11All four corners of the duct are stagnant4 corners unyieldedStagnant cornersPASS
12Velocity field has the symmetry of the squareSymmetric4-fold symmetricPASS
13Below the critical Bingham number (Bn = 0.47 < 0.5302) the duct flowsQ(0.47)=0.0148> 0.01PASS
14Above the critical Bingham number (Bn = 0.57 > 0.5302) the duct does not flow2.5467585e-100 (rtol=1.0e-09)PASS
15Saramito model below the yield stress (10 Pa < 15 Pa) reaches the elastic strain 0.10strain=0.10000.1000 (solid)PASS
16Saramito model above the yield stress (25 Pa > 15 Pa) reaches a steady shear raterate=1.963Steady flowPASS
17Saramito model recoils elastically when the stress is removedmin_rate=-12.50< 0 (elastic recoil)PASS
18Saramito start-up at constant rate approaches τy+(ηp+ηs)γ˙\tau_y + (\eta_p + \eta_s)\dot{\gamma}stress=20.35> tau_yPASS
19Unyielded fraction grows with Bn (0, 0.28, 0.57)0.30 < 1.00Monotone plug growthPASS
20At Bn = 0.57 the whole cross-section is unyielded11 (rtol=1.0e-09)PASS

Configuration fields and the two-dimensional log-conformation solver (20/20 PASS)

#CheckComputedExpectedStatus
11-D Oldroyd-B solver matches the Waters–King start-up (error below 2 %)rel_err=0.0008< 0.02PASS
2Steady N1(y)N_1(y) in the channel equals 2ηpλ(du/dy)22\eta_p\lambda(du/dy)^20.000186675840 (rtol=1.0e-09)PASS
3Configuration fields reproduce the Oldroyd-B start-up (error below 7 %) without a constitutive equationerr=0.047< 0.07PASS
4Configuration fields have a stress profile more than 10 times smoother than independent ensemblesCONN=17.4 against configuration fields=0.03> 10x smootherPASS
5FENE configuration fields reach a centreline velocity above 1.5 at the end of the runu_c=1.789> 1.5PASS
6Newtonian cavity (Wi = 0) has its vortex centre at xc=0.50x_c = 0.500.500088560.5 (rtol=1.0e-09)PASS
7Viscoelastic cavity (Wi = 1.2) moves the vortex centre upstreamx_c: 0.500 -> 0.461Upstream elastic shiftPASS
8Log-conformation cavity solver keeps det⁡C>0\det\mathbf{C} > 0 everywheredetC_min=1.0000> 0PASS
9tr⁡C\operatorname{tr}\mathbf{C} is largest under the lid (above 3.0)max_trC=28.43> 3.0 near lidPASS
10Cavity residual falls by more than 10 times1.40e-01->5.60e-05ConvergingPASS
11Stream function has a negative minimum in the primary vortexpsi_min=-0.0651< -0.02PASS
12Newtonian wavy channel has N1=0N_1 = 0 and M=0M = 000 (rtol=1.0e-09)PASS
13Viscoelastic wavy channel has N1>0.5N_1 > 0.5 and tr⁡C>2.5\operatorname{tr}\mathbf{C} > 2.5max_trC=14.40> 2.5PASS
14Viscoelastic wavy channel keeps det⁡C>0\det\mathbf{C} > 0detC_min=1.0030> 0PASS
15Wavy walls give a larger MM than the straight channelwavy=0.44 against flat=0.016Curvature-driven MPASS
16Flow rate is the same at the throat and in the expansion6.6613381e-160 (rtol=1.0e-09)PASS
17solve_2d_viscoelastic_cavity rejects a grid that is too smallValueErrorValueErrorPASS
18Straight channel (ε=0\varepsilon = 0) gives profiles that do not change along xxUniform in xPeriodic invariancePASS
19Lid velocity of the regularized cavity stays small near the cornerscorner_u=0.021< 0.25PASS
20Vertical velocity on the centreline of the wavy channel is zero by symmetryv(x, 0) = 0Midplane symmetryPASS

Lees–Edwards shear, dissipative particle dynamics and shear thickening (20/20 PASS)

#CheckComputedExpectedStatus
1Lees–Edwards minimum image maps Δy=9.0\Delta y = 9.0 to -1.0 for L=10L = 10-1-1 (rtol=1.0e-09)PASS
2Lees–Edwards boundary shifts Δx\Delta x by −γL=−3.0-\gamma L = -3.0-3-3 (rtol=1.0e-09)PASS
3Lees–Edwards boundary shifts the relative velocity by γ˙L=5.0\dot{\gamma}L = 5.000 (rtol=1.0e-09)PASS
4Pairs with ∣Δy∣<L/2\lvert\Delta y\rvert < L/2 are not shifted00 (rtol=1.0e-09)PASS
5Pairwise DPD thermostat (Español and Warren) conserves momentum to 10-115.7827275e-140 (rtol=1.0e-09)PASS
6Drag on each particle’s velocity does not conserve momentumdrift=5.80> 0.5PASS
7Fluctuation–dissipation relation σ2=2γkBT\sigma^2 = 2\gamma k_BT keeps the temperature near 1.0kT=0.912In [0.80, 1.25]PASS
8Lees–Edwards DPD gives a linear velocity profiler=0.991> 0.94PASS
9Irving–Kirkwood stress gives a positive shear viscosityeta=0.540> 0.2PASS
10At ϕ=0.42\phi = 0.42 the thickening is continuousCSTMonotonicPASS
11At ϕ=0.542\phi = 0.542 the flow curve is S-shaped (discontinuous thickening)is_s_shaped_dst=TrueS-shaped DSTPASS
12At low stress the Wyart–Cates viscosity equals ηf(1−ϕ/ϕ0)−2\eta_f(1 - \phi/\phi_0)^{-2}0.426488960.42648896 (rtol=5.0e-02)PASS
13At high stress the Wyart–Cates viscosity equals ηf(1−ϕ/ϕm)−2\eta_f(1 - \phi/\phi_m)^{-2}46.67490947.265625 (rtol=5.0e-02)PASS
14Above ϕm\phi_m (ϕ=0.57>0.55\phi = 0.57 > 0.55) the suspension jams at high stressShear jammedeta = infPASS
15Frictional suspension (μ=1\mu = 1) thickens sharply above the repulsive stressjump=4.92x> 1.35xPASS
16Friction (μ=1\mu = 1) gives more thickening than lubrication alone (μ=0\mu = 0)mu=1:18.61 > mu=0:4.02Friction drives DSTPASS
17Fraction of frictional contacts grows with the shear rate0.00->0.92Stress-activated contactsPASS
18Suspension viscosity exceeds the Einstein value 1+2.5ϕ1 + 2.5\phimin_eta_r=3.78> 2.325PASS
19lees_edwards_minimum_image rejects a non-positive box sizeValueErrorValueErrorPASS
20Wyart–Cates fraction f(τ)f(\tau) lies between 0 and 1In (0, 1)Valid fractionPASS

Microrheology and the tensor-basis stress model (20/20 PASS)

#CheckComputedExpectedStatus
1Exact mean-square displacement in a Newtonian fluid equals 2Dt2Dt2.1220659e-132.1220659e-13 (rtol=1.0e-09)PASS
2Simulated mean-square displacement in a Newtonian fluid equals 2Dt2Dt to 8 %2.141243e-132.1220659e-13 (rtol=8.0e-02)PASS
3Simulated mean-square displacement in a viscoelastic medium agrees with the exact one (mean error below 10 %)0.025379550 (rtol=1.0e-09)PASS
4Viscoelastic medium gives a plateau (smallest slope below 0.25)min_alpha=0.089< 0.25PASS
5Generalized Stokes–Einstein relation gives G′′/G′=tan⁡(πα/2)G''/G' = \tan(\pi\alpha/2)7.1054274e-150 (rtol=1.0e-09)PASS
6Generalized Stokes–Einstein relation recovers the plateau modulus to 12 %2.1336782.3435997 (rtol=1.2e-01)PASS
7At low frequency G′′>G′G'' > G'G'' > G' at low omegaTerminal viscous flowPASS
8On the plateau G′>G′′G' > G''G' > G'' on plateauElastic plateauPASS
9Newtonian mean-square displacement has slope 10.99991 (rtol=1.0e-09)PASS
10Generalized Stokes–Einstein relation gives G′′/ω=ηs=10−3G''/\omega = \eta_s = 10^{-3} Pa s for a Newtonian fluid0.00100004230.001 (rtol=1.0e-02)PASS
11Tensor-basis model fits the synthetic data with R2>0.9999R^2 > 0.9999R2=1.000000> 0.9999PASS
12Tensor-basis model recovers the weights (2.5, 0.35, 0.15, 0)2.2991146e-150 (rtol=1.0e-09)PASS
13Tensor-basis model is equivariant under rotation (error below 10-12)1.256074e-150 (rtol=1.0e-09)PASS
14Tensor-basis model gives non-negative dissipationmin_diss=0.299≥ 0PASS
15Tensor-basis model gives zero stress at C=I\mathbf{C} = \mathbf{I}00 (rtol=1.0e-09)PASS
16Tensor-basis model gives a symmetric stressSymmetricSymmetricPASS
17Component-wise network is not frame indifferent (error above 0.1 at 42 degrees)mlp_err=3.206> 0.10PASS
18Equivariance error of the tensor-basis model is more than 1011 times smaller than that of the networkTC=4.08e-15 against MLP=3.21e+00> 10^11 times smallerPASS
19Weights of the tensor-basis model are non-negativew >= 0Convex potentialPASS
20mason_gser_moduli rejects fewer than five lag timesValueErrorValueErrorPASS