This is part of the vatom module |
Calculate the absolute position of a ghost atom with fixed coordinates in the local reference frame formed by three atoms.
The computed ghost atom is stored as a virtual atom that can be accessed in an atom list through the the label for the GHOST action that creates it.
When running with periodic boundary conditions, the atoms should be in the proper periodic image. This is done automatically since PLUMED 2.10, by considering the ordered list of atoms and rebuilding the molecule using a procedure that is equivalent to that done in WHOLEMOLECULES . Notice that rebuilding is local to this action. This is different from WHOLEMOLECULES which actually modifies the coordinates stored in PLUMED.
In case you want to recover the old behavior you should use the NOPBC flag. In that case you need to take care that atoms are in the correct periodic image.
The following input instructs plumed to print the distance between the ghost atom and the center of mass for atoms 15,20:
c1: GHOSTATOMS=1,5,10the list of atoms which are involved the virtual atom's definition.COORDINATES=10.0,10.0,10.0 c2: COMcoordinates of the ghost atom in the local reference frame.ATOMS=15,20 d1: DISTANCEthe list of atoms which are involved the virtual atom's definition.ATOMS=c1,c2 PRINTthe pair of atom that we are calculating the distance between.ARG=d1compulsory keyword the labels of the values that you would like to print to the file
By default this Action calculates the following quantities. These quantities can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the quantity required from the list below.
Quantity | Description |
x | the x coordinate of the virtual atom |
y | the y coordinate of the virtual atom |
z | the z coordinate of the virtual atom |
mass | the mass of the virtual atom |
charge | the charge of the virtual atom |
ATOMS | the list of atoms which are involved the virtual atom's definition. For more information on how to specify lists of atoms see Groups and Virtual Atoms |
COORDINATES | coordinates of the ghost atom in the local reference frame. For more information on how to specify lists of atoms see Groups and Virtual Atoms |
NOPBC | ( default=off ) ignore the periodic boundary conditions when calculating distances |