Checking PLUMED can add a restraint
To check that the forces are being correctly passed from PLUMED to the MD code we test that the result from a PLUMED calculation where the following plumed input is used produces results that are equivalent to the result that is obtained when the restraint is applied within the MD code.
dd: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=1,2 RESTRAINTAdds harmonic and/or linear restraints on one or more variables. More details ARGthe values the harmonic restraint acts upon=dd KAPPA specifies that the restraint is harmonic and what the values of the force constants on each of the variables are=2000 ATthe position of the restraint=0.6 PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=dd FILEthe name of the file on which to output these quantities=plumed_restraint
To check that the two ways of applying the restraint are equivalent we use the following PLUMED input for the calculation where the MD code applies the restraint:
dd: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=1,2 PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=dd FILEthe name of the file on which to output these quantities=mdcode_restraint
Trajectories
-
Input and output files for the calculation where the restraint is applied by the MD code available in this zip archive
-
Input and output files for the calculation where the restraint is applied by PLUMED are available in this [zip archive](forces2_v2.10.zip
Results
Calculations were not successful and no data was generated for comparison
The table below includes some of the results from the calculation. The columns contain:
- The time series of distance values that were obtained when the restraint was applied by the MD code, $x_{md}$.
- The time series of distance values that were obtained when the restraint was applied by 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.