Skip to content

Shortcut: PAIRENTROPY

Module gridtools
Description Usage
Calculate the KL Entropy from the radial distribution function used in 1 tutorialsused in 4 eggs
output value type
the KL-entropy that is computed from the radial distribution function scalar

Details and examples

Calculate the KL Entropy from the radial distribution function

This shortcut provides an implementation of the CV that is described in the paper that is cited below. Although, the implementation that is offered here is not the one that was used to produce the results described in that paper the values produced by this implementation have been tested against the implementation that was used in the paper, which can be found here.

An example input that calculates and prints the PAIRENTROPY CV is shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
pp: PAIRENTROPYCalculate the KL Entropy from the radial distribution function This action is a shortcut. More details ...
   GROUPthe atoms that are being used to calculate the RDF=1-108 MAXRthe maximum distance to use for the rdf=2.0 GRID_BINthe number of bins to use when computing the RDF=20
   BANDWIDTHthe bandwidths for kernel density esimtation=0.13 KERNEL the type of kernel to use for computing the histograms for the RDF=gaussian
   CUTOFF the cutoff at which to stop evaluating the kernel functions is set equal to sqrt(2*x)*bandwidth in each direction where x is this number=6.25
...
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=pp FILEthe name of the file on which to output these quantities=colvar

By expanding the shortct in the input above you can see how features that are already avaialble within PLUMED can be reused to calculate this CV. The resulting implementation is likely slower than the direct implementation that is available here. We hope, however, that this implementation helps others to understand how this CV is constructed.

If you would like to calculate the pair entropy based on the radial distribution of the atoms in GROUPB around GROUPA you can use an input similar to the one shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
pp: PAIRENTROPYCalculate the KL Entropy from the radial distribution function This action is a shortcut. More details ...
   GROUPAthe atoms that you would like to compute the RDF about=1-108 GROUPBthe atoms that you would like to to use when computing the RDF around the atoms that were specified with GROUPA=109-300
   GRID_BINthe number of bins to use when computing the RDF=20 MAXRthe maximum distance to use for the rdf=2.0
   BANDWIDTHthe bandwidths for kernel density esimtation=0.13 KERNEL the type of kernel to use for computing the histograms for the RDF=gaussian
   CUTOFF the cutoff at which to stop evaluating the kernel functions is set equal to sqrt(2*x)*bandwidth in each direction where x is this number=6.25 DENSITYthe reference density to use when normalizing the RDF=1.0
...
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=pp FILEthe name of the file on which to output these quantities=colvar

Notice that we have also used the DENSITY keyword to set the background density that is used when normalizing the radial distribution function explicity to 1 atom. When this keyword is not used, this density is calculated by dividing the number of atoms by the volume of the box as you can see if you expand the shortcut in the first input above.

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
GROUP atoms the atoms that are being used to calculate the RDF
GROUPA atoms the atoms that you would like to compute the RDF about
GROUPB atoms the atoms that you would like to to use when computing the RDF around the atoms that were specified with GROUPA

Full list of keywords

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

Keyword Type Default Description
GROUP input none the atoms that are being used to calculate the RDF
GROUPA input none the atoms that you would like to compute the RDF about
GROUPB input none the atoms that you would like to to use when computing the RDF around the atoms that were specified with GROUPA
GRID_BIN compulsory none the number of bins to use when computing the RDF
KERNEL compulsory GAUSSIAN the type of kernel to use for computing the histograms for the RDF
CUTOFF compulsory 6.25 the cutoff at which to stop evaluating the kernel functions is set equal to sqrt(2x)bandwidth in each direction where x is this number
MAXR compulsory none the maximum distance to use for the rdf
BANDWIDTH compulsory none the bandwidths for kernel density esimtation
DENSITY optional not used the reference density to use when normalizing the RDF

deprecated keywords

The keywords in the following table can still be used with this action but have been deprecated

Keyword Description
ATOMS You should use GROUP instead of this keyword which was used in older versions of PLUMED and is provided for back compatibility only
SIGMA You should use BANDWIDTH instead of this keyword which was used in older versions of PLUMED and is provided for back compatibility only

References

More information about how this action can be used is available in the following articles: