|
18 | 18 | from ase.io import read |
19 | 19 | from ase.md.bussi import Bussi |
20 | 20 | from ase.md.langevin import Langevin |
21 | | -from ase.md.npt import NPT as ASE_NPT |
| 21 | +from ase.md.melchionna import MelchionnaNPT |
22 | 22 | from ase.md.velocitydistribution import ( |
23 | 23 | MaxwellBoltzmannDistribution, |
24 | 24 | Stationary, |
@@ -531,7 +531,7 @@ def __init__( |
531 | 531 | self.minimize_kwargs["write_kwargs"] = {"filename": opt_file} |
532 | 532 | self.minimize_kwargs.setdefault("write_results", False) |
533 | 533 |
|
534 | | - self.dyn: Langevin | VelocityVerlet | ASE_NPT |
| 534 | + self.dyn: Langevin | VelocityVerlet | MelchionnaNPT |
535 | 535 | self.n_atoms = len(self.struct) |
536 | 536 |
|
537 | 537 | self.offset = 0 |
@@ -1572,7 +1572,7 @@ def __init__( |
1572 | 1572 | pfactor *= units.fs**2 * units.GPa |
1573 | 1573 | else: |
1574 | 1574 | pfactor = None |
1575 | | - self.dyn = ASE_NPT( |
| 1575 | + self.dyn = MelchionnaNPT( |
1576 | 1576 | self.struct, |
1577 | 1577 | timestep=self.timestep, |
1578 | 1578 | temperature_K=self.temp, |
@@ -1861,7 +1861,7 @@ def __init__( |
1861 | 1861 | (ensemble_kwargs,) = none_to_dict(ensemble_kwargs) |
1862 | 1862 | self.ttime = thermostat_time * units.fs |
1863 | 1863 |
|
1864 | | - self.dyn = ASE_NPT( |
| 1864 | + self.dyn = MelchionnaNPT( |
1865 | 1865 | self.struct, |
1866 | 1866 | timestep=self.timestep, |
1867 | 1867 | temperature_K=self.temp, |
@@ -2052,7 +2052,7 @@ def __init__( |
2052 | 2052 | # convert the pfactor to ASE internal units |
2053 | 2053 | pfactor *= units.fs**2 * units.GPa |
2054 | 2054 |
|
2055 | | - self.dyn = ASE_NPT( |
| 2055 | + self.dyn = MelchionnaNPT( |
2056 | 2056 | self.struct, |
2057 | 2057 | timestep=self.timestep, |
2058 | 2058 | temperature_K=self.temp, |
|
0 commit comments