Skip to content

Tutorial T14: Anisotropic Bilayer Membranes (:semiisotropic NPT + LJPME) & Solvated Protein Stability (4 fs HMR + GSD Restarts) ​

Scripts: tutorials/T14_bilayer_protein_npt/run.jl · analyze.jl · plot.py

Biomolecular simulations combine anisotropic interfaces, long-range electrostatic and dispersion forces, multi-component bonded topologies, holonomic constraints, and long-horizon restartable production runs. Two canonical test cases exercise these components simultaneously:

  1. Hydrated lipid bilayers under semiisotropic NPT couple lateral membrane tension to the missing long-range Lennard-Jones dispersion tail across the aqueous–hydrocarbon interface. As demonstrated by Wennberg, Murtola, Hess & Lindahl (2013, 2015) and Yu et al. (2021), truncating Lennard-Jones dispersion at   lowers interfacial attraction, expanding the lateral area per lipid relative to lattice-summed dispersion and lowering acyl-chain segmental order . Restoring periodic lattice dispersion with DispersionESP (LJPME) substantially reduces cutoff sensitivity while running inside GPU-resident :semiisotropic molecular Monte Carlo barostat moves.

  2. Solvated folded polypeptides at   via Hydrogen Mass Repartitioning (HMR) accelerate simulation throughput by shifting from each bonded heavy atom onto its constrained covalent hydrogen (m_H = 3.024 u, conserving molecular mass, Hopkins et al. 2015). Sustaining the native -helical fold of Ace–Ala₁₂–Nme in explicit TIP3P water (Hornak et al. 2006; Best & Hummer 2009) at requires sub- constraint accuracy from :df64 SETTLE on water and ConstraintClusters (SHAKE/RATTLE) on all 67 protein bonds, cotangent-projected constrained BAOABFast with uniform friction_rate, GPU-resident StochasticCellRescaling (DeviceCRescale), and reproducible GSDWriter checkpoint restarts.

This tutorial constructs both biomolecular systems programmatically in ParticleDynamics v1.2.0 using GROMACS units (,  , , , ) without external coordinate or topology downloads:

  • Part A: Hydrated Hybrid UA-DMPC Bilayer (128 lipids + 3,328 rigid SPC/E waters = 15,872 atoms, , ): Out-of-place MonteCarloBarostat(; mode=:semiisotropic, scale=:molecules, tune=true) coupled with cotangent-projected BAOABFast (friction_rate = 1.0 ps⁻¹), :df64 SETTLE, tune_dispersion, automatic fused dual-mesh C²-ESP + DispersionESP, 1.60 ns equilibration + 1.60 ns production per branch, and a midpoint (800 ps) GSDWriter ParticleSystem.from_gsd + electrostatics_from_gsd + dispersion_from_gsd + restore_barostat! restart audit.

  • Part B: Solvated All-Atom AMBER ff99SB* α-Helix (Ace–Ala₁₂–Nme, 132 protein atoms + 1,275 rigid TIP3P waters = 3,957 atoms, , ): minimize!(sim; method=FIRE(...)), full ff99SB* bonded terms (HarmonicBondForce, HarmonicAngleForce, PeriodicDihedralForce, HarmonicImproperForce) + AMBER 1–4 scaled_pairs, ConstraintClusters.extract_hbond_constraints + apply_hmr, ConstraintClusterSpec (constraint_mode = :df64 by default in v1.2.0), StochasticCellRescaling (DeviceCRescale), 2 fs vs. 4 fs HMR kinetic-persistence and thermodynamic parity across 4.0 ns each (density agreement     , 0.21σ), and a continuous 2.0 ns midpoint GSD checkpoint restart.

Trajectory Visualization ​

Live Fresnel Studio Dashboard (T14): Side-by-side hydrated hybrid UA-DMPC lipid bilayer under semiisotropic LJPME Monte Carlo NPT (15,872 atoms, left) and 4 fs HMR solvated Ace–Ala₁₂–Nme α-helix (3,957 atoms, right), plotting live area per lipid A_L(t) against the truncated-LJ expansion and backbone RMSD(t) (tutorials/render_movies.py --targets T14).

