Calculate the perpendicular distance from a Willard-Chandler dividing surface.
In this expression and are bandwidth parameters and
is one of a Gaussian kernel function. With that field in place we can define a Willard-Chandler
surface is defined a surface of constant density in the above field .
In other words, we can define a set of points, , in the box which have:
is found using this action. In this expression is 1 if atom is part of the largest cluster and zero otherwise, is the coordination number of atom and
is a swtiching function. The distance between this isocontour and position of atom 513 as well as the distance between com (the center of the largest cluster)
and the isocontour is then output to a file called colvar.
onesThe ONES action with label ones calculates the following quantities:| Quantity | Type | Description |
| ones | vector | a vector of ones with the required number of elements |
: ONESCreate a constant vector with all elements equal to one This action is a shortcut. More details SIZEthe number of ones that you would like to create=512
# ones: ONES SIZE=512
onesThe CONSTANT action with label ones calculates the following quantities:| Quantity | Type | Description |
| ones | vector | the constant value that was read from the plumed input |
: CONSTANTCreate a constant value that can be passed to actions More details NOLOG do not report all the read in scalars in the log VALUESthe numbers that are in your constant value=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
# --- End of included input ---
c1_matThe CONTACT_MATRIX action with label c1_mat calculates the following quantities:| Quantity | Type | Description |
| c1_mat | matrix | a matrix containing the weights for the bonds between each pair of atoms |
: CONTACT_MATRIXAdjacency matrix in which two atoms are adjacent if they are within a certain cutoff. More details GROUPspecifies the list of atoms that should be assumed indistinguishable=1-512 SWITCHthe input for the switching function that acts upon the distance between each pair of atoms. Options for this keyword are explained in the documentation for LESS_THAN.={EXP D_0=4.0 R_0=0.5 D_MAX=6.0}
c1The MATRIX_VECTOR_PRODUCT action with label c1 calculates the following quantities:| Quantity | Type | Description |
| c1 | vector | the vector that is obtained by taking the product between the matrix and the vector that were input |
: MATRIX_VECTOR_PRODUCTCalculate the product of the matrix and the vector More details ARGthe label for the matrix and the vector/scalar that are being multiplied=c1_mat,ones
cfThe MORE_THAN action with label cf calculates the following quantities:| Quantity | Type | Description |
| cf | vector | the vector obtained by doing an element-wise application of a function that is one if the if the input is more than a threshold to the input vectors |
: MORE_THANUse a switching function to determine how many of the input variables are more than a certain cutoff. More details ARGthe values input to this function=c1 SWITCHThis keyword is used if you want to employ an alternative to the continuous swiching function defined above={RATIONAL D_0=2.0 R_0=0.1}
dfsThe DFSCLUSTERING action with label dfs calculates the following quantities:| Quantity | Type | Description |
| dfs | vector | vector with length that is equal to the number of rows in the input matrix. Elements of this vector are equal to the cluster that each node is a part of |
: DFSCLUSTERINGFind the connected components of the matrix using the depth first search clustering algorithm. More details ARGthe input matrix=c1_mat
clust1The CLUSTER_WEIGHTS action with label clust1 calculates the following quantities:| Quantity | Type | Description |
| clust1 | vector | vector with elements that are one if the atom of interest is part of the required cluster and zero otherwise |
: CLUSTER_WEIGHTSSetup a vector that has one for all the atoms that form part of the cluster of interest and that has zero for all other atoms. More details CLUSTERSthe label of the action that does the clustering=dfs CLUSTER which cluster would you like to look at 1 is the largest cluster, 2 is the second largest, 3 is the the third largest and so on=1
comThe ARGS2VATOM action with label com calculates the following quantities:| Quantity | Type | Description |
| com.x | scalar | the x coordinate of the virtual atom |
| com.y | scalar | the y coordinate of the virtual atom |
| com.z | scalar | the z coordinate of the virtual atom |
| com.mass | scalar | the mass of the virtual atom |
| com.charge | scalar | the charge of the virtual atom |
: CENTERCalculate the center for a group of atoms, with arbitrary weights. This action is a shortcut. More details ATOMSthe group of atoms that appear in the definition of this center=1-512 WEIGHTSwhat weights should be used when calculating the center=clust1 PHASES use trigonometric phases when computing position of center
# com: CENTER ATOMS=1-512 WEIGHTS=clust1 PHASES
com_mThe MASS action with label com_m calculates the following quantities:| Quantity | Type | Description |
| com_m | vector | the MASS of the atom/s |
: MASSGet the mass of one or multiple atoms More details ATOMSthe atom numbers that you would like to store the masses and charges of=1-512
com_massThe SUM action with label com_mass calculates the following quantities:| Quantity | Type | Description |
| com_mass | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO ARGthe vector/matrix/grid whose elements shuld be added together=com_m
com_qThe CHARGE action with label com_q calculates the following quantities:| Quantity | Type | Description |
| com_q | vector | the CHARGE of the atom/s |
: CHARGEGet the charges of one or multiple atoms More details ATOMSthe atom numbers that you would like to store the masses and charges of=1-512
com_chargeThe SUM action with label com_charge calculates the following quantities:| Quantity | Type | Description |
| com_charge | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO ARGthe vector/matrix/grid whose elements shuld be added together=com_q
com_fposThe POSITION action with label com_fpos calculates the following quantities:| Quantity | Type | Description |
| com_fpos.a | vector | the normalized projection on the first lattice vector of the atom position |
| com_fpos.b | vector | the normalized projection on the second lattice vector of the atom position |
| com_fpos.c | vector | the normalized projection on the third lattice vector of the atom position |
: POSITIONCalculate the components of the position of an atom or atoms. More details SCALED_COMPONENTS calculate the a, b and c scaled components of the position separately and store them as label ATOMSthe atom numbers that you would like to use the positions of=1-512
com_sinaThe CUSTOM action with label com_sina calculates the following quantities:| Quantity | Type | Description |
| com_sina | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,com_fpos.a FUNCthe function you wish to evaluate=x*sin(2*pi*y) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_cosaThe CUSTOM action with label com_cosa calculates the following quantities:| Quantity | Type | Description |
| com_cosa | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,com_fpos.a FUNCthe function you wish to evaluate=x*cos(2*pi*y) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_sinbThe CUSTOM action with label com_sinb calculates the following quantities:| Quantity | Type | Description |
| com_sinb | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,com_fpos.b FUNCthe function you wish to evaluate=x*sin(2*pi*y) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_cosbThe CUSTOM action with label com_cosb calculates the following quantities:| Quantity | Type | Description |
| com_cosb | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,com_fpos.b FUNCthe function you wish to evaluate=x*cos(2*pi*y) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_sincThe CUSTOM action with label com_sinc calculates the following quantities:| Quantity | Type | Description |
| com_sinc | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,com_fpos.c FUNCthe function you wish to evaluate=x*sin(2*pi*y) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_coscThe CUSTOM action with label com_cosc calculates the following quantities:| Quantity | Type | Description |
| com_cosc | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,com_fpos.c FUNCthe function you wish to evaluate=x*cos(2*pi*y) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_sinsumaThe SUM action with label com_sinsuma calculates the following quantities:| Quantity | Type | Description |
| com_sinsuma | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=com_sina PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_cossumaThe SUM action with label com_cossuma calculates the following quantities:| Quantity | Type | Description |
| com_cossuma | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=com_cosa PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_sinsumbThe SUM action with label com_sinsumb calculates the following quantities:| Quantity | Type | Description |
| com_sinsumb | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=com_sinb PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_cossumbThe SUM action with label com_cossumb calculates the following quantities:| Quantity | Type | Description |
| com_cossumb | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=com_cosb PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_sinsumcThe SUM action with label com_sinsumc calculates the following quantities:| Quantity | Type | Description |
| com_sinsumc | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=com_sinc PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_cossumcThe SUM action with label com_cossumc calculates the following quantities:| Quantity | Type | Description |
| com_cossumc | scalar | the SUM of the elements in the input value |
: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=com_cosc PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_aThe CUSTOM action with label com_a calculates the following quantities:| Quantity | Type | Description |
| com_a | scalar | an arbitrary function |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=com_sinsuma,com_cossuma FUNCthe function you wish to evaluate=atan2(x,y)/(2*pi) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_bThe CUSTOM action with label com_b calculates the following quantities:| Quantity | Type | Description |
| com_b | scalar | an arbitrary function |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=com_sinsumb,com_cossumb FUNCthe function you wish to evaluate=atan2(x,y)/(2*pi) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com_cThe CUSTOM action with label com_c calculates the following quantities:| Quantity | Type | Description |
| com_c | scalar | an arbitrary function |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=com_sinsumc,com_cossumc FUNCthe function you wish to evaluate=atan2(x,y)/(2*pi) PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
com: ARGS2VATOMCreate a virtual atom from the input scalars More details XPOSthe value to use for the x position of the atom=com_a YPOSthe value to use for the y position of the atom=com_b ZPOSthe value to use for the z position of the atom=com_c MASSthe value to use for the mass of the atom=com_mass CHARGEthe value to use for the charge of the atom=com_charge FRACTIONAL the input arguments are calculated in fractional coordinates so you need to multiply by the cell
# --- End of included input ---
ffThe CUSTOM action with label ff calculates the following quantities:| Quantity | Type | Description |
| ff | vector | the vector obtained by doing an element-wise application of an arbitrary function to the input vectors |
: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=clust1,cf FUNCthe function you wish to evaluate=x*y PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
ddThe DISTANCE_FROM_SPHERICAL_CONTOUR action with label dd calculates the following quantities:| Quantity | Type | Description |
| dd.dist | scalar | the distance between the reference atom and the nearest contour |
| dd.radius | scalar | the radial distance from the center of the contour to the edge |
: DISTANCE_FROM_SPHERICAL_CONTOURCalculate the perpendicular distance from a Willard-Chandler dividing surface. This action has hidden defaults. More details ARGthe label of the weights to use when constructing the density=ff POSITIONSthe positions of the atoms that we are calculating the contour from=1-512 ATOMThe atom whose perpendicular distance we are calculating from the contour=513 ORIGINThe position of the center of the region that the contour encloses=com BANDWIDTHthe bandwidths for kernel density esimtation=1.0,1.0,1.0 CONTOURthe value we would like for the contour=0.5
dd: DISTANCE_FROM_SPHERICAL_CONTOURCalculate the perpendicular distance from a Willard-Chandler dividing surface. This action uses the defaults shown here. More details ARGthe label of the weights to use when constructing the density=ff POSITIONSthe positions of the atoms that we are calculating the contour from=1-512 ATOMThe atom whose perpendicular distance we are calculating from the contour=513 ORIGINThe position of the center of the region that the contour encloses=com BANDWIDTHthe bandwidths for kernel density esimtation=1.0,1.0,1.0 CONTOURthe value we would like for the contour=0.5 KERNEL the kernel function you are using=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=dd.* FILEthe name of the file on which to output these quantities=colvar
More information about how this action can be used is available in the following articles: