Action: BRIDGE_MATRIX
Module | adjmat |
---|---|
Description | Usage |
Calculate the number of atoms that bridge two parts of a structure | |
output value | type |
a matrix containing the weights for the bonds between each pair of atoms | matrix |
Output components
This action can calculate the values in the following table when the associated keyword is included in the input for the action. These values can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the value required from the list below.
Name | Type | Keyword | Description |
---|---|---|---|
w | matrix | COMPONENTS | a matrix containing the weights for the bonds between each pair of atoms |
x | matrix | COMPONENTS | the projection of the bond on the x axis |
y | matrix | COMPONENTS | the projection of the bond on the y axis |
z | matrix | COMPONENTS | the projection of the bond on the z axis |
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 for which you would like to calculate the adjacency matrix |
GROUPA | atoms | when you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPB |
GROUPB | atoms | when you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPA |
ATOMS | atoms | the atoms for which you would like to calculate the adjacency matrix |
BRIDGING_ATOMS | atoms | The list of atoms that can form the bridge between the two interesting parts of the structure |
Further details and examples
Calculate the number of atoms that bridge two parts of a structure
This adjacency matrix is used to implement the BRIDGE shortcut. The action outputs a adjacency matrix in the same way as CONTACT_MATRIX. However, the j,k element of the adjacency matrix is calculated using:
\f[ f(x) = \sum_{ijk} s_A(r_{ij})s_B(r_{ik}) \f]
In this expression, the sum runs over all the atoms that were specified using the BRIDGING_ATOMS
keyword, sA and
sB are switching functions, and rij and rik are the distances between atom i and j and between atoms
i and k. Less formally, this formula ensures that j,k element of the output matrix is one if there is a bridging
atom between atom j and k.
Examples
The following example instructs plumed to calculate the number of water molecules that are bridging between atoms 1-10 and atoms 11-20 and to print the value to a file
w1BRIDGECalculate a matrix with elements equal to one if there is a bridging atom between the two atoms This action is a shortcut. More details BRIDGING_ATOMSThe list of atoms that can form the bridge between the two interesting parts of the structure=100-200 GROUPAwhen you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPB=1-10 GROUPBwhen you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPA=11-20 SWITCHThe parameters of the two switching functions in the above formula. Options for this keyword are explained in the documentation for LESS_THAN.={RATIONAL R_0=0.2} : PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=w1 FILEthe name of the file on which to output these quantities=colvar
References
More information about how this action can be used is available in the following articles: - G. A. Tribello, F. Giberti, G. C. Sosso, M. Salvalaglio, M. Parrinello, Analyzing and Driving Cluster Formation in Atomistic Simulations. Journal of Chemical Theory and Computation. 13, 1317–1327 (2017)
Syntax
The following table describes the keywords and options that can be used with this action
Keyword | Type | Default | Description |
---|---|---|---|
GROUP | input | none | the atoms for which you would like to calculate the adjacency matrix |
GROUPA | input | none | when you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPB |
GROUPB | input | none | when you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPA |
ATOMS | input | none | the atoms for which you would like to calculate the adjacency matrix |
BRIDGING_ATOMS | input | none | The list of atoms that can form the bridge between the two interesting parts of the structure |
NL_CUTOFF | compulsory | 0.0 | The cutoff for the neighbor list |
NL_STRIDE | compulsory | 1 | The frequency with which we are updating the atoms in the neighbor list |
SERIAL | optional | false | do the calculation in serial |
COMPONENTS | optional | false | also calculate the components of the vectors connecting the atoms in the contact matrix |
NOPBC | optional | false | don't use pbc |
SWITCH | optional | not used | The parameters of the two switching functions in the above formula. Options for this keyword are explained in the documentation for LESS_THAN. |
SWITCHA | optional | not used | The switching function on the distance between bridging atoms and the atoms in group A. Options for this keyword are explained in the documentation for LESS_THAN. |
SWITCHB | optional | not used | The switching function on the distance between the bridging atoms and the atoms in group B. Options for this keyword are explained in the documentation for LESS_THAN. |