Skip to content

ParticleDynamicsGPU-native molecular dynamics in pure Julia

Device-resident CUDA-graph simulations for atomic fluids, soft and active matter, interfacial slabs, 4 fs biomolecules, and GPU machine-learned potentials.

ParticleDynamics logo
9,640 steps/s
DHFR 23.6k LJPME
4 fs HMR, RESPA M=2 on RTX 3090 (8,886 steps/s at M=1; 9,147 steps/s CSVR).
3,175 steps/s
Water 100k LJPME
100,002 atoms, dual-mesh LJPME on RTX 3090 (3,122 steps/s NPT-CR).
15.6×
Lower LB C₆ Cross Error
Rank-1 SVD dispersion charges reduce cross-term error from 36.5% to 2.35%.
14 suites
Validated Physics Tutorials
LJ EOS, rigid water, LJPME interfaces, electrolytes, polymers, active matter, and 4 fs HMR.
Architecture

Core Capabilities

Benchmarks & verification →
Flat CUDA-Graph Runtime

Device-resident CUDA graphs with K-step and NPT super-batching, molecule-anchored cluster pairs, and deterministic 64-bit fixed-point force accumulation.

Dual-Mesh C²-ESP & LJPME

Fewest-PSWF C² splits, B₂*g windows, single-tile dual-mesh P=4..6 with heavy-atom compaction, Rank-1 SVD LB dispersion, and CompactFFT up to 256³.

Biomolecular Constraints & NPT

Grouped GPU bonded terms, 1–4 scaling, default :df64 SETTLE and X–Hₙ ConstraintClusters, Float64 unwrapped coordinates, MC and C-rescale barostats.

Custom & ML Potentials

CUDA-graph-capturable AbstractExternalPotential (with MACE and Orb examples) and GPU-isbits AbstractPairPotential extensions via Julia dispatch.

2D/3D Soft & Active Matter

Periodic 2D and 3D systems covering Kremer–Grest polymers, AOUP active matter, two-temperature mixtures, confined nanopores, and electrolytes.

14 Validated Tutorials

Self-contained GPU validation scripts reproducing published benchmarks with block-averaged uncertainties, figures, and path-traced trajectories.

Path-Traced GPU Trajectories

Selected Simulations

All 14 tutorials →
Julia 1.11+ & CUDA

Install & Run

Quickstart guide →
julia
using Pkg
Pkg.add("ParticleDynamics")
julia
using ParticleDynamics

sim = Simulation(
    system;
    groups = Groups(all_atoms),
    integrator = Integrator(
        dt = 0.002,
        scheme = BAOABFast(),
        forces = [lj, esp, disp],
        methods = [Langevin(all_atoms; gamma = 1.0, kT = 2.479)],
        constraints = [RigidWaterConstraint(waters; settle_mode = :df64)],
        barostat = StochasticCellRescaling(pressure = 0.06022, kT = 2.479),
    ),
    observables = [thermo, press],
    writers = [TableWriter("thermo.csv"; every = 200), GSDWriter("traj.gsd"; every = 1_000)],
)

run!(sim, Stage(:equilibrate, steps = 50_000))
reset_observables!(sim)
run!(sim, Stage(:production, steps = 500_000))

Simulation Domains ​

DomainImplemented MethodsStarting Points
Lipid Membranes & BiomoleculesDual-mesh C²-ESP + DispersionESP, semi-isotropic NPT, 4 fs HMR, :df64 SETTLE & ConstraintClustersT14: Bilayer & α-Helix · T13: Alanine Dipeptide
Aqueous Solutions & InterfacesSPC/E, TIP3P, 0–5 m NaCl electrolytes, Rank-1 SVD LB dispersion, Yeh–Hummer 1/L scaling, slab surface tensionT04: Rigid Water · T06: LJPME Slab · T07: NaCl
Polymers, Polyelectrolytes & PoresFENE + WCA, semi-flexible angles, Float64 unwrapped MSD, GSD restarts, Manning condensation, FreezeGroup wallsT12: Entangled Melts · T08: DNA · T09: Nanopores
2D Melting, Active & Nonequilibrium2D PeriodicBox, ActiveOrnsteinUhlenbeck, two-temperature mixtures, Jarzynski work & PMF, BAOAB/CSVR/NHCT10: 2D Hexatic · T11: AOUP & Two-T · T03: Jarzynski
MLIPs & Custom PotentialsCUDA-graph-capturable AbstractExternalPotential (MACE & Orb examples), GPU-isbits AbstractPairPotentialInteractions & GPU MLIPs · Where to Touch

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