Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions interfaces/ASE_interface/examples/metadynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@
from ase.io import read
from ase.md import Bussi
from ase.md.velocitydistribution import MaxwellBoltzmannDistribution
from ase.units import fs
from ase.units import (
fs,
kJ as _kJ,
mol as _mol,
)
_ps = 1000 * fs
from ase.constraints import FixCartesian
from ase.calculators.plumed import Plumed
from abacuslite import AbacusProfile, Abacus
Expand Down Expand Up @@ -109,7 +114,7 @@
MaxwellBoltzmannDistribution(atoms, temperature_K=300)

setup = [# define the unit within the PLUMED runtime
'UNITS LENGTH=A TIME=fs ENERGY=eV',
f'UNITS LENGTH=A TIME={1/_ps} ENERGY={_mol/_kJ}',
# define the two bond lengths
'd1: DISTANCE ATOMS=1,5',
'd2: DISTANCE ATOMS=1,6',
Expand Down
Loading