File tree 3 files changed +23
-0
lines changed
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ from .ase_md import (
11
11
RescaleBoxModifier ,
12
12
TemperatureOscillatingRampModifier ,
13
13
TemperatureRampModifier ,
14
+ VelocityVerletDynamic ,
14
15
)
15
16
from .ase_standard import EMTSinglePoint , LJSinglePoint
16
17
from .cp2k import CP2KSinglePoint , CP2KYaml
@@ -29,6 +30,7 @@ __all__ = [
29
30
"xTBSinglePoint" ,
30
31
"LJSinglePoint" ,
31
32
"LangevinThermostat" ,
33
+ "VelocityVerletDynamic" ,
32
34
"ApaxJaxMD" ,
33
35
"RescaleBoxModifier" ,
34
36
"BoxOscillatingRampModifier" ,
Original file line number Diff line number Diff line change 15
15
from ase .md .langevin import Langevin
16
16
from ase .md .npt import NPT
17
17
from ase .md .velocitydistribution import MaxwellBoltzmannDistribution
18
+ from ase .md .verlet import VelocityVerlet
18
19
from tqdm import trange
19
20
20
21
from ipsuite import base
@@ -276,6 +277,25 @@ def get_thermostat(self, atoms):
276
277
return thermostat
277
278
278
279
280
+ class VelocityVerletDynamic (base .IPSNode ):
281
+ """Initialize the Velocity Verlet dynamics
282
+
283
+ Attributes
284
+ ----------
285
+ time_step: float
286
+ time step of simulation
287
+ """
288
+
289
+ time_step : int = zntrack .params ()
290
+
291
+ def get_thermostat (self , atoms ):
292
+ dyn = VelocityVerlet (
293
+ atoms = atoms ,
294
+ timestep = self .time_step * units .fs ,
295
+ )
296
+ return dyn
297
+
298
+
279
299
class NPTThermostat (base .IPSNode ):
280
300
"""Initialize the ASE NPT barostat
281
301
(Nose Hoover temperature coupling + Parrinello Rahman pressure coupling).
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ class _Nodes:
94
94
MixCalculator = "ipsuite.calculators.MixCalculator"
95
95
96
96
LangevinThermostat = "ipsuite.calculators.LangevinThermostat"
97
+ VelocityVerletDynamic = "ipsuite.calculators.VelocityVerletDynamic"
97
98
NPTThermostat = "ipsuite.calculators.NPTThermostat"
98
99
RescaleBoxModifier = "ipsuite.calculators.RescaleBoxModifier"
99
100
BoxOscillatingRampModifier = "ipsuite.calculators.BoxOscillatingRampModifier"
You can’t perform that action at this time.
0 commit comments