Action: PRINT_NDX
Module | generic |
---|---|
Description | Usage |
Print an ndx file | |
This action outputs data to a file. You can read more about how PLUMED manages output files here |
Input
The arguments and atoms 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 | vector | the labels of vectors that should be used when printind the NDX file |
ATOMS | atoms | the list of atoms that have the corresponding arguments |
Further details and examples
Print an ndx file
The following example shows how you can use this command to print out the indices of all the atoms that have a coordination number that is greater than or equal to 4.
# These three lines calculate the coordination numbers of 100 atoms c1 : CONTACT_MATRIXAdjacency matrix in which two atoms are adjacent if they are within a certain cutoff. More details GROUPspecifies the list of atoms that should be assumed indistinguishable=1-100 SWITCHthe input for the switching function that acts upon the distance between each pair of atoms. Options for this keyword are explained in the documentation for LESS_THAN.={RATIONAL R_0=0.1 NN=6 MM=12} onesONESCreate a constant vector with all elements equal to one This action is a shortcut. More details SIZEthe number of ones that you would like to create=100 : cc : MATRIX_VECTOR_PRODUCTCalculate the product of the matrix and the vector More details ARGthe label for the matrix and the vector/scalar that are being multiplied=c1,ones # This command then prints the indices of the atoms that have a coordination number that is greater than 4 # every step PRINT_NDXPrint an ndx file More details ATOMSthe list of atoms that have the corresponding arguments=1-100 ARGthe labels of vectors that should be used when printind the NDX file=cc GREATER_THAN_OR_EQUALwhen printing with arguments that are vectors only print components of vectors have a value greater than or equal to this value=4
This command is used in the OUTPUT_CLUSTER command that you can use to output the indices of the atoms that are in a particular cluster.
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 vectors that should be used when printind the NDX file |
ATOMS | input | none | the list of atoms that have the corresponding arguments |
STRIDE | compulsory | 1 | the frequency with which the quantities of interest should be output |
FILE | optional | not used | the name of the file on which to output these quantities |
LESS_THAN_OR_EQUAL | optional | not used | when printing with arguments that are vectors only print components of vectors have a value less than or equal to this value |
GREATER_THAN_OR_EQUAL | optional | not used | when printing with arguments that are vectors only print components of vectors have a value greater than or equal to this value |
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 |