Studio Fresnel snapshot of the hydrated UA-DMPC bilayer and solvated alpha-helix


1. Physical Models & Statistical-Mechanical Observables ​

Part A: Semiisotropic Lipid Bilayer Mechanics and Lattice Dispersion ​

We assemble a hydrated 46-united-atom dimyristoylphosphatidylcholine (hybrid UA-DMPC, molar mass , twin myristoyl acyl chains, Berger/OPLS zwitterionic choline + phosphate + glycerol-ester headgroup, Lipid14/CHARMM-style partial charges summing to  , planar ester carbonyl impropers, and Martin–Siepmann TraPPE-UA alkane torsions) bilayer of   lipids ( per leaflet) solvated by explicit rigid SPC/E waters ( waters/lipid, giving a bulk aqueous slab separating periodic bilayer images).

Model Scope: Unrefitted Hybrid UA-DMPC vs. Experimental DMPC

Part A constructs a self-contained hybrid united-atom DMPC model (Berger/OPLS LJ + TraPPE-UA torsions + Lipid14-style charges) specifically to demonstrate Hamiltonian cutoff sensitivity (truncated LJ vs. DispersionESP lattice dispersion) inside a semiisotropic MC NPT bilayer. Because Berger-style lipid LJ parameters were originally calibrated with finite cutoffs, turning on full periodic lattice dispersion adds attractive tail energy and condenses the model to    at , which is   below the experimental fluid DMPC area of Kučerka et al. (2005, 2011) (  at , at ). As documented by Wennberg et al. (2013) and Yu et al. (2021), matching experimental lipid areas under LJPME requires dedicated LJPME parameter refitting (such as CHARMM36/LJPME); Part A therefore validates cutoff-sensitivity suppression and semiisotropic MC NPT mechanics rather than claiming experimental A_L reproduction for an unrefitted cutoff-calibrated force field. Likewise, 1.60 ns equilibration plus 1.60 ns production per branch captures rapid area relaxation (Stage 1 Stage 2  ) while remaining shorter than the slow collective undulation modes of full-scale membrane production studies.

Under the semiisotropic NPT ensemble (     ,  ), trial Monte Carlo volume moves propose independent log-lateral scaling (  strictly coupled, fixed) and log-normal scaling ( scaled, fixed), translating every lipid and rigid water molecule rigidly by its molecular center of mass (scale=:molecules) so intramolecular bonds and water geometry remain unstrained. From each bilayer snapshot centered on the circular hydrocarbon center of mass , we measure:

  1. Area per lipid:

    which is inversely coupled to interfacial dispersion attraction across the lipid–water boundary.

  2. Headgroup-to-headgroup thickness : the mean vertical separation between the upper ( ) and lower ( ) leaflet phosphate (P) planes.

  3. Acyl-chain deuterium order parameter ( ): reconstructed for each united-atom carbon from its two virtual tetrahedral unit vectors defined by adjacent carbons    (Egberts & Berendsen 1988):

  4. Transmembrane number-density profiles for water , phosphate , choline , and hydrocarbon tail beads.

When Lennard-Jones dispersion is truncated and shifted at   (vdw_modifier=:potential_shift, matching GROMACS Potential-shift-Verlet), missing   attractive pairs between the dense hydrocarbon core and aqueous interface reduce restoring lateral tension, expanding and lowering . Replacing truncated LJ with DispersionESP sums the full periodic lattice interaction (including the   mode) on a prolate mesh co-gridded with ESP(continuity=:c2). For geometric combination rules,   is exact; for heterogeneous Lorentz–Berthelot pair tables (  vs.  ), ParticleDynamics v1.2.0 computes composition-weighted Rank-1 SVD dispersion charges (  from the Perron–Frobenius leading eigenvector of ) and switches the smaller residual   smoothly to zero on   (Wennberg et al. 2015), suppressing cutoff sensitivity by more than   compared to truncated LJ.

