2.2.3.2 compute pressure

compute pressure is used to calculate the pressure of the whole system.

Syntax:

compute      id group-id pressure

Examples:

compute      3 all pressure

Description:

This compute will calculate the pressure of the whole system by using Virial theorem.

Output:

The output is in the form of scalar. Results can be accessed by c_id in the thermo_modify custom command, where id is the compute id.