ad3755ac6e5f588de01ed614a30af7c6ea7ace2a
[alexxy/gromacs.git] / docs / user-guide / tools.rst
1 Command-line tools
2 ==================
3
4 |Gromacs| includes many tools for preparing, running and analysing
5 molecular dynamics simulations. These are all structured as part of the
6 gmx wrapper binary, and invoked with commands like :ref:`gmx grompp`.
7 :ref:`mdrun <gmx mdrun>` is the only other binary that
8 :ref:`can be built <building just the mdrun binary>`; in the normal
9 build it can be run with ``gmx mdrun``. Documentation for these can
10 be found at the links below:
11
12 .. toctree::
13
14    /programs/byname
15    /programs/bytopic
16
17    /programs/selections
18
19 .. toctree::
20    :hidden:
21    :glob:
22
23    /programs/gmx-*
24
25 Common options and behaviour
26 ----------------------------
27
28 Optional files are not used unless the option is set, in contrast to
29 non-optional files, where the default file name is used when the option is
30 not set.
31
32 All |Gromacs| tools will accept file options without a file extension or
33 filename being specified. In such cases the default filenames will be
34 used. With multiple input file types, such as generic structure format,
35 the directory will be searched for files of each type with the supplied
36 or default name. When no such file is found, or with output files the
37 first file type will be used.
38
39 All |Gromacs| tools check if the command line options are valid. If this
40 is not the case, the program will be halted.
41
42 All |Gromacs| tools have 3 hidden options:
43
44 +-------------------+--------+---------------+-------------------------------------------------+
45 | option            | type   | default       | description                                     |
46 +===================+========+===============+=================================================+
47 | ``-[no]hidden``   | bool   | \[``yes``\]   | \[hidden\] Print description for hidden options |
48 +-------------------+--------+---------------+-------------------------------------------------+
49 | ``-[no]quiet``    | bool   | \[``no``\]    | \[hidden\] Do not print help info               |
50 +-------------------+--------+---------------+-------------------------------------------------+
51 | ``-[no]debug``    | bool   | \[``no``\]    | \[hidden\] Write file with debug information    |
52 +-------------------+--------+---------------+-------------------------------------------------+
53
54 Many tools accept enumerated options (enum), which should be used with
55 one of the arguments listed in the option description. The argument may
56 be abbreviated, and the first match to the shortest argument in the list
57 will be selected.
58
59 Many tools also use options that may accept a vector of values. Either 1
60 or 3 parameters can be supplied; when only one parameter is supplied the
61 two other values are also set to this value.
62
63 All |Gromacs| tools can read compressed (``*.Z``) or g-zipped (``*.gz``)
64 files. There might be a problem with reading compressed [.tng] or [.xtc]
65 files, but these will not compress very well anyway.
66
67 Most |Gromacs| tools can process a trajectory with fewer atoms than the
68 run input or structure file, but only if the trajectory consists of the
69 first n atoms of the run input or structure file.