We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a2b8be commit d999af7Copy full SHA for d999af7
1 file changed
interfaces/ASE_interface/examples/metadynamics.py
@@ -47,7 +47,12 @@
47
from ase.io import read
48
from ase.md import Bussi
49
from ase.md.velocitydistribution import MaxwellBoltzmannDistribution
50
-from ase.units import fs
+from ase.units import (
51
+ fs,
52
+ kJ as _kJ,
53
+ mol as _mol,
54
+)
55
+_ps = 1000 * fs
56
from ase.constraints import FixCartesian
57
from ase.calculators.plumed import Plumed
58
from abacuslite import AbacusProfile, Abacus
@@ -109,7 +114,7 @@
109
114
MaxwellBoltzmannDistribution(atoms, temperature_K=300)
110
115
111
116
setup = [# define the unit within the PLUMED runtime
112
- 'UNITS LENGTH=A TIME=fs ENERGY=eV',
117
+ f'UNITS LENGTH=A TIME={1/_ps} ENERGY={_mol/_kJ}',
113
118
# define the two bond lengths
119
'd1: DISTANCE ATOMS=1,5',
120
'd2: DISTANCE ATOMS=1,6',
0 commit comments