Skip to content

Module: valtools

Description Usage
tools for manipulating the values that are passed between actions
Authors: Gareth Tribello used in 4 tutorialsused in 2 eggs

Details

Each line in a PLUMED input file defines and action. The actions in the input file communicate through the passing of values. In early versions of PLUMED these values were scalars. However, from PLUMED 2.10 onwards you can pass values that are scalars, vectors, matrices or functions on grids.

The tools in this module allow you to convert values from one type to another. For example, CONCATENATE allows you to combine multiple scalars and vectors into a single larger vector, FLATTEN allows you to convert a matrix to a vector and VSTACK allows you to combine multiple input vectors into a matrix.

Actions

The following actions are part of this module

Name Description Tags
CONCATENATE Join vectors or matrices together MCOLVAR
FLATTEN Convert a matrix into a vector FUNCTION
SELECT_COMPONENTS Create a new value to hold a subset of the components that are in a vector or matrix PRINTANALYSIS
SELECT_WITH_MASK Use a mask to select elements of an array PRINTANALYSIS
VSTACK Create a matrix by stacking vectors together MCOLVAR