Closed farhi closed 7 years ago
Spacegroups are now fully supported. See https://github.com/McStasMcXtrace/iFit/commit/2d5d63b1a21cd21b4a655e1531c6e82d3fa473ac Commit https://github.com/McStasMcXtrace/iFit/commit/0a73001124e3433506315f1551a319d74c655a36 allows to use PhonoPy methods. In principle, we can then import FORCE_SET and reformat it for ASE, as done in ifit.py
PhonoPy/phonopy/file_IO.py: _get_set_of_force FORCE_SETS files are stored in a number of directories together with POSCAR-unitcell files. The FORCE_SETS file contains entries with [displacements, forces] which are then stored into a dataset["first_atoms"] == {"displacement","forces"}
Importing PhonoPy results then requires to:
Look at https://github.com/atztogo/phonopy/blob/master/scripts/phonopy line 409- where PhonoPy reads FORCE_SET and creates a PhonoPy object. Then we can stick to the existing procedure in iFit sqw_phonons ifit.py
from a directory with ONLY FORCE_SETS, we can compute the DOS:
ATOM_NAME = <elements, e.g. Si O>
DIM = <supercell, e.g. 3 3 2>
MP = 8 8 8
the above procedure calls in order: with run_mode == 'mesh'
not so easy. Requires to handle spacegroups in ASE: https://github.com/McStasMcXtrace/iFit/issues/34