Action: DUMPFORCES

Module generic
Description Usage
Dump the force acting on one of a values in a file. used in 1 tutorialsused in 1 eggs
This action outputs data to a file. You can read more about how PLUMED manages output files here

Input

The arguments that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ARG scalar the labels of the values whose forces should be output

Further details and examples

Dump the force acting on one of a values in a file.

Consider the following PLUMED input:

Click on the labels of the actions for more information on what each action computes
tested on2.11
r: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=1,2
V: RESTRAINTAdds harmonic and/or linear restraints on one or more variables. This action has hidden defaults. More details ARGthe values the harmonic restraint acts upon=r ATthe position of the restraint=0.2 KAPPA specifies that the restraint is harmonic and what the values of the force constants on each of the variables are=100

This input will ultimately apply forces on the x, y and z components of two atoms as well as the 9 cell vectors. The force on the ith of these 15 quantities is given by:

Fi=dVdrrxi

where xi is the x, y or z component of the position of one of the two atoms or one of the cell vectors. If we modify the input above by adding the DUMPFORCES command as shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
r: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=1,2
V: RESTRAINTAdds harmonic and/or linear restraints on one or more variables. This action has hidden defaults. More details ARGthe values the harmonic restraint acts upon=r ATthe position of the restraint=0.2 KAPPA specifies that the restraint is harmonic and what the values of the force constants on each of the variables are=100
DUMPFORCESDump the force acting on one of a values in a file. More details ARGthe labels of the values whose forces should be output=r FILEthe name of the file on which to output the forces=forces

we can then monitor the value of -\frac{\textrm{d}V}{\textrm{d}r}\frac{\partial r} in the output file forces. As explained by the equation above to get the forces on the atom this 'input force' needs to be multiplied by rxi. To view the various components of the rxi you would use the DUMPDERIVATIVES command. To control the buffering of output you use the FLUSH command.

Syntax

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ARG input none the labels of the values whose forces should be output
STRIDE compulsory 1 the frequency with which the forces should be output
FILE compulsory none the name of the file on which to output the forces
FMT compulsory %15.10f the format with which the derivatives should be output
RESTART optional not used allows per-action setting of restart (YES/NO/AUTO)
UPDATE_FROM optional not used Only update this action from this time
UPDATE_UNTIL optional not used Only update this action until this time