about velocity in molecular dynamics

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
tfb
Newbie
Newbie
Posts: 12
Joined: Mon Sep 17, 2007 1:08 am
License Nr.: 720

about velocity in molecular dynamics

#1 Post by tfb » Tue Oct 09, 2007 2:15 am

I want to calculate the veolcity correlation function ,but where I can get the velcity form the vasp output.
thank you in advance.
Last edited by tfb on Tue Oct 09, 2007 2:15 am, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2921
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

about velocity in molecular dynamics

#2 Post by admin » Wed Oct 10, 2007 7:33 am

the velocity of the ions is written in CONTCAR (second block of data after the positions) if you do an MD.
Last edited by admin on Wed Oct 10, 2007 7:33 am, edited 1 time in total.

tfb
Newbie
Newbie
Posts: 12
Joined: Mon Sep 17, 2007 1:08 am
License Nr.: 720

about velocity in molecular dynamics

#3 Post by tfb » Thu Oct 11, 2007 12:56 am

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
Last edited by tfb on Thu Oct 11, 2007 12:56 am, edited 1 time in total.

graeme
Jr. Member
Jr. Member
Posts: 54
Joined: Sat Jul 02, 2005 6:11 am
Location: Austin, TX
Contact:

about velocity in molecular dynamics

#4 Post by graeme » Thu Oct 11, 2007 2:17 am

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>
Last edited by graeme on Thu Oct 11, 2007 2:17 am, edited 1 time in total.

tfb
Newbie
Newbie
Posts: 12
Joined: Mon Sep 17, 2007 1:08 am
License Nr.: 720

about velocity in molecular dynamics

#5 Post by tfb » Thu Oct 11, 2007 10:12 am

thank you very much ,it is very kind of you to share your script.
Last edited by tfb on Thu Oct 11, 2007 10:12 am, edited 1 time in total.

Post Reply