Skip to content

Action: DUMPPROJECTIONS

Module generic
Description Usage
Dump the derivatives with respect to the input parameters for one or more objects (generally CVs, functions or biases). used in 0 tutorialsused in 0 eggs
This action outputs data to a file. You can read more about how PLUMED manages output files here

Details and examples

Dump the derivatives with respect to the input parameters for one or more objects (generally CVs, functions or biases).

Consider the following PLUMED input:

Click on the labels of the actions for more information on what each action computes
tested on2.11
x1: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=1-10
x2: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=11-20
r: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=x1,x2

The derivatives of the distance r with respect to the atomic positions, , are given by:

For the input above there are 69 of these derivatives in total. These include the derivatives of with respect to the , and components of the 10 atomic positions that are used to calculate , the derivatives of with respect to the , and components of the 10 atomic positions that are used to calculate and the 9 derivatives of with respect to the cell vectors.

If we add a DUMPROJECTIONS command to the above input as shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
x1: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=1-10
x2: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=11-20
d: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=x1,x2
DUMPPROJECTIONSDump the derivatives with respect to the input parameters for one or more objects (generally CVs, functions or biases). More details ARGthe labels of the values whose gradients should be outpu=d FILEthe name of the file on which to output the derivatives=proj STRIDE the frequency with which the derivatives should be output=20

PLUMED will output these 69 derivatives to the proj file.

only works for scalars

This action cannot be used if non rank zero objects are passed between actions that are used to calculate the quantity (d in the above examples) whose projections are being output using the DUMPPROJECTIONS command

RESTART, UPDATE_FROM and UPDATE_UNTIL

Notice that the RESTART, UPDATE_FROM and UPDATE_UNTIL keywords keywords can be used in this action in the same way as they are used for PRINT. Consequently, if you would like to append derivatives to an existing file called proj instead of backing that file up at the start of the calculation and outputting the data from the calculation on a new file called proj you would use an input like the one shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
x1: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=1-10
x2: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=11-20
d: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=x1,x2
DUMPPROJECTIONSDump the derivatives with respect to the input parameters for one or more objects (generally CVs, functions or biases). More details ARGthe labels of the values whose gradients should be outpu=d STRIDE the frequency with which the derivatives should be output=1 FILEthe name of the file on which to output the derivatives=proj FMT the format with which the derivatives should be output=%10.6f RESTARTallows per-action setting of restart (YES/NO/AUTO)=YES

Similarly, if you want to only output the derivatives during the 400 ps time interval after the first 100 ps of the simulation you would use an input like the one shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
x1: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=1-10
x2: CENTERCalculate the center for a group of atoms, with arbitrary weights. More details ATOMSthe group of atoms that appear in the definition of this center=11-20
d: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=x1,x2
DUMPPROJECTIONSDump the derivatives with respect to the input parameters for one or more objects (generally CVs, functions or biases). More details ARGthe labels of the values whose gradients should be outpu=d STRIDE the frequency with which the derivatives should be output=1 FILEthe name of the file on which to output the derivatives=d UPDATE_FROMOnly update this action from this time=100 UPDATE_UNTILOnly update this action until this time=500

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 gradients should be outpu

Full list of keywords

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 gradients should be outpu
STRIDE compulsory 1 the frequency with which the derivatives should be output
FILE compulsory none the name of the file on which to output the derivatives
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