95766ab43e5f1c559395774e3210cb3ea4323b20
[alexxy/gromacs.git] / share / html / online / ndx.html
1 <title>ndx file format</title>
2 <H3>Description</H3>
3 The GROMACS index file (usually called index.ndx) contains some
4 user definable sets of atoms. The file can be read by
5 most analysis programs, by the graphics program
6 (<a href="../programs/gmx-view.html">gmx view</a>)
7 and by the preprocessor (<a href="../programs/gmx-grompp.html">gmx grompp</a>).
8 Most of these programs create default index groups when no index
9 file is supplied, so you only need to make an index file when you need special
10 groups.
11 <p>
12 First the group name is written between square brackets.
13 The following atom numbers may be spread out over as many lines as you like.
14 The atom numbering starts at 1.
15 <p>
16
17 An example file is here:
18 <pre>
19 [ Oxygen ]
20 1       4       7 
21 [ Hydrogen ]
22 2       3       5       6
23 8       9
24 </pre>
25
26 There are two groups, and total nine atoms. The first group
27 <b>Oxygen</b> has 3 elements.
28 The second group <b>Hydrogen</b> has 6 elements.
29 <p>
30 An index file generation tool is available:
31 <a href="../programs/gmx-make_ndx.html">gmx make_ndx</a>.