About compute temp/region command

Hi Lammps users

In compute temp/region command the temperature of a region is calculated.

What’s the role of specified group-ID in this command?

Does it neglected by that command?

Sincerely you

Richard J Ford

From the doc page:

The temperature is calculated by the formula KE = dim/2 N k T, where
KE = total kinetic energy of the group of atoms (sum of 1/2 m v^2),
dim = 2 or 3 = dimensionality of the simulation, N = number of atoms
in both the group and region, k = Boltzmann constant, and T =
temperature.

So only atoms both in the group and region are considered.
I’ll make it a little more clear at the top of the doc page.

Steve