2.2.3.4 compute temp

compute temp is used to calculate the temperature of a group of particle.

Syntax:

compute      id group-id temp

Examples:

compute      1 all temp

Description:

This compute calculates the temperature of a group of particles based on the kinetic theory of gases. The expression of temperature is given as:

T = v23k B

Output:

The output is in the form of scalar.