next up previous contents index
Next: Input state file (optional) Up: General parameters and input/output Previous: #1   Contents   Index


Configuration syntax for the Colvars module

The Colvars configuration is usually read using the commands cv configfile or cv config. The syntax of the Colvars configuration is ``keyword value'', where the keyword and its value are separated by any white space. The following rules apply:

The following keywords are available in the global context of the colvars configuration, i.e. they are not nested inside other keywords:

The example below defines the same configuration shown in Fig. 13.1. The options within the colvar blocks are described in 13.2 and 13.4, the ones within the harmonic and histogram blocks in 13.5. Note: except colvar, none of the keywords shown is mandatory.

colvar {
  # difference of two distances
  name d
  width 0.2 # 0.2 Å of estimated fluctuation width
  distance {
    componentCoeff 1.0
    group1 { atomNumbers 1 2 }
    group2 { atomNumbers 3 4 5 }
  }
  distance {
    componentCoeff -1.0
    group1 { atomNumbers 7 }
    group2 { atomNumbers 8 9 10 }
  }
}

colvar {
  name c
  coordNum {
    cutoff 6.0
    group1 { atomNumbersRange 1-10 }
    group2 { atomNumbersRange 11-20 }
  }
}

colvar {
  name alpha
  alpha {
    psfSegID PROT
    residueRange 1-10
  }
}


harmonic {
  colvars d c
  centers 3.0 4.0
  forceConstant 5.0
}

histogram {
  colvars c alpha
}

Section 13.2 explains how to define a colvar and its behavior, regardless of its specific functional form. To define colvars that are appropriate to a specific physical system, Section 13.3 documents how to select atoms, and section 13.4 lists all of the available functional forms, which we call ``colvar components''. Finally, section 13.5 lists the available methods and algorithms to perform biased simulations and multidimensional analysis of colvars.


next up previous contents index
Next: Input state file (optional) Up: General parameters and input/output Previous: #1   Contents   Index
vmd@ks.uiuc.edu