This is part of the generic module |
Read quantities from a colvar file.
This Action can be used with driver to read in a colvar file that was generated during an MD simulation
The READ command will read those fields that are labelled with the text string given to the VALUE keyword. It will also read in any fields that are labeled with the text string given to the VALUE keyword followed by a dot and a further string. If a single Value is read in this value can be referenced using the label of the Action. Alternatively, if multiple quantities are read in, they can be referenced elsewhere in the input by using the label for the Action followed by a dot and the character string that appeared after the dot in the title of the field.
This input reads in data from a file called input_colvar.data that was generated in a calculation that involved PLUMED. The first command reads in the data from the column headed phi1 while the second reads in the data from the column headed phi2.
rphi1: READFILE=input_colvar.datacompulsory keyword the name of the file from which to read these quantitiesVALUES=phi1 rphi2: READcompulsory keyword the values to read from the fileFILE=input_colvar.datacompulsory keyword the name of the file from which to read these quantitiesVALUES=phi2 PRINTcompulsory keyword the values to read from the fileARG=rphi1,rphi2the input for this action is the scalar output from one or more other actions.STRIDE=500compulsory keyword ( default=1 ) the frequency with which the quantities of interest should be outputFILE=output_colvar.datathe name of the file on which to output these quantities
The file input_colvar.data is just a normal colvar file as shown below
#! FIELDS time phi psi metad.bias metad.rbias metad.rct #! SET min_phi -pi #! SET max_phi pi #! SET min_psi -pi #! SET max_psi pi 0.000000 -1.2379 0.8942 0.0000 0.0000 0.0000 1.000000 -1.4839 1.0482 0.0000 0.0000 0.0089 2.000000 -1.3243 0.6055 0.0753 0.0664 0.0184
STRIDE | ( default=1 ) the frequency with which the file should be read. |
EVERY | ( default=1 ) only read every \(n\)th line of the colvar file. This should be used if the colvar was written more frequently than the trajectory. |
VALUES | the values to read from the file |
FILE | the name of the file from which to read these quantities |
IGNORE_TIME | ( default=off ) ignore the time in the colvar file. When this flag is not present read will be quite strict about the start time of the simulation and the stride between frames |
IGNORE_FORCES | ( default=off ) use this flag if the forces added by any bias can be safely ignored. As an example forces can be safely ignored if you are doing post processing that does not involve outputting forces |
UPDATE_FROM | Only update this action from this time |
UPDATE_UNTIL | Only update this action until this time |