root / ase / test / things.py @ 4
Historique | Voir | Annoter | Télécharger (319 octet)
| 1 |
from ase.dft import monkhorst_pack |
|---|---|
| 2 |
|
| 3 |
assert [0, 0, 0] in monkhorst_pack((1, 3, 5)).tolist() |
| 4 |
assert [0, 0, 0] not in monkhorst_pack((1, 3, 6)).tolist() |
| 5 |
assert len(monkhorst_pack((3, 4, 6))) == 3 * 4 * 6 |
| 6 |
|
| 7 |
from ase.units import Hartree, Bohr, kJ, mol, kcal, kB, fs |
| 8 |
print Hartree, Bohr, kJ/mol, kcal/mol, kB*300, fs, 1/fs |