next up previous contents index
Next: Choosing a function Up: Collective Variables Interface (Colvars) Previous: Output files   Contents   Index

Defining collective variables

A collective variable is defined by the keyword colvar followed by its configuration options contained within curly braces:


colvar {
  name xi
  $ <$ other options$ >$
  function_name {
    $ <$ parameters$ >$
    $ <$ atom selection$ >$
  }
}

There are multiple ways of defining a variable:

Choosing a component (function) is the only parameter strictly required to define a collective variable. It is also highly recommended to specify a name for the variable:



Subsections
next up previous contents index
Next: Choosing a function Up: Collective Variables Interface (Colvars) Previous: Output files   Contents   Index
vmd@ks.uiuc.edu