Create a constant value that can be passed to actions
Useful in combination with functions that takes in input constants or parameters.
Examples
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
Click on the labels of the actions for more information on what each action computes
cn: CONSTANTVALUESthe numbers that are in your constant value =1.0,2.0 You cannot view the components that are calculated by each action for this input file. Sorry dis: DISTANCEATOMSthe pair of atom that we are calculating the distance between. =1,2 You cannot view the components that are calculated by each action for this input file. Sorry sss: SORTARGcompulsory keyword
the values input to this function =cn.v-0,dis,cn.v-1 You cannot view the components that are calculated by each action for this input file. Sorry PRINTARGcompulsory keyword
the labels of the values that you would like to print to the file =sss.2 You cannot view the components that are calculated by each action for this input file. Sorry
In case you want to pass a single value you can use VALUE:
Click on the labels of the actions for more information on what each action computes
cn: CONSTANTVALUEthe single number that you would like to store =1.0 The CONSTANT action with label cn calculates a single scalar valuedis: DISTANCEATOMSthe pair of atom that we are calculating the distance between. =1,2 The DISTANCE action with label dis calculates a single scalar valuesss: SORTARGcompulsory keyword
the values input to this function =cn,disThe SORT action with label sss calculates the following quantities:
Quantity
Description
sss.1
the 1th largest of the input scalars
sss.2
the 2th largest of the input scalars
PRINTARGcompulsory keyword
the labels of the values that you would like to print to the file =sss.1The PRINT action with label
cn: CONSTANTVALUEthe single number that you would like to store =1.0 The CONSTANT action with label cn calculates a single scalar valuedis: DISTANCEATOMSthe pair of atom that we are calculating the distance between. =1,2 The DISTANCE action with label dis calculates a single scalar valuePRINTARGcompulsory keyword
the labels of the values that you would like to print to the file =sss.1 The PRINT action with label
Glossary of keywords and components
Description of components
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
Description
.#!value
the constant value that was read from the plumed input
In addition the following quantities can be calculated by employing the keywords listed below
Quantity
Keyword
Description
v
SCALARS
the # value
Compulsory keywords
NROWS
( default=0 ) the number of rows in your input matrix
NCOLS
( default=0 ) the number of columns in your matrix
Options
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