neutrons / multiphonon

multiphonon (getDOS)
MIT License
3 stars 5 forks source link

create a function to compute DOS from a one-phonon SQE #4

Closed yxqd closed 8 years ago

yxqd commented 8 years ago

Assume the SQE contains only one phonon scattering

The original method implemented by Max assumes that the SQE is in a rectangular area where all data is valid. And it adjusts the Q dependency of the intensities (Debye Waller factor) and then collapse the data along Q axis to obtain a S(E) that can be converted to DOS easily.

The limitation is that this approach has to discard a lot of data. Doug suggested that we should be able to use all the data if we carefully keep track of the multiplication factors and the boundaries of dynamic range.

The new algorithm here will overcome that limitation. We should be able to use the full dataset by masking the data outside the dynamical range.

yxqd commented 8 years ago

There are now two test cases

SQE: v-s1

DOS: v-dos-computed

IQE: v-iqe

DOS: v-dos