Skip to content

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

All snapshots and movies are path-traced directly from GPU GSD trajectories (tutorials/_fresnel_studio.py).

Curriculum ​

#TutorialKey FeaturesReferenceValidation Summary
T01Lennard-Jones EOS & TransportLennardJones, :ell NVE, VirialObservable, VACFObservable, MSDObservableJohnson et al. (1993); Meier et al. (2004); Thol et al. (2015, 2016)Tail-corrected within 0.23% and   vs. MBWR; Einstein & GK within Meier et al. bounds
T02Canonical Thermostat AccuracyBAOAB, BAOABFast, CSVR, NoseHooverChain, BathExchangeObservableLeimkuhler & Matthews (2013); Bussi et al. (2007)At  : BAOAB/CSVR within of zero vs. NHC   (+6.9σ)
T03Jarzynski Work & PMFGPU-capturable AbstractExternalPotential, 262k-trajectory batchingJarzynski (1997); Hummer & Szabo (2001); Sivak et al. (2013)    recovered within (0.004–0.035 k_B T); PMF RMSE = 0.010 k_B T
T04Rigid Water: SPC/E vs TIP3PClusterPairList (:fixed64), C²-ESP + CompactFFT, :df64 SETTLE, C-rescale & MC barostatsBerendsen et al. (1987); Vega & Abascal (2011)Truncated   nm: SPC/E   ,    vs. TIP3P   ,   ; barostat    
T05Yeh–Hummer Finite-Size DiffusionMulti-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),   ; SPC/E   ,    (0.12σ vs. G&A)
T06LJPME Liquid–Vapor Surface TensionDual-mesh DispersionESP, tune_dispersion, :force_switch, :potential_switch, slab PressureObservableVega & 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
T07Aqueous NaCl Electrolytes (0–5 m)Multi-type PairTable, Lorentz–Berthelot mixing, per-species TypeSelection MSDJoung & 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); & metastability audited (5 m supersaturated);   
T08Polyelectrolyte Manning CondensationFrozen charged rod, FreezeGroup, monovalent & divalent WCA counterions, net_charge=:background, C²-ESPManning (1969); Deserno, Holm & May (2000)      (with   WCA contact depletion);      correlation over-condensation
T09Confined Fluids in Slit NanoporesAtomistic FreezeGroup walls, :additive AbstractExternalPotential (Steele 9–3), selective FIRE, anisotropic MSDSnook & Henderson (1978); Magda et al. (1985)Oscillatory & (   );    (-9.7σ)
T102D Melting & Hexatic Crossover2D PeriodicBox, hex_sites_in_box_2d, 2D WCA + custom GPU r⁻¹², CollisionObservable, & Bernard & Krauth (2011); Kapfer & Krauth (2015)  EOS coexistence slope collapse ( ); liquid crossover solid & progression
T11Active AOUP MIPS & Two-T WCAActiveOrnsteinUhlenbeck (EulerHeun, OUSpectrum), two-bath Langevin, WCA, BathExchangeObservableFodor et al. (2016); Martin et al. (2021); Weber, Weber & Frey (2016)AOUP MIPS (BC = 0.718, non-monotonic + check); 2D WCA demixing (  , 37/37 PASS)
T12Kremer–Grest Polymer MeltsFENEBondForce + WCA, CosineSquaredAngleForce, Float64 MSD, GSDWriter + ParticleSystem.from_gsd restartKremer & Grest (1990); Auhl et al. (2003); Hsu & Kremer (2016)  (7,000 beads):   , entanglement slowing    (Z≈1.15); GSD reload 0.0
T13Alanine Dipeptide 4 fs HMRAMBER bonded stack, 1–4 scaled_pairs, :df64 ConstraintClusters + apply_hmr, FIRE, nm/kJ vs. Å/kcalHopkins 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
T14Semi-Isotropic LJPME Bilayer & HelixMonteCarloBarostat(:semiisotropic, scale=:molecules), dispersion_from_gsd, 4 fs HMR Ace–Ala₁₂–Nme + GSD restartWennberg et al. (2013, 2015); Yu et al. (2021); Hopkins et al. (2015)Trunc. LJ +5.8% (13.7σ) bias vs. 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

ParticleDynamics v1.2.0 · GPU-native molecular dynamics in pure Julia · MIT License