MATLAB Code for the calculation of Velocity Autocorrelation Function (VACF) and Diffusion Coefficient (D) for SPC/E water molecules

7 visualizaciones (últimos 30 días)
I have a text file containing the data of coordinates of atoms (Hydrogens and oxygens) for different timesteps (0,10, 20, 30,......1000) with time interval of 10, where the 1st column is the name of the atoms (Oxygen, Hydrogen) and 2nd, 3rd and 4th columns have x, y, and z components. And the text file starts from the 1st line. So, for 36 atoms, first 36 rows of the text file is for 1st timestep (timestep=0), next 36 rows for timestep=10, and so on upto timestep 1000. How can I calculate the VACF and D using MATLAB code? It would be nice of you if you could help me in this case about coding portion.
  3 comentarios

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Quantum Chemistry en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by