Skip to content

Examples molecular dynamics

Juvenal Yosa edited this page Nov 20, 2026 · 4 revisions

DRC with the new keywords TEMPERATURE=, BUSSI= and SEED= gives NVE and NVT dynamics. MOPAC picks its own time step (about 0.1 fs when hydrogens move). The ERROR column of the DRC table is the integration error only, also in NVT: the energy exchanged with the thermostat is booked separately.

Trajectories of the GPU and the CPU drift apart after a few femtoseconds (small SCF differences grow, as in any chaotic dynamics); compare averages, not individual frames.

26. NVE dynamics at 300 K: TEMPERATURE

New keyword. TEMPERATURE=300 starts the dynamics (DRC) from Maxwell–Boltzmann velocities at 300 K, with zero net momentum and a kinetic energy of exactly ½(3N−3)kT. Without a thermostat the total energy is conserved (NVE). T-PRIORITY=0.5 prints a row every 0.5 fs, CYCLES=200 stops after 200 rows (100 fs); the trajectory is written to <input>.xyz.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC TEMPERATURE=300 T-PRIORITY=0.5 CYCLES=200 GEO_DAT="1UAO_opt.pdb"
Chignolin, NVE at 300 K

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

27. NVT dynamics: BUSSI thermostat

New keyword. BUSSI=100 keeps the temperature at 300 K with the stochastic velocity-rescaling thermostat of Bussi, Donadio and Parrinello (canonical ensemble), coupling time 100 fs. Every 50 integration steps the output prints the instantaneous and mean temperature and the energy exchanged with the bath (ENERGY TO BATH; positive: taken out of the system, negative: put in). Full description: BUSSI.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC TEMPERATURE=300 BUSSI=100 T-PRIORITY=0.5 CYCLES=200 GEO_DAT="1UAO_opt.pdb"
Chignolin, NVT 300 K

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

28. Equilibrate with a tight coupling first

From an energy minimum, half of the kinetic energy flows into potential energy in the first ~10 fs and the temperature falls to about T/2. A short coupling time (10 fs) brings it back quickly; then sample with a looser coupling or NVE.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC TEMPERATURE=300 BUSSI=10 T-PRIORITY=0.5 CYCLES=100 GEO_DAT="1UAO_opt.pdb"
Chignolin, NVT equilibration

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

29. Reproducible velocities: SEED

New keyword. SEED=n fixes the random numbers of the starting velocities and of the thermostat. On the CPU the same seed gives the same trajectory; on the GPU the SCF is not bit-reproducible, so trajectories drift apart slowly.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC TEMPERATURE=300 BUSSI=100 SEED=42 T-PRIORITY=0.5 CYCLES=200 GEO_DAT="1UAO_opt.pdb"
Chignolin, NVT, seed 42

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

30. Independent replicas

Run the same input with different seeds for independent trajectories (one input file each).

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC TEMPERATURE=300 BUSSI=100 SEED=1 T-PRIORITY=0.5 CYCLES=200 GEO_DAT="1UAO_opt.pdb"
Replica 1

Replicas 2 and 3: the same with SEED=2 and SEED=3.

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

31. Dynamics in implicit water

NVT with COSMO; SWIG keeps the energy smooth as the surface changes, HB-SMOOTH does the same for the hydrogen-bond correction.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME EPS=78.4 SWIG HB-SMOOTH DRC TEMPERATURE=310 BUSSI=100 SEED=7 T-PRIORITY=1 CYCLES=500 GEO_DAT="1UAO_opt.pdb"
Chignolin in water at 310 K

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=3.

32. Heating in stages

Several short NVT runs at rising temperature, each from the last frame of the previous one (last_frame_pdb in scripts/mozyme_md_workflow.py writes it as a PDB). The first stage:

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC TEMPERATURE=100 BUSSI=20 T-PRIORITY=0.5 CYCLES=100 GEO_DAT="1UAO_opt.pdb"
Heating, 100 K

Then TEMPERATURE=200 and TEMPERATURE=300, each with GEO_DAT pointing at the last frame of the stage before.

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

33. Classic DRC with a kinetic energy

Without TEMPERATURE, DRC behaves as in standard MOPAC; KINETIC=20 adds 20 kcal/mol along the initial gradient.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME DRC KINETIC=20 T-PRIORITY=0.5 CYCLES=40 GEO_DAT="1UAO_opt.pdb"
Chignolin, classic DRC

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=4.

34. Dynamics of a larger protein

Crambin NVE: 0.27 s per step on an A100 against 11 s on one CPU core; 1 ps (about 10 000 steps of ~0.1 fs) takes about 45 minutes on the GPU.

Copy next to the input: tests/data/mozyme_gpu_reference/1CRN_opt.pdb

PM7 MOZYME DRC TEMPERATURE=300 SEED=11 T-PRIORITY=0.5 CYCLES=200 GEO_DAT="1CRN_opt.pdb"
Crambin, NVE 300 K

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=2.

Clone this wiki locally