Part B: All-Atom AMBER ff99SB* α-Helix (Ace–Ala₁₂–Nme) and 4 fs HMR ​

We programmatically generate an ideal right-handed all-atom -helix (     , 132 protein atoms,   net charge) parameterized with AMBER ff99SB* harmonic bonds, harmonic angles, multi-term backbone/sidechain Fourier torsions (Hornak et al. 2006; Best & Hummer 2009), planar peptide carbonyl and amide HarmonicImproperForce terms, and AMBER 1–4 nonbonded scaling (i, j, 1/1.2, 0.5) solvated in rigid TIP3P waters (3,957 total atoms in a cubic cell at ).

Constraining all 67 protein covalent bonds removes the fastest bond stretches (), leaving angle bends () as the timestep bottleneck. Following Hopkins, Le Grand, Walker & Roitberg (2015), ConstraintClusters.apply_hmr increases every non-water hydrogen mass to   while deducting    from its covalently bonded heavy atom ( ), slowing hydrogen-bending frequencies by and stabilizing   dynamics without altering the equilibrium configurational partition function. Over 4.0 ns starting from an ideal helix, Part B measures short-timescale kinetic persistence of the folded -helical state (not equilibrium helix–coil folding/unfolding, which spans hundreds of nanoseconds to microseconds in Best & Hummer 2009) via Kabsch-aligned backbone heavy-atom RMSD (48 atoms: of ), the 10 native    -helical backbone H-bonds (  and  ), and the Ramachandran -helical basin fraction (   ,   ).


2. ParticleDynamics v1.2.0 API Walkthrough ​

Part A: :semiisotropic MC NPT, Dual-Mesh DispersionESP, and dispersion_from_gsd Restarts ​

After unconstrained FIRE minimization (111 iterations to     with temporary harmonic water springs and an core guard on water H, followed by water geometry reprojection) and 600 ps shared equilibration, tune_dispersion benchmarks candidate DispersionESP meshes directly on the GPU against a reference:

julia
tuned = tune_dispersion(state(sim_t), DispersionESP(real_cutoff=rc);
                        target=1e-4, reference_tolerance=1e-6)
# UA_DMPC_bilayer (rc=0.90 nm): tol=1e-2, mesh=(24, 24, 32), rel_force_err=1.05e-7
# UA_DMPC_bilayer (rc=1.10 nm): tol=1e-2, mesh=(20, 20, 27), rel_force_err=9.81e-8

Pairing ESP(continuity=:c2) and DispersionESP without pinning conflicting meshes activates ClusterBackend's fused dual-mesh spread/FFT/gather pipeline. In ParticleDynamics v1.2.0, several engine upgrades apply directly to bilayer and solvated-protein NPT workflows:

  • Default B2ProlateWindow (kernel=:b2) and single-tile dual-mesh P = 5, 6 with heavy-atom compaction: Both ESP(continuity=:c2) and DispersionESP default to charge- and dipole-conserving B2ProlateWindow (kernel=:b2) stencils. For dual-mesh P = 5, 6 spread and gather, a single shared-memory tile processes Coulomb and dispersion sequentially while compacting dispersion-active atoms (s6 != 0) so zero-s6 hydrogens skip the dispersion pass.

  • Composition-weighted Rank-1 SVD Lorentz–Berthelot dispersion charges (s6_a >= 0): On Lorentz–Berthelot pair tables, DispersionESP automatically factors C_6 via the composition-weighted Rank-1 SVD to minimize the real-space mixed-pair residual at zero extra mesh cost.

  • Out-of-place MonteCarloBarostat and BAOAB-RESPA NPT super-batching: Trial volume moves evaluate scaled coordinates out-of-place with fused posq packing (avoiding save/restore copies on rejected moves), and both MonteCarloBarostat and StochasticCellRescaling support BAOAB-RESPA (mts_mesh_interval > 1) inside captured NPT super-batches.

Each bilayer branch runs 1.00 ns of per-Hamiltonian :semiisotropic equilibration (1.60 ns total equilibration) with adaptive MonteCarloBarostat(..., tune=true) before freezing log_volume_step (tune=false) for 1.60 ns of production under detailed balance:

