User Tools

Site Tools


tools:pwtools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
tools:pwtools [2015/06/02 12:31] – created oschuetttools:pwtools [2015/06/05 11:47] oschuett
Line 6: Line 6:
  
 ===== Example =====  ===== Example ===== 
 +This is how one can easily read in a dcd trajectory that was written by CP2K:
 <code python> <code python>
     $ python     $ python
     >>> from pwtools import dcd     >>> from pwtools import dcd
-    >>> cc,co = dcd.read_dcd_data_py('cp2k.dcd')+    >>> cc,co = dcd.read_dcd_data('cp2k.dcd')
 </code> </code>
-Afterwards ''cc'' will conatain the unit cell parameters and for each step (a,b,c,alpha,beta,gamma), and ''co'' will contain the Cartesian coordinates in Angstrom. +Afterwards ''cc'' will contain the unit cell parameters for each step (a,b,c,alpha,beta,gamma), and ''co'' will contain the Cartesian coordinates in Angstrom. 
tools/pwtools.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1