This is part of the crystdistrib module | |
It is only available if you configure PLUMED with ./configure –enable-modules=crystdistrib . Furthermore, this feature is still being developed so take care when using it and report any problems on the mailing list. |
Calculate quaternions for molecules.
The reference frame for the molecule is defined using the positions of three user selected atoms. From the positions of these atoms, \(\mathbf{x}_1\), \(\mathbf{x}_2\) and \(\mathbf{x}_3\), we define the vectors of the reference frame as:
\[ \begin{aligned} \mathbf{x} & = \mathbf{x}_2 - \mathbf{x}_1 \\ \mathbf{y} & = (\mathbf{x}_2 - \mathbf{x}_1) \times (\mathbf{x}_3 - \mathbf{x}_1) \\ \mathbf{z} & \mathbf{x} \times \mathbf{y} \]
This calculates the quaternions for a molecule with 10 atoms
q1: QUATERNIONATOMS1=1,2,3 PRINTthe three atom that we are using to calculate the quaternion.ARG=q1.w,q1.i,q1.j,q1.kcompulsory keyword the labels of the values that you would like to print to the fileFILE=colvarthe name of the file on which to output these quantities
This calculate the quaternions for two molecules with 10 atoms
q1: QUATERNIONATOMS1=1,2,3the three atom that we are using to calculate the quaternion.ATOMS=4,5,6 PRINTthe three atom that we are using to calculate the quaternion.ARG=q1.w,q1.i,q1.j,q1.kcompulsory keyword the labels of the values that you would like to print to the fileFILE=colvarthe name of the file on which to output these quantities
By default this Action calculates the following quantities. These quantities can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the quantity required from the list below.
Quantity | Description |
w | the real component of quaternion |
i | the i component of the quaternion |
j | the j component of the quaternion |
k | the k component of the quaternion |
ATOMS | the three atom that we are using to calculate the quaternion. For more information on how to specify lists of atoms see Groups and Virtual Atoms |
NUMERICAL_DERIVATIVES | ( default=off ) calculate the derivatives for these quantities numerically |
NOPBC | ( default=off ) ignore the periodic boundary conditions when calculating distances |