Mar 20 – 23, 2023
Campus Garching
Europe/Berlin timezone

Euphonic: efficient inelastic neutron scattering simulations and more from force constants

Mar 22, 2023, 11:00 AM
SCC/0-002 - Taurus 1&2 (Galileo)

SCC/0-002 - Taurus 1&2


Show room on map
Talk (25 + 5 min) Neutron Instrumentation, Optics, Sample Environment, Detectors, and Software Data Evaluation & Software 2


Toby Perring (ISIS Neutron and Muon Source)


Chopper spectrometers produce large 4-dimensional inelastic neutron scattering (INS) datasets, allowing investigations of vibrational and magnetic properties of materials over large regions of momentum-energy (Q-E) space. While software (e.g. Horace) exist to enable visualisation and analysis of such data, computational challenges remain for the simulation and fitting of vibrational spectra, which requires the calculation of phonon frequencies and displacements at millions of Q-points to simulate a single 2D slice of data. Here we present Euphonic, a Python package designed to efficiently interpolate phonons and calculate INS intensities directly from force constants. Currently supported are CASTEP and Phonopy force constants, with the potential for more to be added in the future. Euphonic has a focus on performance, with key components written in C and OpenMP. The performance scaling of Euphonic means that, for example, instrument resolution convolved simulations of phonon spectra are now tractable for the first time. Euphonic is also useful as a library to the wider scientific community - providing both a Python API and command line tools. Euphonic has been developed following software best practice, is open source and can be obtained via Github, PyPI and the conda-forge Conda channel. This talk will give an overview of: the main features and benefits of Euphonic; development following the 1.0 release in August 2022; and development priorities going forward.

Primary author

Rebecca Fair (ISIS Neutron and Muon Source)


Adam Jackson (Scientific Computing Department, Science and Technology Facilities Council) David Voneshen (ISIS Neutron and Muon Source) Dominik Jochym (Scientific Computing Department, Science and Technology Facilities Council) Duc Le (ISIS Neutron and Muon Source) Keith Refson (ISIS Neutron and Muon Source) Toby Perring (ISIS Neutron and Muon Source)

Presentation materials

There are no materials yet.