ISISNeutronMuon / MDANSE

MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
https://www.isis.stfc.ac.uk/Pages/MDANSEproject.aspx
GNU General Public License v3.0
19 stars 4 forks source link

Update to the DOS calculation. #416

Closed ChiCheng45 closed 2 months ago

ChiCheng45 commented 2 months ago

Description of work Updated the DOS calculation so that results are a bit more clear for new users.

Fixes Closes #408, Closes #353

To test Run a density of states calculation on the protos branch and then on the dos-weight-update branch the total DOS should be the same except the new result should only include positive frequency results and the DOS units should now be au.

Water diffusion constant DOS(0) test Since we know that DOS(0) with equal weighting is proportional to the diffusion constant (D) and d/dt MSD = 6D. I ran the MSD with the long DLPOLY H2O trajectory runs and got the following plot.

image

Doing a simple two point gradient at the endpoints I get a approximate diffusion of 0.633738624175695 / (6 * 50) = 0.00211246208058565 nm^2/ps. Running DOS (equal weight) on the same trajectory I get.

image

DOS(0) = 0.0007601503675207263 and pi * DOS(0) = 0.002388082810226695 (The pi factor occurs because of the 1/2pi factor used in MDANSE for the foward FT). Which is similar to the MSD result above.

Total DOS now a sum of atomic image