layout | title | permalink |
---|---|---|
page |
p4vasp |
/p4vasp/ |
P4Vasp is one of the Graphical User Interface to visualise spacial arrangements of atoms from their geometrical coordinates. Using directly the output files generated by the first principle modelling package VASP, this software is rather popular. Unfortunately, the documentation about this software is very limited on the webpage of the creators.
Based on my own use of this software, I want to make a small unofficial documentation.
By default, p4vasp will look for .xml files when it starts, for instance vasprun.xml files that will be automatically read.
If your current folder directory contains .xml files not related to Vasp, it may generate various error messages. Remove those files and it should behave better.
For the atom or orbital projected spin density, the minority density (negative values) can be displayed as positive values. This can be confusing for visualization of several atoms. The solution in this case is to export the data and use other software to get the right representation.
One of the most powerful tool in P4Vasp is the possibility to calculate the autocorrelation of all the velocities in a system just with a few clicks. For molecular dynamics results, this autocorrelation can be usefull, especially for Infra-Red measurements. Here is how to use it:
-
Firstly, the autocorrelation can be obtained only from the vasprun.xml file resulting for a finished calculation. If your molecular dynamics was aborted before reaching its last step, then you have to modify the end of your vasprun.xml file. Here is a little tool written in Python 2.7 to get a proper termination for files recovered from unfinished run.
-
Once the file is loaded, you can look at the evolution of the system in time (see part ...) and also choose the "VAC" option in the "MD" menu.
-
Then, the autocorrelation can be calculated for all the atoms simply with the "Read VAC" button.
4. For a molecular dynamics with N steps, the autocorrelation will be calculated with N-2 positions. Here is a molecular dynamics over 1000 steps.
5. The Fourier Transformation can be obtained by the "FFT" button and will display useful information about the frequencies existing in the system.
6. To get the data in a usable form, the photo camera button will three files, a postscript picture, a dat file with the data and a file with a .agr extension describing the graph.
Rotation around the axe of a bond.
It is possible to perform a rotation around the axe of a bond with p4vasp which preserve all the lengths for the bonds within the molecules. It can be realized in several steps.
- Open the file containing the geometrical informations.
- Visualize it with the "Show" icon.
- Select, within the "Edit" menu, "Rotate atoms"