Positions are passed correctly
PLUMED must receive the positions from an MD code in order to calculate CVs correctly.
To test these positions are passed correctly to PLUMED we run a short trajectory and output the positions of all the atoms
that are passed to PLUMED using the following command:
DUMPATOMSDump selected atoms on a file. More details ATOMSthe atom indices whose positions you would like to print out=@mdatomsrefers to all the MD codes atoms but not PLUMEDs vatoms. Click here for more information. FILEfile on which to output coordinates; extension is automatically detected=plumed.xyz
Trajectory
Input and output files for the test calculation are available inthis zip archive
Results
| MD code output | PLUMED output | Tolerance | % Difference |
|---|---|---|---|
| 0.0072 0.0026 -0.0010 | 0.0072 0.0026 -0.0010 | 0.0010 0.0010 0.0010 | 0.0100 0.0100 0.0200 |
| 0.8356 0.0057 0.8278 | 0.8356 0.0057 0.8278 | 0.0010 0.0010 0.0010 | 0.0417 0.0200 0.0358 |
| 0.8414 0.8356 -0.0095 | 0.8414 0.8356 -0.0095 | 0.0010 0.0010 0.0010 | 0.0060 0.0358 0.0400 |
| -0.0003 0.8353 0.8424 | -0.0003 0.8353 0.8424 | 0.0010 0.0010 0.0010 | 0.0000 0.0000 0.0119 |
| -0.0031 0.0007 1.6798 | -0.0031 0.0007 1.6798 | 0.0010 0.0010 0.0010 | 0.0100 0.0100 0.0238 |
| 0.8298 0.0052 2.5125 | 0.8298 0.0052 2.5125 | 0.0010 0.0010 0.0010 | 0.0417 0.0200 0.0238 |
| 0.8435 0.8406 1.6770 | 0.8435 0.8406 1.6770 | 0.0010 0.0010 0.0010 | 0.0417 0.0298 0.0358 |
| -0.0034 0.8372 2.5221 | -0.0034 0.8372 2.5221 | 0.0010 0.0010 0.0010 | 0.0400 0.0179 0.0000 |
| -0.0027 -0.0072 3.3624 | -0.0027 -0.0072 3.3624 | 0.0010 0.0010 0.0010 | 0.0000 0.0100 0.0477 |
| 0.8412 0.0023 4.2017 | 0.8412 0.0023 4.2017 | 0.0010 0.0010 0.0010 | 0.0417 0.0400 0.0477 |
| 0.8460 0.8461 3.3635 | 0.8460 0.8461 3.3635 | 0.0010 0.0010 0.0010 | 0.0179 0.0536 0.0238 |
| 0.0030 0.8505 4.1903 | 0.0030 0.8505 4.1903 | 0.0010 0.0010 0.0010 | 0.0400 0.0298 0.0477 |
| -0.0038 1.6700 -0.0011 | -0.0038 1.6700 -0.0011 | 0.0010 0.0010 0.0010 | 0.0200 0.0358 0.0400 |
| 0.8408 1.6771 0.8396 | 0.8408 1.6771 0.8396 | 0.0010 0.0010 0.0010 | 0.0119 0.0119 0.0119 |
| 0.8424 2.5265 -0.0090 | 0.8424 2.5265 -0.0090 | 0.0010 0.0010 0.0010 | 0.0238 0.0477 0.0100 |
| 0.0093 2.5196 0.8378 | 0.0093 2.5196 0.8378 | 0.0010 0.0010 0.0010 | 0.0199 0.0000 0.0179 |
| 0.0031 1.6739 1.6721 | 0.0031 1.6739 1.6721 | 0.0010 0.0010 0.0010 | 0.0200 0.0238 0.0358 |
| 0.8343 1.6824 2.5273 | 0.8343 1.6824 2.5273 | 0.0010 0.0010 0.0010 | 0.0298 0.0119 0.0477 |
| 0.8464 2.5251 1.6906 | 0.8464 2.5251 1.6906 | 0.0010 0.0010 0.0010 | 0.0179 0.0000 0.0000 |
| 0.0032 2.5284 2.5140 | 0.0032 2.5284 2.5140 | 0.0010 0.0010 0.0010 | 0.0200 0.0000 0.0000 |
The table below includes some of the results from the calculation. The columns contain:
- The positions that were obtained from the MD code, $x_{md}$.
- The positions 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.