Illegal print command

Hello,

I would like to run a simulation in which temperature is printed in an output file every 1000 timestep. I use the following lines:

compute t1 all temp

variable Temperature equal c_t1

fix Temp all print 1000 “{t} {Temperature}” file Temp_N={n}_D={D}_1.txt title"" screen no

Where t, n, D are all variables defined previously in my script. When I run, an illegal print command error is signaled regarding the fix Temp. Why does this happen? I read compute temp provide a global scalar value (temperature) and in addition a kinetic tensor that can be addressed by 1-6 indices, is my problem somewhat connected to this fact?

Regards.

Hello,
I would like to run a simulation in which temperature is printed in an
output file every 1000 timestep. I use the following lines:

compute t1 all temp
variable Temperature equal c_t1

fix Temp all print 1000 "\{t\} {Temperature}" file
Temp_N=\{n\}\_D={D}_1.txt title"" screen no

Where t, n, D are all variables defined previously in my script. When I
run, an illegal print command error is signaled regarding the fix Temp. Why
does this happen? I read compute temp provide a global scalar value
(temperature) and in addition a kinetic tensor that can be addressed by 1-6
indices, is my problem somewhat connected to this fact?

​no. you have no blank between 'title' and '""', that will LAMMPS "see" a
keyword 'title""', which doesn't exist and hence the error message.​

​axel.​

Ok, really thank you