version 1.00
GRADE analyzes atomic positions of oxygen atoms of water to compute the number of 5(12), 6(2)5(12) and 6(4)5(12) cages and account for their three-dimensional structures. The latter can be used for visualization using software such as VMD (Visual Molecular Dynamics). GRADE stands for “cages” in Portuguese. F4 order parameter can also be calculated for trajectories.
To understand how the code works and for examples of the output files, please refer to the published paper.
If you have used this code, please cite the following publication:
Mahmoudinobar, Farbod, and Cristiano L. Dias. "GRADE: A code to determine clathrate hydrate structures." Computer Physics Communications 244 (2019): 385-391.
https://doi.org/10.1016/j.cpc.2019.06.004
GNU Compiler Collection version 6.1.0 or newer.
GRADE is written in C++ and is made up of a main program file (GRADE.cpp) and two supporting resource files (MyFunctions.hpp and MyFunctions.cpp). Use the Makefile to compile GRADE by typing:
$ make
$ make clean
If the gro file containing atomic positions of water molecules is named “test.gro”, to run the code with all default values:
$ ./GRADE -i test.gro
This will generate following files by default (if at least one cage is found in test.gro): test.xvg, test_cage512-frame.gro, test_cage62512-frame.gro (if 62512 cages exist).
A separate gro file is generated for each time-frame of the test.gro.
Full list of options can be printed on terminal by using flag ‘-h’. These options as of version 1.00 are:
-i [<.gro>] (input) Trajectory in gro format
-theta (45) (degree) Angle cut-off for planarity constraint
-r (0.35) (nm) Hydrogen bond cutoff radius (nm, Oxygen-Oxygen distance)
-d1 (0.18) (nm) Minimum length of Pentagon diameter
-d2 (0.26) (nm) Minimum length of Hexagon diameter
-o [<.gro/.xvg>] (output) (Opt.) (output name to be used in ~.xvg, ~_cage512.gro, ~_cage62512.gro)
-dt (1) (Opt.) Read all input file, write output gro files every dt frame(s)
-fr (1) (Opt.) Read input file every fr frame(s)
-[no]f4 (yes) Compute four-body order parameter F4=<cos3ф>
Farbod Mahmoudinobar, fm59@njit.edu, farbodmahmoudi@gmail.com
Cristiano L. Dias, cld@njit.edu
License & Copyright:
© Cristiano L. Dias, New Jersey Institute of Technology, Physics
Licensed under the GNU GPL-3.0-or-later
- Grade is optimized to work with .gro files written by GROMACS. Trajectories converted from other MD packages may encounter issues with reading the data.
- Currently, Grade recognizes 4-atom water models.