[lammps-users] fix temp/rescale

Hi,
I want to use temp/rescale to fix the temperature. In the documentation it says that “A temp/rescale fix does not update the coordinates of its atoms. It is normally used with a fix of style nve that does that.” So, does that mean I should do something like the following?

fix 5 all temp/rescale 1 1.0 1.0 0.02 0.5
fix 6 all nve

Is the abovve format correct?
Cant I just use temp/rescale and not nve?
Thanks
Venkat

Venkat,
the format you give is correct. you have to use both temp/rescale and nve. temp/rescale only updates the atoms’ velocities and does not change positions, which is done in nve.

Mihail