Shortcut: RESTRAINT

Module bias
Description Usage
Adds harmonic and/or linear restraints on one or more variables. used in 10 tutorialsused in 29 eggs

Output components

This action calculates the values in the following table. These values can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the value required from the list below.

Name Type Description
bias scalar the instantaneous value of the bias potential
force2 scalar/vector the instantaneous value of the squared force due to this bias potential

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/vector the values the harmonic restraint acts upon

Further details and examples

Adds harmonic and/or linear restraints on one or more variables.

Either or both of SLOPE and KAPPA must be present to specify the linear and harmonic force constants respectively. If the input arguments are scalars the resulting potential is given by:

.

The following example input illustrates how you can apply a potential of this type. This input tells plumed to restrain the distance between atoms 3 and 5 and the distance between atoms 2 and 4, at different equilibrium values, and to print the energy of the restraint

Click on the labels of the actions for more information on what each action computes
tested on2.11
d1: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=3,5
d2: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=2,4
restraint: RESTRAINTAdds harmonic and/or linear restraints on one or more variables. This action has hidden defaults. More details ARGthe values the harmonic restraint acts upon=d1,d2 ATthe position of the restraint=1.0,1.5 KAPPA specifies that the restraint is harmonic and what the values of the force constants on each of the variables are=150.0,150.0
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=restraint.bias

If by contrast the inputs are vectors as in the example below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
d1: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMS1the pair of atom that we are calculating the distance between=3,5 ATOMS2the pair of atom that we are calculating the distance between=5,6 ATOMS3the pair of atom that we are calculating the distance between=6,7
d2: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMS1the pair of atom that we are calculating the distance between=2,4 ATOMS2the pair of atom that we are calculating the distance between=4,6 ATOMS3the pair of atom that we are calculating the distance between=6,8
restraint: RESTRAINTAdds harmonic and/or linear restraints on one or more variables. This action is a shortcut and it has hidden defaults. More details ARGthe values the harmonic restraint acts upon=d1,d2 ATthe position of the restraint=1.0,1.5 KAPPA specifies that the restraint is harmonic and what the values of the force constants on each of the variables are=150.0,150.0
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=restraint.bias

Then the resulting potential is given by:

The sum over here is runs over the two arguments, while the sum over runs over the three components of the input vectors. Notice, that regardless of whether the input is a scalar, vector or matrix the number of , and values must be equal to the number of arguments to the action.

Syntax

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ARG input none the values the harmonic restraint acts upon
SLOPE compulsory 0.0 specifies that the restraint is linear and what the values of the force constants on each of the variables are
KAPPA compulsory 0.0 specifies that the restraint is harmonic and what the values of the force constants on each of the variables are
AT compulsory none the position of the restraint