[lammps-users] (no subject)

Hi,

I want to compute the kinetic energy of the atoms. I am defining the
formula for KE in the variable command and then computing it by compute
command but when I run this code it gives there is an error in the
compute style. I have used variable/atom style. I am using the example
given in the variable/atom command. The main lines of the input script
are

variable xy atom mult(0.5,add(mult(vx[],vx[]),mult(vy[],vy[])))
compute ke flow variable/atom xy
dump 1 flow custom 1000 dump.flow tag type x y z c_ke

Please reply

Regards,

Navin
Stevens Institute
Hoboken,NJ

It works fine for me. Are you using the most
current (fully patched LAMMPS)? What error
does it give?

Steve