Action: GHOST
Module | vatom |
---|---|
Description | Usage |
Calculate the absolute position of a ghost atom with fixed coordinates in the local reference frame formed by three atoms. | |
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 list of atoms which are involved the virtual atom's definition |
COORDINATES | atoms | coordinates of the ghost atom in the local reference frame |
Further details and examples
Calculate the absolute position of a ghost atom with fixed coordinates in the local reference frame formed by three atoms.
This action allows you to create a virtual atom that has a fixed set of coordinates in a local reference frame that is formed by three atoms. The way that this action is used is illustrated below:
c1GHOSTCalculate the absolute position of a ghost atom with fixed coordinates in the local reference frame formed by three atoms. More details ATOMSthe list of atoms which are involved the virtual atom's definition=1,5,10 COORDINATEScoordinates of the ghost atom in the local reference frame=10.0,10.0,10.0 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=15,20 d1 : DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=c1,c2 PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=d1:
Notice that ghost atom's position is stored as a virtual atom. The position of this atom can thus be used in the DISTANCE command by using the label for the GHOST action.
The position of the ghost atom c1
for the input above is:
rc1=r1+10ˆa+10c+10ˆb10ˆc
where unit vectors, ˆa, ˆb and ˆc in the expression above are obtained by dividing each of the three (orthogonal) vectors below by their magnitudes:
a=(r5−r1)b=(r5−r1)\time(r10−r1)(r5−r1)×b
In all these expressions ri is used to indicate the position of atom i. If you run with periodic boundary conditions these are taken into account automatically when computing the differences between position vectors above. The way this is handled is akin to the way molecules are rebuilt in the WHOLEMOLECULES command. For the example above this would ensure that atom 5 is shifted to the periodic image where it is closest to atom 1 and atom 10 is shifted to the periodic image where it is closest to atom 10. If you wish to turn off this behaviour and you wish to disregard the periodic boundaries when computing these differences you should use the NOPBC flag.
Syntax
The following table describes the keywords and options that can be used with this action
Keyword | Type | Default | Description |
---|---|---|---|
ATOMS | input | none | the list of atoms which are involved the virtual atom's definition |
COORDINATES | input | none | coordinates of the ghost atom in the local reference frame |
NOPBC | optional | false | ignore the periodic boundary conditions when calculating distances |