julia
# Use vdw_modifier=:none with DispersionESP (C² prolate split vanishes smoothly at r_c
# with zero shift) and vdw_modifier=:potential_shift for truncated LJ comparisons.
forces = Force[
    LennardJones(pair_table=pt, pairs=:neighborlist,
                 neighborlist=ClusterPairList(buffer=0.12, force_accumulation=:fixed64),
                 vdw_modifier=use_ljpme ? :none : :potential_shift),
    ESP(coulomb_prefactor=138.93545764498226, real_cutoff=rc, tolerance=5e-4,
        continuity=:c2, exclusions=:none, scaled_pairs=exc4),
    # Add DispersionESP for LJPME cases (co-grids automatically with C²-ESP):
    DispersionESP(real_cutoff=rc, tolerance=5e-4),
    bonded_forces...,
]

baro_eq = MonteCarloBarostat(
    pressure=0.0602214076, kT=kB * 323.0, interval=25, log_volume_step=0.008,
    mode=:semiisotropic, scale=:molecules, tune=true, seed=UInt64(1530),
)
# ... equilibrate 1.00 ns, read tuned_frac = barostat_diagnostics(sim).log_volume_step ...
baro_prod = MonteCarloBarostat(
    pressure=0.0602214076, kT=kB * 323.0, interval=25, log_volume_step=tuned_frac,
    mode=:semiisotropic, scale=:molecules, tune=false, seed=UInt64(1630),
)

At the 800 ps midpoint of the DispersionESP (0.90 nm) production run, we write a single-frame GSD checkpoint (GSDWriter) and reconstruct a fresh Stage 2 Simulation via ParticleSystem.from_gsd, electrostatics_from_gsd, dispersion_from_gsd, and restore_barostat!:

julia
# Stage 1 checkpoint flush (attach GSDWriter & prepare before snapshotting live state)
sim.writers = Writer[GSDWriter(ckpt_path; every=1, write_start=true, mode=:replace)]
prepare!(sim)
run!(sim, Stage(:bilayer_ckpt, steps=0; progress=false))

# Stage 2 reload: coordinates, velocities, box, C²-ESP, DispersionESP, & barostat state
sys_gsd      = ParticleSystem.from_gsd(ckpt_path; frame=-1)
esp_gsd      = electrostatics_from_gsd(ckpt_path; frame=-1)
disp_gsd     = dispersion_from_gsd(ckpt_path; frame=-1)
baro_rec_gsd = read_gsd_log(ckpt_path, "log/barostat/state"; frame=-1)

sim_s2 = Simulation(sys_s2; groups=Groups(allp), observables=[thermo], precision=:f32,
                    integrator=Integrator(dt=0.002, scheme=BAOABFast(), forces=forces_s2,
                                          methods=[Langevin(allp; friction_rate=1.0, kT=kT)],
                                          constraints=[rw_constr], barostat=baro_prod))
prepare!(sim_s2)
restore_barostat!(sim_s2, baro_rec_gsd)

Uniform friction_rate, cotangent-projected constrained BAOAB & full-step T_full

Both Part A and Part B use Langevin(allp; friction_rate=1.0, kT=kT) during production (friction_rate = 2.0 ps⁻¹ during equilibration), assigning every atom the identical velocity relaxation rate    regardless of mass (m_H = 1.008 u, m_H,HMR = 3.024 u, m_O = 16 u, or 31 u phosphorus). With cotangent-space RATTLE velocity projections on both the B1 and O steps of constrained BAOABFast, rotational overheating is eliminated across 2 fs and 4 fs timesteps. Because ThermodynamicObservable evaluates the full-step projected kinetic temperature on constrained systems, stiff harmonic bonds and rigid-water librations display the analytical Leimkuhler–Matthews full-step shadow shift   (Leimkuhler & Matthews 2013; Fass et al. 2018):   for the hydrated UA-DMPC bilayer at (combining SPC/E librations and stiff lipid bonds), for the solvated helix, and for the HMR helix, while configurational density matches between and to within 0.21σ. Pair DispersionESP with vdw_modifier = :none rather than :potential_shift.

