CAVITY_CALC
This is part of the volumes module
It is only available if you configure PLUMED with ./configure –enable-modules=volumes . Furthermore, this feature is still being developed so take care when using it and report any problems on the mailing list.

Calculate a vector from the input positions with elements equal to one when the positions are in a particular part of the cell and elements equal to zero otherwise

Examples
Glossary of keywords and components
Description of components

By default the value of the calculated quantity can be referenced elsewhere in the input file by using the label of the action. Alternatively this Action can be used to calculate the following quantities by employing the keywords listed below. These quantities can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the quantity required from the list below.

Quantity Description
.#!value vector of numbers between 0 and 1 that measure the degree to which each atom is within the volume of interest
The atoms involved can be specified using
ATOMS the group of atoms that you would like to investigate. For more information on how to specify lists of atoms see Groups and Virtual Atoms
BOX the positions of four atoms that define spatial extent of the cavity. For more information on how to specify lists of atoms see Groups and Virtual Atoms
Compulsory keywords
SIGMA the width of the function to be used for kernel density estimation
KERNEL ( default=gaussian ) the type of kernel function to be used
Options
SERIAL ( default=off ) do the calculation in serial. Do not parallelize
OUTSIDE ( default=off ) calculate quantities for colvars that are on atoms outside the region of interest
PRINT_BOX

( default=off ) write out the positions of the corners of the box to an xyz file

FILE the file on which to write out the box coordinates
UNITS ( default=nm ) the units in which to write out the corners of the box