The .mdp file contains a list of keywords that are used to set up a simulation with Grompp. The class MDP parses this file and provides access to the keys and values as ordered dictionary.
Class that represents a Gromacs mdp run input file.
The MDP instance is an ordered dictionary.
- Parameter names are keys in the dictionary.
- Comments are sequentially numbered with keys Comment0001, Comment0002, ...
- Empty lines are similarly preserved as Blank0001, ....
When writing, the dictionary is dumped in the recorded order to a file. Inserting keys at a specific position is not possible.
Currently, comments after a parameter on the same line are discarded. Leading and trailing spaces are always stripped.
See also
For editing a mdp file one can also use gromacs.cbook.edit_mdp() (which works like a poor replacement for sed).
Initialize mdp structure.
Arguments : |
|
---|
Read and parse mdp file filename.
Write mdp file to filename.
Keywords : |
|
---|
Note
Overwrites the file that the mdp was read from if no filename supplied.