pace-neutrons / Euphonic

Euphonic is a Python package for efficient simulation of phonon bandstructures, density of states and inelastic neutron scattering intensities from force constants.
GNU General Public License v3.0
29 stars 11 forks source link

Write to phonon website JSON #299

Closed ajjackson closed 3 weeks ago

ajjackson commented 6 months ago

Requested by ISIS beamline scientist Matthew Krzystyniak:

the Phonon visualisation website is a very useful tool for analysis of phonon dispersion. As input it requires a .json file with specific formatting; the data content is more or less the same as a QpointPhononModes.

While it is possible to generate these from Castep or Phonopy outputs with Sumo (using the writer from Pymatgen) this is a rather heavy dependency and not otherwise used much in a typical ISIS workflow.

It would be nice if Euphonic provided a simple command-line tool that converted force constants to these .json files, to aid visualisation during a phonon study. This could be implemented with