1g_sgangle(1) GROMACS suite, VERSION 4.5 g_sgangle(1)
2
3
4
6 g_sgangle - computes the angle and distance between two groups
7
8 VERSION 4.5
9
11 g_sgangle -f traj.xtc -n index.ndx -s topol.tpr -oa sg_angle.xvg -od
12 sg_dist.xvg -od1 sg_dist1.xvg -od2 sg_dist2.xvg -[no]h -[no]version
13 -nice int -b time -e time -dt time -[no]w -xvg enum -[no]one -[no]z
14
16 Compute the angle and distance between two groups. The groups are
17 defined by a number of atoms given in an index file and may be two or
18 three atoms in size. If -one is set, only one group should be speci‐
19 fied in the index file and the angle between this group at time 0 and t
20 will be computed. The angles calculated depend on the order in which
21 the atoms are given. Giving for instance 5 6 will rotate the vector 5-6
22 with 180 degrees compared to giving 6 5.
23
24 If three atoms are given, the normal on the plane spanned by those
25 three atoms will be calculated, using the formula P1P2 x P1P3. The
26 cos of the angle is calculated, using the inproduct of the two normal‐
27 ized vectors.
28
29
30 Here is what some of the file options do:
31
32 -oa: Angle between the two groups specified in the index file. If a
33 group contains three atoms the normal to the plane defined by those
34 three atoms will be used. If a group contains two atoms, the vector
35 defined by those two atoms will be used.
36
37 -od: Distance between two groups. Distance is taken from the center of
38 one group to the center of the other group.
39
40 -od1: If one plane and one vector is given, the distances for each of
41 the atoms from the center of the plane is given separately.
42
43 -od2: For two planes this option has no meaning.
44
46 -f traj.xtc Input
47 Trajectory: xtc trr trj gro g96 pdb cpt
48
49 -n index.ndx Input
50 Index file
51
52 -s topol.tpr Input
53 Run input file: tpr tpb tpa
54
55 -oa sg_angle.xvg Output
56 xvgr/xmgr file
57
58 -od sg_dist.xvg Output, Opt.
59 xvgr/xmgr file
60
61 -od1 sg_dist1.xvg Output, Opt.
62 xvgr/xmgr file
63
64 -od2 sg_dist2.xvg Output, Opt.
65 xvgr/xmgr file
66
67
69 -[no]hno
70 Print help info and quit
71
72 -[no]versionno
73 Print version info and quit
74
75 -nice int 19
76 Set the nicelevel
77
78 -b time 0
79 First frame (ps) to read from trajectory
80
81 -e time 0
82 Last frame (ps) to read from trajectory
83
84 -dt time 0
85 Only use frame when t MOD dt = first time (ps)
86
87 -[no]wno
88 View output xvg, xpm, eps and pdb files
89
90 -xvg enum xmgrace
91 xvg plot formatting: xmgrace, xmgr or none
92
93 -[no]oneno
94 Only one group compute angle between vector at time zero and time t
95
96 -[no]zno
97 Use the Z-axis as reference
98
99
101 gromacs(7)
102
103 More information about GROMACS is available at <http://www.gro‐
104 macs.org/>.
105
106
107
108 Thu 26 Aug 2010 g_sgangle(1)