next up previous contents index
Next: Defining grid parameters Up: Defining collective variables Previous: Linear and polynomial combinations   Contents   Index

Scripted functions

When scripting is supported (default in VMD), a colvar may be defined as a scripted function of its components, rather than a linear or polynomial combination. When implementing generic functions of Cartesian coordinates rather than functions of existing components, the cartesian component may be particularly useful. A scalar-valued scripted variable may be manually defined as periodic by providing the keyword period, and the optional keyword wrapAround, with the same meaning as in periodic components (see [*] for details).

An example of elaborate scripted colvar is given in example 10, in the form of path-based collective variables as defined by Branduardi et al[55] (Section [*]).


next up previous contents index
Next: Defining grid parameters Up: Defining collective variables Previous: Linear and polynomial combinations   Contents   Index
vmd@ks.uiuc.edu