Action: DUMPMASSCHARGE

Module generic
Description Usage
Dump masses and charges on a selected file. used in 0 tutorialsused in 2 eggs
This action outputs data to a file. You can read more about how PLUMED manages output files here

Input

The atoms that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ATOMS atoms the atom indices whose charges and masses you would like to print out

Further details and examples

Dump masses and charges on a selected file.

This command dumps a file that contains charges and masses of the atoms. The following example shows how it is used:

Click on the labels of the actions for more information on what each action computes
tested on2.11
c1: COMCalculate the center of mass for a group of atoms. More details ATOMSthe list of atoms which are involved the virtual atom's definition=1-10
c2: COMCalculate the center of mass for a group of atoms. More details ATOMSthe list of atoms which are involved the virtual atom's definition=11-20
DUMPATOMSDump selected atoms on a file. More details ATOMSthe atom indices whose positions you would like to print out=c1,c2 FILEfile on which to output coordinates; extension is automatically detected=coms.xyz STRIDE the frequency with which the atoms should be output=100

DUMPMASSCHARGEDump masses and charges on a selected file. More details FILEfile on which to output charges and masses=mcfile

The DUMPMASSCHARGE command only outputs the masses and charges once in the simulation (during the first step).

Output the masses and charges in this way is useful if you want to do some postprocessing that relies on knowing the masses and charges of atoms. To use the mcfile tht is output by the command above you would use the following driver command to read in the charges and masses from the mcfile.

\verbatim plumed driver --mc mcfile --plumed plumed.dat --ixyz traj.xyz \endverbatim

DUMPMASSCHARGE outputs the masses of all the atoms by default. However, if you want to write the masses and charges for a particular subset of the atoms you can use the ATOMS keyword as illustrated in the example input below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
solute_ions: GROUPDefine a group of atoms so that a particular list of atoms can be referenced with a single label in definitions of CVs or virtual atoms. More details ATOMSthe numerical indexes for the set of atoms in the group=1-121,200-2012
DUMPATOMSDump selected atoms on a file. More details FILEfile on which to output coordinates; extension is automatically detected=traj.gro ATOMSthe atom indices whose positions you would like to print out=solute_ions STRIDE the frequency with which the atoms should be output=100
DUMPMASSCHARGEDump masses and charges on a selected file. More details FILEfile on which to output charges and masses=mcfile ATOMSthe atom indices whose charges and masses you would like to print out=solute_ions

Syntax

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ATOMS input none the atom indices whose charges and masses you would like to print out
STRIDE compulsory 1 the frequency with which the atoms should be output
FILE compulsory none file on which to output charges and masses
ONLY_MASSES optional false Only output masses to file
ONLY_CHARGES optional false Only output charges to file