Energy is passed correctly

It is common practise to use the potential energy as a collective energy. Some MD codes thus pass the potential energy to PLUMED. To check that this quantity has been passed correctly we can output the passed energy from PLUMED using the following input.

Click on the labels of the actions for more information on what each action computes
tested on2.10
tested onmaster
e: ENERGYCalculate the total potential energy of the simulation box. More details 
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=e FILEthe name of the file on which to output these quantities=colvar

We can then also output the energy from the MD code and check this matches the value output by PLUMED. We run a short trajectory to test that the energy is passed correctly.

Trajectory

Input and output files for the test calculation are available inthis zip archive

Results

MD code output PLUMED output Tolerance % Difference
-18174.695312 0.0 0.001 1817469531.1999998
-18171.693359 0.0 0.001 1817169335.9
-18194.494141 0.0 0.001 1819449414.1
-18167.873047 0.0 0.001 1816787304.7000003
-18155.994141 0.0 0.001 1815599414.1
-18139.197266 0.0 0.001 1813919726.6
-18123.005859 0.0 0.001 1812300585.9
-18113.097656 0.0 0.001 1811309765.6000004
-18112.669922 0.0 0.001 1811266992.2000003
-18120.630859 0.0 0.001 1812063085.9
-18132.265625 0.0 0.001 1813226562.5
-18142.228516 0.0 0.001 1814222851.6
-18148.193359 0.0 0.001 1814819335.9
-18152.882812 0.0 0.001 1815288281.1999998
-18162.253906 0.0 0.001 1816225390.6000004
-18179.886719 0.0 0.001 1817988671.8999996
-18202.994141 0.0 0.001 1820299414.1
-18222.632812 0.0 0.001 1822263281.1999998
-18229.853516 0.0 0.001 1822985351.6
-18221.216797 0.0 0.001 1822121679.7000003

The table below includes some of the results from the calculation. The columns contain:

  1. The energies that were obtained from the MD code, $x_{md}$.
  2. The energies that were obtained from PLUMED, $x_{pl}$.
  3. The tolerances that were used when comparing these quantities, $\delta$.
  4. 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.

Graphical representation (beta)

A visualization of the table above:
energy_master