Part B: extract_hbond_constraints, apply_hmr, ConstraintClusterSpec, and DeviceCRescale ​

From the full AMBER bond topology, ConstraintClusters.extract_hbond_constraints isolates all 67 protein bonds (excluding waters handled by :df64 SETTLE), and apply_hmr repartitions hydrogen masses to 3.024 u with machine-precision mass conservation. In ParticleDynamics v1.2.0, ConstraintClusterSpec (and HBondConstraints) defaults to compensated DF64 (constraint_mode = :df64) on Float32 states alongside RigidWaterConstraint(settle_mode = :df64):

julia
h_cons     = ConstraintClusters.extract_hbond_constraints(topo_bonds, bond_r0s, masses;
                                                          water_atoms=water_set)
masses_hmr = ConstraintClusters.apply_hmr(masses, h_cons;
                                          hydrogen_mass=3.024, water_atoms=water_set)

rw_constr = RigidWaterConstraint(waters; oh=0.09572, hh=0.15139006545247014, settle_mode=:df64)
cc_constr = ConstraintClusterSpec(h_cons; tolerance=1e-7, maxiter=100, project_initial=true)

baro = StochasticCellRescaling(
    pressure=0.0602214076, kT=kB * 300.0, compressibility=4.5e-5 / 0.0602214076,
    tau=1.0, interval=10, seed=UInt64(3002),
)
sim = Simulation(
    sys; groups=Groups(allp), observables=[thermo], precision=:f32,
    integrator=Integrator(
        dt=0.004, scheme=BAOABFast(), forces=forces_md,
        methods=[Langevin(allp; friction_rate=1.0, kT=kB * 300.0)],
        constraints=[rw_constr, cc_constr], barostat=baro,
    ),
)

At   (step 500,000), helix_4fs_hmr flushes a GSD checkpoint and reloads ParticleSystem.from_gsd (preserving the HMR mass vector with  ), electrostatics_from_gsd, and restore_barostat!, then completes Stage 2 (2.0–4.0 ns) on the GPU-resident DeviceCRescale engine.


3. Results & Visual Verification ​

Part A: Hydrated Hybrid UA-DMPC Bilayer (323 K, 1 bar, 1.60 ns Eq. + 1.60 ns Prod.) ​

Part A: Hydrated Hybrid UA-DMPC Lipid Bilayer under Semiisotropic MC NPT: Truncated LJ vs. Dual-Mesh DispersionESP

  • Truncation bias in & continuous GSD restart (Panels a & b): Truncating Lennard-Jones dispersion at   expands the lateral area per lipid to   , a +5.78% (+0.0282 ± 0.0021 nm², 13.7σ) expansion relative to fused dual-mesh DispersionESP at the same cutoff ( :   ), reproducing the Wennberg et al. (2013, 2015) / Yu et al. (2021) cutoff-expansion trend. Extending the truncated cutoff to   moves monotonically toward the lattice-dispersion value (  ,    , ). Comparing DispersionESP at   vs. ( ) suppresses cutoff sensitivity by   down to     (1.03%, 3.34σ, arising from the switched Lorentz–Berthelot mixed-pair residual and slow collective area fluctuations). Across the 0.80 ns GSD checkpoint restart (dotted line in Panel a), dispersion_from_gsd and electrostatics_from_gsd recover coordinates, velocities, box, mesh, and dual-mesh status (dr = 0.0, dv = 0.0, dbox = 0.0,   ) with smooth Stage 1 Stage 2 continuity (   , 0.81σ;    , 1.22σ;  ;  ).

  • Lamellar hydration integrity & hydrocarbon core packing (Panel c): Every simulated bilayer remains a defect-free planar lamellar membrane (zero water and zero phosphate in the hydrocarbon core  , bulk water density under LJPME vs. under truncated 0.90 nm LJ). Enabling DispersionESP raises the hydrocarbon midplane number density by +17.6% (26.3 vs. 22.3 nm⁻³). Because this unrefitted hybrid model is already strongly condensed at   (below the experimental 0.633 nm² fluid value of Kučerka et al. 2011), its phosphate-to-phosphate thickness saturates near full chain extension (D_HH = 4.004 ± 0.007 nm vs. 4.018 ± 0.012 nm,    , 1.1σ, reported as a diagnostic).

  • Acyl-chain segmental order & semiisotropic breathing (Panel d & inset): Full lattice dispersion raises acyl-chain ordering across every carbon C2–C13 (    at and   at , peaking at near C4–C6) relative to Truncated LJ (0.90 nm) (   ,    , 4.5σ). The inset confirms independent anisotropic box breathing (  vs.  ) while preserving lateral coupling (  ), balanced MC acceptance (45–52%), unstrained intramolecular bonds ( ), and sub-  SETTLE precision.

