To use the principal axis scripts, you will need to follow these steps:
orient.tar.gz
and la101psx.tar.gz
. The latter is a linear algebra package by Hume Integration Software; you can look at the La homepage for more information. gunzip orient.tar.gz tar xf orient.tar gunzip la101psx.tar.gz tar xf la101psx.tar
lappend auto_path /home/paul/scripts/la1.0 lappend auto_path /home/paul/scripts/orient
package require Orient namespace import Orient::orient set sel [atomselect top "all"] set I [draw principalaxes $sel] set A [orient $sel [lindex $I 2] {0 0 1}] $sel move $A set I [draw principalaxes $sel] set A [orient $sel [lindex $I 1] {0 1 0}] $sel move $A set I [draw principalaxes $sel]You may want to use the principal axes (stored in I) for other purposes than alignment, or modify the script to get information about the moments of inertia.
联系客服