2.2.3 compute

compute is used to compute certain data specified by the user.

Syntax:

compute      id group-id style args

Examples:

compute      1 all centroid 
compute      2 water temp

Description:

A list of current available compute style is given below:




centroidcompute centroid of a group of particles
pressure perform time average
rdf compute radial distribution of a group of particles
temp perform time average on spatial average



Table 2.2: List of available compute style

Output

The output can be in the form of scalar, vector or array.