Cell vectors are passed correctly
PLUMED must receive the cell vectors from the MD code in order to calculate CVs correctly.
To test that cell vectors are passed correctly to PLUMED we run a short trajectory and output the cell vectors
that are passed to PLUMED using the following command:
c:CELLCalculate the components of the simulation cell More details
Trajectory
Input and output files for the test calculation are available in this zip archive
Results
The table below includes some of the results from the calculation. The columns contain:
- The values for the cell vectors that were obtained from the MD code, $x_{md}$.
- The values for the cell vectors that were obtained from PLUMED, $x_{pl}$.
- The tolerances that were used when comparing these quantities, $\delta$.
- The values of $100\frac{\vert x_{md} - x_{pl}\vert }{ \delta }$.
If the PLUMED interface is working correctly the first two sets of numbers should be identical and the final column should be filled with zeros.
MD code output | PLUMED output | Tolerance | % Difference |
---|---|---|---|
2.7371 0.0000 0.0000 0.0000 2.7371 0.0000 0.0000 0.0000 2.7371 | 2.7371 0.0000 0.0000 0.0000 2.7371 0.0000 0.0000 0.0000 2.7371 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0080 0.0000 0.0000 0.0000 0.0060 0.0000 0.0000 0.0000 0.0060 |
2.7371 0.0000 0.0000 0.0000 2.7371 0.0000 0.0000 0.0000 2.7371 | 2.7371 0.0000 0.0000 0.0000 2.7371 0.0000 0.0000 0.0000 2.7371 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0053 0.0000 0.0000 0.0000 0.0033 0.0000 0.0000 0.0000 0.0033 |
2.7371 0.0000 0.0000 0.0000 2.7371 0.0000 0.0000 0.0000 2.7371 | 2.7371 0.0000 0.0000 0.0000 2.7371 0.0000 0.0000 0.0000 2.7371 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0019 0.0000 0.0000 0.0000 0.0039 0.0000 0.0000 0.0000 0.0039 |
2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0090 0.0000 0.0000 0.0000 0.0090 0.0000 0.0000 0.0000 0.0090 |
2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0082 0.0000 0.0000 0.0000 0.0098 0.0000 0.0000 0.0000 0.0098 |
2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0085 0.0000 0.0000 0.0000 0.0095 0.0000 0.0000 0.0000 0.0095 |
2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 2.7372 0.0000 0.0000 0.0000 2.7372 0.0000 0.0000 0.0000 2.7372 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0040 0.0000 0.0000 0.0000 0.0020 0.0000 0.0000 0.0000 0.0020 |
2.7373 0.0000 0.0000 0.0000 2.7373 0.0000 0.0000 0.0000 2.7373 | 2.7373 0.0000 0.0000 0.0000 2.7373 0.0000 0.0000 0.0000 2.7373 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0057 0.0000 0.0000 0.0000 0.0037 0.0000 0.0000 0.0000 0.0037 |
2.7373 0.0000 0.0000 0.0000 2.7373 0.0000 0.0000 0.0000 2.7373 | 2.7373 0.0000 0.0000 0.0000 2.7373 0.0000 0.0000 0.0000 2.7373 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0050 0.0000 0.0000 0.0000 0.0070 0.0000 0.0000 0.0000 0.0070 |
2.7374 0.0000 0.0000 0.0000 2.7374 0.0000 0.0000 0.0000 2.7374 | 2.7374 0.0000 0.0000 0.0000 2.7374 0.0000 0.0000 0.0000 2.7374 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0082 0.0000 0.0000 0.0000 0.0098 0.0000 0.0000 0.0000 0.0098 |
2.7374 0.0000 0.0000 0.0000 2.7374 0.0000 0.0000 0.0000 2.7374 | 2.7374 0.0000 0.0000 0.0000 2.7374 0.0000 0.0000 0.0000 2.7374 | 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 0.0050 | 0.0029 0.0000 0.0000 0.0000 0.0049 0.0000 0.0000 0.0000 0.0049 |