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

Fixed and added infrared jobs #423

Closed ChiCheng45 closed 2 months ago

ChiCheng45 commented 2 months ago

Description of work

Fixes Fixed the dipole autocorrelation jobs. Fixed angularcorrelation job with a non default frame setting.

To test

MBartkowiakSTFC commented 2 months ago

IR_spectrum_MDANSE For the moment I managed to run the IR spectrum calculation on a solid system. I specified that all the atoms in the cell belong to a single molecule. Was it a meaningful way of running the calculation? Also, I seem to get a lot of negative values (see the plot above) - is the real IR spectrum the square of this curve?

ChiCheng45 commented 2 months ago

IR_spectrum_MDANSE For the moment I managed to run the IR spectrum calculation on a solid system. I specified that all the atoms in the cell belong to a single molecule. Was it a meaningful way of running the calculation? Also, I seem to get a lot of negative values (see the plot above) - is the real IR spectrum the square of this curve?

I think this won't be a very good trajectory to run on since there will only be a single dipole. I'd imagine the d/dt dipole autocorrelation function would be highly oscillatory even after a long time so the FFT of this won't be so good. I think the correct thing to have done in this instance would be to average the d/dt dipole autocorrelation function over multiple MD simulations and take the FFT of this average.

MBartkowiakSTFC commented 2 months ago

water_IR_macePotential I have tried the IR calculation out on a trajectory of 216 water molecules. This was a run using the MACE potential (https://arxiv.org/abs/2401.00096) and it was aimed at getting results quickly rather than correctly. Still, I think that this is not a bad spectrum of water.