Page 1 of 1
about velocity in molecular dynamics
Posted: Tue Oct 09, 2007 2:15 am
by tfb
I want to calculate the veolcity correlation function ,but where I can get the velcity form the vasp output.
thank you in advance.
about velocity in molecular dynamics
Posted: Wed Oct 10, 2007 7:33 am
by admin
the velocity of the ions is written in CONTCAR (second block of data after the positions) if you do an MD.
about velocity in molecular dynamics
Posted: Thu Oct 11, 2007 12:56 am
by tfb
Thank you for you quickly answer ,but you know the CONTCAR is overwrite at every time step .so how I can calculate the veolcity correlation function ,which ask for a lot of velocities collectives to calculate
about velocity in molecular dynamics
Posted: Thu Oct 11, 2007 2:17 am
by graeme
Here is a perl script that might be helpful. It uses finite difference to generate velocities from the XDATCAR at each time step:
http://theory.cm.utexas.edu/vtsttools/d ... at2vdat.pl
A limitation is that it only works with orthogonal cells
You need to make a file of masses for the atoms called massfile. This is a simple file of the following form (for the example of CH4):
1 1 12.0
2 1 1.0
3 1 1.0
4 1 1.0
5 1 1.0
It doesn't matter what you put in the first two columns; only the third is read, and that is just to calculate kinetic energies. It is a short script, so feel free to modify it as needed.
<span class='smallblacktext'>[ Edited Thu Oct 11 2007, 04:25AM ]</span>
about velocity in molecular dynamics
Posted: Thu Oct 11, 2007 10:12 am
by tfb
thank you very much ,it is very kind of you to share your script.