Charges are passed correctly
PLUMED must receive the charges from an MD code in order to calculate some CVs correctly. To test that charges are passed correctly to PLUMED we run a short trajectory and output the charges of all the atoms that are passed to PLUMED using the following command:
DUMPMASSCHARGEDump masses and charges on a selected file. More detailsFILE=mq_plumedfile on which to output charges and masses
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 charges that were obtained from the MD code, $x_{md}$.
- The charges 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 |
---|---|---|---|
0.0 | 0.0 | 0.001 | 0.0 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
-1.04844 | -1.048439979553223 | 0.001 | 0.002044677693824326 |
0.0 | 0.0 | 0.001 | 0.0 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
-1.04844 | -1.048439979553223 | 0.001 | 0.002044677693824326 |
0.0 | 0.0 | 0.001 | 0.0 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
-1.04844 | -1.048439979553223 | 0.001 | 0.002044677693824326 |
0.0 | 0.0 | 0.001 | 0.0 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
-1.04844 | -1.048439979553223 | 0.001 | 0.002044677693824326 |
0.0 | 0.0 | 0.001 | 0.0 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
0.52422 | 0.5242199897766113 | 0.001 | 0.0010223388691166235 |
-1.04844 | -1.048439979553223 | 0.001 | 0.002044677693824326 |