g_density (1) - Linux Manuals
g_density: calculates the density of the system
NAME
g_density - calculates the density of the systemSYNOPSIS
g_density -f traj.xtc -n index.ndx -s topol.tpr -ei electrons.dat -o density.xvg -[no]h -nice int -b time -e time -dt time -[no]w -[no]xvgr -d string -sl int -dens enum -ng int -[no]symm -[no]centerDESCRIPTION
Compute partial densities across the box, using an index file. Densities in kg/m3, number densities or electron densities can be calculated. For electron densities, a file describing the number of electrons for each type of atom should be provided using -ei. It should look like:2
atomname = nrelectrons
atomname = nrelectrons
The first line contains the number of lines to read from the file. There should be one line for each unique atom name in your system. The number of electrons for each atom is modified by its atomic partial charge.
FILES
-f traj.xtc Input
-n index.ndx
Input, Opt.
-s topol.tpr
Input
-ei electrons.dat
Input, Opt.
-o density.xvg
Output
-nice int 19
-b time 0
-e time 0
-dt time 0
-[no]wno
-[no]xvgryes
-d string Z
-sl int 50
-dens enum mass
-ng int 1
-[no]symmno
-[no]centerno
OTHER OPTIONS
-[no]hno
KNOWN PROBLEMS
- When calculating electron densities, atomnames are used instead of types. This is bad.