Scientific Validation Tutorials
The ParticleDynamics v1.2.0 tutorial suite contains 14 self-contained GPU validation studies (T01 through T14), accompanied by 28 analysis figures, 14 path-traced Fresnel snapshots, and 10 trajectory movies. Each tutorial exercises a distinct subsystem of the package and compares block-averaged observables directly against published benchmarks.
No external datasets or cluster paths are required. Every script supports a fast smoke mode (TUTORIAL_FAST=1) as well as production defaults:
bash
TUTORIAL_FAST=1 julia --project tutorials/T01_lj_eos_transport/run.jl
TUTORIAL_FAST=1 julia --project tutorials/T01_lj_eos_transport/analyze.jlTrajectory Gallery
All snapshots and movies are path-traced directly from GPU GSD trajectories (tutorials/_fresnel_studio.py).




Curriculum
| # | Tutorial | Key Features | Reference | Validation Summary |
|---|---|---|---|---|
| T01 | Lennard-Jones EOS & Transport | LennardJones, :ell NVE, VirialObservable, VACFObservable, MSDObservable | Johnson et al. (1993); Meier et al. (2004); Thol et al. (2015, 2016) | Tail-corrected 0.23% and |
| T02 | Canonical Thermostat Accuracy | BAOAB, BAOABFast, CSVR, NoseHooverChain, BathExchangeObservable | Leimkuhler & Matthews (2013); Bussi et al. (2007) | At BAOAB/CSVR NHC +6.9σ) |
| T03 | Jarzynski Work & PMF | GPU-capturable AbstractExternalPotential, 262k-trajectory batching | Jarzynski (1997); Hummer & Szabo (2001); Sivak et al. (2013) | 0.004–0.035 k_B T); PMF RMSE = 0.010 k_B T |
| T04 | Rigid Water: SPC/E vs TIP3P | ClusterPairList (:fixed64), C²-ESP + CompactFFT, :df64 SETTLE, C-rescale & MC barostats | Berendsen et al. (1987); Vega & Abascal (2011) | Truncated |
| T05 | Yeh–Hummer Finite-Size Diffusion | Multi-box step_many!, Float64 UnwrapFeature, GSDWriter(write_unwrapped=true) | Yeh & Hummer (2004); González & Abascal (2010); Tazi et al. (2012) | TIP3P 0.55σ vs. YH), 0.12σ vs. G&A) |
| T06 | LJPME Liquid–Vapor Surface Tension | Dual-mesh DispersionESP, tune_dispersion, :force_switch, :potential_switch, slab PressureObservable | Vega & de Miguel (2007); Isele-Holder et al. (2012); Janeček (2006) | Cutoff-consistent SPC/E 0.01σ) vs. -7.54 ± 1.41 mN/m (5.4σ) truncated bias |
| T07 | Aqueous NaCl Electrolytes (0–5 m) | Multi-type PairTable, Lorentz–Berthelot mixing, per-species TypeSelection MSD | Joung & Cheatham (2008, 2009); Nezbeda et al. (2016); Chambers et al. (1956) | Na–O 0.238 nm (CN=5.8), Cl–O 0.313 nm (CN=7.1–7.2); 5 m supersaturated); |
| T08 | Polyelectrolyte Manning Condensation | Frozen charged rod, FreezeGroup, monovalent & divalent WCA counterions, net_charge=:background, C²-ESP | Manning (1969); Deserno, Holm & May (2000) | |
| T09 | Confined Fluids in Slit Nanopores | Atomistic FreezeGroup walls, :additive AbstractExternalPotential (Steele 9–3), selective FIRE, anisotropic MSD | Snook & Henderson (1978); Magda et al. (1985) | Oscillatory -9.7σ) |
| T10 | 2D Melting & Hexatic Crossover | 2D PeriodicBox, hex_sites_in_box_2d, 2D WCA + custom GPU r⁻¹², CollisionObservable, | Bernard & Krauth (2011); Kapfer & Krauth (2015) | |
| T11 | Active AOUP MIPS & Two-T WCA | ActiveOrnsteinUhlenbeck (EulerHeun, OUSpectrum), two-bath Langevin, WCA, BathExchangeObservable | Fodor et al. (2016); Martin et al. (2021); Weber, Weber & Frey (2016) | AOUP MIPS (BC = 0.718, non-monotonic 37/37 PASS) |
| T12 | Kremer–Grest Polymer Melts | FENEBondForce + WCA, CosineSquaredAngleForce, Float64 MSD, GSDWriter + ParticleSystem.from_gsd restart | Kremer & Grest (1990); Auhl et al. (2003); Hsu & Kremer (2016) | 7,000 beads): Z≈1.15); GSD reload 0.0 |
| T13 | Alanine Dipeptide 4 fs HMR | AMBER bonded stack, 1–4 scaled_pairs, :df64 ConstraintClusters + apply_hmr, FIRE, nm/kJ vs. Å/kcal | Hopkins et al. (2015); Prada-Gracia et al. (2009); Vymětal & Vondrášek (2010) | 12,355 steps/s (1.62× HMR time rate), 0.15σ), 1.13σ; F64 unit audit ≤ 2.61e-15 |
| T14 | Semi-Isotropic LJPME Bilayer & Helix | MonteCarloBarostat(:semiisotropic, scale=:molecules), dispersion_from_gsd, 4 fs HMR Ace–Ala₁₂–Nme + GSD restart | Wennberg et al. (2013, 2015); Yu et al. (2021); Hopkins et al. (2015) | Trunc. LJ +5.8% (13.7σ) LJPME (5.6× cutoff suppression); 8,681 steps/s (1.66× HMR time rate) helix with 0.21σ |
Rendering Snapshots & Movies
The Fresnel visualization scripts take explicit CLI paths and reproduce every image and video in this section:
bash
conda env create -f tutorials/fresnel_environment.yml
conda activate pd-fresnel
# Path-traced snapshots (samples=48)
python tutorials/render_snapshots.py \
--media-dir /path/to/trajectories \
--p2-root /path/to/tutorial-outputs \
--out-dir docs/src/assets/tutorials \
--targets all --samples 48
# 1280×720 H.264 validation movies (24 fps)
python tutorials/render_movies.py \
--media-dir /path/to/trajectories \
--p2-root /path/to/tutorial-outputs \
--out-dir docs/src/assets/tutorials \
--targets all --samples 16 --fps 24