MD velocities and py4vasp

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Locked
Message
Author
xiliang_lian
Newbie
Newbie
Posts: 37
Joined: Thu May 19, 2022 8:44 am

MD velocities and py4vasp

#1 Post by xiliang_lian » Thu Nov 10, 2022 9:33 am

Hello,

I am doing MD calculations with VASP 6.3.2 and am interested in some properties related to velocities. I didn't find many descriptions on your wiki. A quick search on the Internet doesn't give much helpful information; some information is outdated. I checked the "vaspout.h5" file and it seems velocities have been written to this file if I understand correctly.

Therefore, I want to ask whether you can provide this feature in py4vasp or provide other suggestions/scripts so it is easy to extract velocities. Thanks a lot in advance.

Best regards,
Xiliang

henrique_miranda
Global Moderator
Global Moderator
Posts: 501
Joined: Mon Nov 04, 2019 12:41 pm
Contact:

Re: MD velocities and py4vasp

#2 Post by henrique_miranda » Thu Nov 10, 2022 2:08 pm

Hi Xiliang,

Thank you for your suggestion, we will seek to include this feature in a future release of py4vasp.

xiliang_lian
Newbie
Newbie
Posts: 37
Joined: Thu May 19, 2022 8:44 am

Re: MD velocities and py4vasp

#3 Post by xiliang_lian » Thu Nov 10, 2022 2:11 pm

Hi,

For the moment, do you have any advice on how I can properly get velocities? I assume it will take some time for me to get your new release.

Thanks in advance.

Best,
Xiliang

henrique_miranda
Global Moderator
Global Moderator
Posts: 501
Joined: Mon Nov 04, 2019 12:41 pm
Contact:

Re: MD velocities and py4vasp

#4 Post by henrique_miranda » Fri Nov 11, 2022 3:20 pm

Actually, the ion velocities are only written to the CONTCAR but that is overwritten at every MD step.
In the hdf5 file they are only written in the last step in '/results/positions/ion_velocities' for the final structure.

If you need velocities at every time step, our suggestion would be to read the positions at every MD step (you can actually read them with py4vasp) and compute the velocity using finite differences or something more sophisticated.
When computing the differences between the positions at every step you need to account for periodic boundary conditions!

xiliang_lian
Newbie
Newbie
Posts: 37
Joined: Thu May 19, 2022 8:44 am

Re: MD velocities and py4vasp

#5 Post by xiliang_lian » Mon Nov 14, 2022 9:46 am

okay, thank you very much for the suggestions.

martin.schlipf
Global Moderator
Global Moderator
Posts: 542
Joined: Fri Nov 08, 2019 7:18 am

Re: MD velocities and py4vasp

#6 Post by martin.schlipf » Fri Dec 16, 2022 9:08 am

I implemented this in py4vasp now. It will then work with the next release of VASP.

Martin Schlipf
VASP developer


xiliang_lian
Newbie
Newbie
Posts: 37
Joined: Thu May 19, 2022 8:44 am

Re: MD velocities and py4vasp

#7 Post by xiliang_lian » Fri Dec 16, 2022 9:48 am

Great news. That's very kind of you. Thank you very much and looking forward to seeing the next release.

Locked