Skip to content

Shortcut: GRADIENT

Module gridtools
Description Usage
Calculate the gradient of an input grid used in 0 tutorialsused in 0 eggs
output value type
the desired gradient scalar

Details and examples

Calculate the gradient of an input grid

This shortcut implements the gradient CV that was used to drive nucleation and that is described in the paper cited below. A description that explains how this CV is evaluated and used can be found in the paper.

An example input for computing and printing the gradient CV that is discussed in the paper is shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
s1xyz: GRADIENTCalculate the gradient of an input grid This action is a shortcut and it has hidden defaults. More details ATOMScalculate the gradient of these atoms=1-50 ORIGINwe will use the position of this atom as the origin in our calculation=1 DIR the directions in which we are calculating the graident=xyz NBINSnumber of bins to use in each direction for the calculation of the gradient=4 SIGMAthe width of the function to be used for kernel density estimation=1.0
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=s1xyz FILEthe name of the file on which to output these quantities=colvar

Full list of keywords

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

Keyword Type Default Description
ORIGIN compulsory none we will use the position of this atom as the origin in our calculation
NBINS compulsory none number of bins to use in each direction for the calculation of the gradient
DIR compulsory xyz the directions in which we are calculating the graident
SIGMA compulsory none the width of the function to be used for kernel density estimation
KERNEL compulsory gaussian-bin the type of kernel function to be used in the grids
ATOMS compulsory none calculate the gradient of these atoms

References

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