Part B: Solvated α-Helix (Ace–Ala₁₂–Nme in TIP3P, 300 K, 1 bar, 4.0 ns Each) ​

Part B: Solvated Ace-Ala12-Nme alpha-Helix in TIP3P Water: 2 fs vs. 4 fs HMR, Holonomic Constraints, and Zero-Drift GSD Restart

  • Folded -helix kinetic persistence & 2 fs vs. 4 fs HMR parity (Panels a & b): Across of continuous NPT production starting from an ideal helix, Ace–Ala₁₂–Nme maintains its native -helical fold under both timesteps, with statistically consistent backbone heavy-atom RMSD (0.0867 ± 0.0158 nm at 2 fs vs. 0.0638 ± 0.0073 nm at 4 fs HMR;    , 1.31σ), mean    H-bond occupancy (69.8% ± 3.4% vs. 75.2% ± 2.5%, 1.27σ), and Ramachandran -basin fraction (90.1% ± 2.2% vs. 94.3% ± 0.8%, Panel b inset). Core H-bonds 2→6 through 6→10 stay high (80–86%) alongside realistic C-terminal fraying (37–43% at 9→13, Best & Hummer 2009).

  • Continuous GSD checkpoint restart & sub-  holonomic accuracy (Panel c): Splitting the 4 fs HMR production across a GSDWriter ParticleSystem.from_gsd + electrostatics_from_gsd + restore_barostat! checkpoint at   recovers state with zero coordinate/velocity/box/mass discrepancy (dr = 0.0, dv = 0.0, dbox = 0.0, dm = 0.0 on HMR masses,   ) and continuous Stage 1 Stage 2 averages (   , 0.15σ;     , 1.59σ;    , 0.79σ). Over all 4 fs steps, :df64 SETTLE holds    () and ConstraintClusters holds all 67 protein bonds to    ( ).

  • GPU NPT speedup & configurational density invariance (Panel d): Doubling the timestep with 4 fs HMR (m_H = 3.024 u,  ) sustains 8,681 steps/s (4 fs HMR) versus 10,486 steps/s (2 fs) on an RTX 3090, yielding a 1.66× simulated-time wall-clock speedup on a 3,957-atom solvated protein, while preserving bulk NPT density to 0.21σ (  vs.   ,     ) with zero rotational overheating (T_full = 298.00 ± 0.16 K vs. 291.76 ± 0.12 K).


4. Quantitative Production Summary ​

Measured on an NVIDIA RTX 3090 (Float32, ClusterPairList(force_accumulation=:fixed64), CompactFFT) with 8-block standard errors of the mean.

Part A: Hydrated Hybrid UA-DMPC Bilayer (128 lipids, 3,328 SPC/E waters, 15,872 atoms, 323 K, 1 bar, 1.60 ns prod.) ​

