compute ke command
Syntax
compute ID group-ID ke
ID, group-ID are documented in compute command
ke = style name of this compute command
Examples
compute 1 all ke
Description
Define a computation that calculates the translational kinetic energy of a group of particles.
The kinetic energy of each particle is computed as
There is a subtle difference between the quantity calculated by this
compute and the kinetic energy calculated by the ke or etotal
keyword used in thermodynamic output, as specified by the
thermo_style command. For this compute, kinetic
energy is “translational” kinetic energy, calculated by the simple
formula above. For thermodynamic output, the ke keyword infers
kinetic energy from the temperature of the system with
Output info
This compute calculates a global scalar (the summed KE). This value can be used by any command that uses a global scalar value from a compute as input. See the Howto output doc page for an overview of LAMMPS output options.
The scalar value calculated by this compute is “extensive”. The scalar value will be in energy units.
Restrictions
none
Default
none