McStasMcXtrace / iFit

a simple library to analyze data (with McCode and Phonons/DFT hooks). :warning: this project has been moved to https://gitlab.com/soleil-data-treatment/soleil-software-projects/remote-desktop
http://ifit.mccode.org
Other
5 stars 5 forks source link

Models: Sqw: import from PhonoPy to be able to use PhononDB data base #28

Closed farhi closed 7 years ago

farhi commented 8 years ago

not so easy. Requires to handle spacegroups in ASE: https://github.com/McStasMcXtrace/iFit/issues/34

farhi commented 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

farhi commented 7 years ago

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:

farhi commented 7 years ago

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

farhi commented 7 years ago

from a directory with ONLY FORCE_SETS, we can compute the DOS:

farhi commented 7 years ago

the above procedure calls in order: with run_mode == 'mesh'

farhi commented 7 years ago

Done with commit https://github.com/McStasMcXtrace/iFit/commit/d964ae4363cf59265d5366939503a02bd9f3819d