Configuration (nm)Dual-MeshMesh () (nm)  (K)MC Acc. ( / ) (nm)Throughput
Truncated LJ + C²-ESP0.90false      48.7% / 44.9% 6,499 steps/s
Truncated LJ + C²-ESP1.20false      47.8% / 51.8% 5,156 steps/s
Dual-mesh DispersionESP (S1+S2)0.90true      49.6% / 51.1% 5,532 steps/s
Dual-mesh DispersionESP1.10true      51.7% / 49.1% 4,942 steps/s
Context (Wennberg 2013, 2015; Kučerka 2011)trunc vs. LJPME––Trunc. expands (exp. DMPC )Saturated near Drops on trunc. target–––

Part B: Solvated α-Helix Ace–Ala₁₂–Nme (132 protein + 1,275 TIP3P waters, 3,957 atoms, 300 K, 1 bar, 4.0 ns prod.) ​

Configuration (fs)HMR (u)Backbone RMSD (nm)Native H-BondsHelical ( ) (K) / (nm)Throughput
Standard Masses2.01.008       /  10,486 steps/s
HMR (S1 + S2 GSD restart)4.03.024       /  8,681 steps/s (1.66× time rate)
Difference ( )––  (1.31σ)  (1.27σ)  (1.80σ)  (0.21σ)  (shadow) /  1.66× (Hopkins 2015)

Validation & Software Regression Audit (22/22 Physics PASS | 37/37 Software/API CHECK_OK) ​

Physics validation gates are tracked strictly separately from software/API regression checks and non-gated diagnostics:

CategoryValidation MetricMeasured (ParticleDynamics)CriterionStatus
PhysicsWennberg (2013) 0.90 nm truncated expansion    (, ), PASS
PhysicsMonotonic 1.20 nm truncated ordering  Strictly monotonicPASS
PhysicsDispersionESP   increase vs. 0.90 nm trunc.     (), PASS
PhysicsDispersionESP cutoff suppression (0.90 vs. 1.10 nm)    (1.03%, 5.6× below trunc.)  trunc. shiftPASS
PhysicsBilayer full-step & Stage 1 2 continuity (all 4 runs);     (0.81σ)No overheating, PASS
PhysicsHelix 2 fs vs. 4 fs HMR density & RMSD consistency    (0.21σ);     (1.31σ) / PASS
PhysicsHelix 4 fs kinetic persistence & no rotational overheating , H-bond 75.2%,  ;   Folded,   PASS
PhysicsHelix Stage 1 2 checkpoint continuity (2.0 ns)    (0.15σ),     (1.59σ)PASS
DiagnosticHybrid model vs. experimental DMPC (Kučerka 2011)    (vs. 0.633 nm² at 50 °C)Unrefitted Berger-LJ scopeDIAG
DiagnosticBilayer (0.90 nm trunc. vs. LJPME) & S1S2     (1.1σ); S1S2  Condensed-bilayer saturationDIAG
Software/APItune_dispersion force error (0.90 / 1.10 nm)  /   CHECK_OK
Software/API:semiisotropic scale=:molecules, dual-mesh & SETTLE (4 runs)  ,  ,   , 0 NaNsGeometry & coupling invariantsCHECK_OK
Software/APIBilayer & helix GSD checkpoint reload (dispersion_from_gsd + electrostatics_from_gsd)dr=0, dv=0, dbox=0, dm=0, disp/elec/dual=true,    /  Reload invariance ()CHECK_OK
Software/APIHelix HMR mass conservation, 67 constraints & speedup ,   ,   , 1.66× /  ,  CHECK_OK

5. Running the Tutorial ​

bash
# Quick GPU smoke verification (< 2 s warm GPU compute after JIT; 72 lipids + 452-water helix)
TUTORIAL_FAST=1 julia --project tutorials/T14_bilayer_protein_npt/run.jl
TUTORIAL_FAST=1 julia --project tutorials/T14_bilayer_protein_npt/analyze.jl

# Full production validation (128-lipid DMPC bilayer 4 x 1.60 ns eq + 1.60 ns prod + 3,957-atom helix 2 x 4.0 ns)
julia --project tutorials/T14_bilayer_protein_npt/run.jl
julia --project tutorials/T14_bilayer_protein_npt/analyze.jl

# Regenerate 300-DPI documentation figures
python3 tutorials/T14_bilayer_protein_npt/plot.py

