This is part of the generic module |
Dump masses and charges on a selected file.
This command dumps a file containing charges and masses. It does so only once in the simulation (at first step). File can be recycled in the driver tool.
Notice that masses and charges are only written once at the beginning of the simulation. In case no atom list is provided, charges and masses for all atoms are written.
You can add the DUMPMASSCHARGE action at the end of the plumed.dat file that you use during an MD simulations:
c1: COMATOMS=1-10 c2: COMthe list of atoms which are involved the virtual atom's definition.ATOMS=11-20 DUMPATOMSthe list of atoms which are involved the virtual atom's definition.ATOMS=c1,c2the atom indices whose positions you would like to print out.FILE=coms.xyzcompulsory keyword file on which to output coordinates; extension is automatically detectedSTRIDE=100 DUMPMASSCHARGEcompulsory keyword ( default=1 ) the frequency with which the atoms should be outputFILE=mcfilecompulsory keyword file on which to output charges and masses.
In this way, you will be able to use the same masses while processing a trajectory from the driver . To do so, you need to add the –mc flag on the driver command line, e.g.
plumed driver --mc mcfile --plumed plumed.dat --ixyz traj.xyz
With the following input you can dump only the charges for a specific group:
solute_ions: GROUPATOMS=1-121,200-2012 DUMPATOMSthe numerical indexes for the set of atoms in the group.FILE=traj.grocompulsory keyword file on which to output coordinates; extension is automatically detectedATOMS=solute_ionsthe atom indices whose positions you would like to print out.STRIDE=100 DUMPMASSCHARGEcompulsory keyword ( default=1 ) the frequency with which the atoms should be outputFILE=mcfilecompulsory keyword file on which to output charges and masses.ATOMS=solute_ionsthe atom indices whose charges and masses you would like to print out.
ATOMS | the atom indices whose charges and masses you would like to print out. For more information on how to specify lists of atoms see Groups and Virtual Atoms |
STRIDE | ( default=1 ) the frequency with which the atoms should be output |
FILE | file on which to output charges and masses. |
ONLY_MASSES | ( default=off ) Only output masses to file |
ONLY_CHARGES | ( default=off ) Only output charges to file |