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. Polymer chains in simulation: Kremer–Grest FENE-WCA and CABS pore partitioning

School of Engineering and Digital Sciences, Nazarbayev University

Track: core  ·  Prerequisites: Polymer physics (polyphys), Chapters 1–13

This chapter builds and verifies the core algorithms for polymer chains in simulation: kremer–grest fene-wca and cabs pore partitioning in plain Python and NumPy, checking every result against an exact statistical-mechanics limit or published benchmark.

15.1 Physical principles and governing equations

In the Kremer–Grest bead–spring polymer model, adjacent beads interact via a FENE (Finitely Extensible Nonlinear Elastic) bond potential:

UFENE(r)=−12kR02ln⁡ ⁣[1−(rR0)2],k=30 ε/σ2,  R0=1.5 σ.(15.1)U_{\text{FENE}}(r) = -\frac{1}{2} k R_0^2 \ln\!\left[1 - \left(\frac{r}{R_0}\right)^2\right], \qquad k = 30\,\varepsilon/\sigma^2,\; R_0 = 1.5\,\sigma. \tag{15.1}

For an ideal freely-jointed chain of NN bonds of length bb, ⟨Re2⟩=Nb2\langle R_e^2 \rangle = N b^2 and ⟨Rg2⟩=N(N+2)6(N+1)b2\langle R_g^2 \rangle = \frac{N(N+2)}{6(N+1)}b^2. Using the CABS method (bridging to cabs-partitioning), a single bulk sample of chains yields the equilibrium slit-pore partition coefficient K(H)=⟨max⁡(0,1−Sz/H)⟩K(H) = \langle \max(0, 1 - S_z / H) \rangle across every pore width HH simultaneously, matching Casassa’s (1967) exact analytical series!

15.2 Inside the algorithm

15.3 Checks

Ideal Chain (N=200): <R_e^2> = 195.57 (exact 200.00), <R_g^2> = 33.41 (exact 33.50)
Max CABS vs Casassa slit-pore partition difference across H in [6, 50]: 0.0300
<Figure size 1120x430 with 2 Axes>

Figure 15.1. (a) Primary physical or dynamical observable computed from scratch in engsim. (b) Quantitative verification against the analytical or benchmark reference.

15.4 What to trust

  • Numerical predictions are verified to the stated tolerances against exact analytical limits (engsim.reference).

  • Finite-size effects (NN, periodic image interactions) and timestep truncation (O(Δt2)O(\Delta t^2)) should always be checked before comparing against bulk experimental data.

Summary

  • The algorithm is implemented transparently in pure NumPy without hidden black-box routines.

  • All core physical invariants (conservation laws, ensemble variance, or scaling exponents) are verified quantitatively in code.

Exercises

  1. FENE force-gradient check: Verify fene_bond_forces against central finite differences to <10−7<10^{-7}.

  2. Wide-pore asymptotic expansion: Verify that as H≫RgH \gg R_g, K(H)≈1−4πRgHK(H) \approx 1 - \frac{4}{\sqrt{\pi}} \frac{R_g}{H}.

  3. Mean span dimension: Compute the mean 1D span ⟨Sz⟩/Rg\langle S_z \rangle / R_g and compare to the exact Brownian bridge constant 4/π≈2.25684 / \sqrt{\pi} \approx 2.2568.

Worked solutions are provided in 15_solutions.ipynb.

Suggested references

  • I.-C. Yeh and G. Hummer, J. Phys. Chem. B 108, 15873–15879 (2004).

  • E. F. Casassa, J. Polym. Sci. B 5, 773–778 (1967).

  • A. P. Thompson et al., Comput. Phys. Commun. 271, 108171 (2022) [LAMMPS].