This is part of the generic module |
Create a constant value that can be passed to actions
Useful in combination with functions that takes in input constants or parameters.
The following input instructs plumed to compute the distance between atoms 1 and 2. If this distance is between 1.0 and 2.0, it is printed. If it is lower than 1.0 (larger than 2.0), 1.0 (2.0) is printed
cn: CONSTANTVALUES=1.0,2.0 dis: DISTANCEthe numbers that are in your constant valueATOMS=1,2 sss: SORTthe pair of atom that we are calculating the distance between.ARG=cn.v-0,dis,cn.v-1 PRINTthe input to this function.ARG=sss.2the input for this action is the scalar output from one or more other actions.
In case you want to pass a single value you can use VALUE:
By default the value of the calculated quantity can be referenced elsewhere in the input file by using the label of the action. Alternatively this Action can be used to calculate the following quantities by employing the keywords listed below. These quantities can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the quantity required from the list below.
Quantity | Keyword | Description |
v | SCALARS | the # value |
NROWS | ( default=0 ) the number of rows in your input matrix |
NCOLS | ( default=0 ) the number of columns in your matrix |
SCALARS | ( default=off ) treat the input list of numbers as a set of scalars |
NOLOG | ( default=off ) do not report all the read in scalars in the log |
FILE | an input file containing the matrix |
VALUE | the single number that you would like to store |
VALUES | the numbers that are in your constant value |