6. Extending Beyond Classical Force Fields: External Potentials & MLIPs ​

All fourteen tutorials use native-Julia GPU classical force fields (nonbonded pair models, long-range C²-ESP electrostatics and DispersionESP lattice dispersion, typed bonded force fields, and holonomic constraints). To couple custom external fields or machine-learned interatomic potentials (MLIPs) with the same ParticleDynamics integrators, thermostats, barostats, and GSD I/O stack, see the ExternalPotentialForce protocol in the Interactions Manual and the standalone examples in examples/mace/ and examples/orb/.


References ​

  1. C. L. Wennberg, T. Murtola, B. Hess & E. Lindahl, "Lennard-Jones lattice summation in bilayer simulations has critical effects on surface tension and lipid properties," J. Chem. Theory Comput. 9, 3527–3537 (2013).

  2. C. L. Wennberg, T. Murtola, S. Páll, M. J. Abraham, B. Hess & E. Lindahl, "Direct-space corrections enable fast and accurate Lorentz–Berthelot combination rule Lennard-Jones lattice summation," J. Chem. Theory Comput. 11, 5737–5746 (2015).

  3. Y. Yu, A. Krämer, R. M. Venable, B. R. Brooks, J. B. Klauda & R. W. Pastor, "CHARMM36 lipid force field with explicit treatment of long-range dispersion: parametrization and validation for phosphatidylethanolamine, phosphatidylglycerol, and ether lipids," J. Chem. Theory Comput. 17, 1581–1595 (2021).

  4. O. Berger, O. Edholm & F. Jähnig, "Molecular dynamics simulations of a fluid bilayer of dipalmitoylphosphatidylcholine at full hydration, constant pressure, and constant temperature," Biophys. J. 72, 2002–2013 (1997).

  5. E. Egberts & H. J. C. Berendsen, "Molecular dynamics simulation of a smectic liquid crystal with atomic detail," J. Chem. Phys. 89, 3718–3732 (1988).

  6. N. Kučerka, Y. Liu, N. Chu, H. I. Petrache, S. Tristram-Nagle & J. F. Nagle, "Structure of fully hydrated fluid phase DMPC and DLPC lipid bilayers using X-ray scattering from oriented multilamellar arrays and from unilamellar vesicles," Biophys. J. 88, 2626–2637 (2005).

  7. N. Kučerka, M.-P. Nieh & J. Katsaras, "Fluid phase lipid areas and bilayer thicknesses of commonly used phosphatidylcholines as a function of temperature," Biochim. Biophys. Acta 1808, 2761–2771 (2011).

  8. C. W. Hopkins, S. Le Grand, R. C. Walker & A. E. Roitberg, "Long-time-step molecular dynamics through hydrogen mass repartitioning," J. Chem. Theory Comput. 11, 1864–1874 (2015).

  9. R. B. Best & G. Hummer, "Optimized molecular dynamics force fields applied to the helix–coil transition of polypeptides," J. Phys. Chem. B 113, 9004–9015 (2009).

  10. V. Hornak, R. Abel, A. Okur, B. Strockbine, A. Roitberg & C. Simmerling, "Comparison of multiple Amber force fields and development of improved protein backbone parameters," Proteins 65, 712–725 (2006).

  11. M. Bernetti & G. Bussi, "Pressure control using stochastic cell rescaling," J. Chem. Phys. 153, 114107 (2020).

  12. S. Miyamoto & P. A. Kollman, "SETTLE: An analytical version of the SHAKE and RATTLE algorithm for rigid water models," J. Comput. Chem. 13, 952–962 (1992).

  13. B. Leimkuhler & C. Matthews, "Rational construction of stochastic numerical methods for molecular sampling," Appl. Math. Res. eXpress 2013(1), 34–56 (2013).

  14. J. Fass, D. A. Sivak, G. E. Crooks, K. A. Beauchamp, B. Leimkuhler & J. D. Chodera, "Quantifying configuration-sampling error in Langevin simulations of complex molecular systems," Entropy 20(5), 318 (2018).

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