script & output file

Dear users,
By running same script always I am getting same output. Is it the real case?
I thought that it should vary about an average value. Please clarify me.

Another thing, is it possible to save the values of a variable at every run in an output file?

Thanks & regards

Dear users,
By running same script always I am getting same output. Is it the real case?

yes. if you don't change anything and don't have a
source of true randomnes you should get the same
answer. you use a computer and if they don't produce
the same result when doing the same thing, a lot of
researchers would be in great trouble.

I thought that it should vary about an average value. Please clarify me.

no. why??

   Another thing, is it possible to save the values of a variable at every
run in an output file?

what kind of variable and for what purpose?

axel.

Thank you Dr. Axel for your answer.
Actually I calculated thermal conductivity at every 2000 steps and also could save them in a file by “thermo_style” command .
But in that file there are other variables also. and because of that It is bit difficult to get the values of thermal conductivity to plot them as a function of time. So I just wanted to save them in a file which is containing nothing but only the values of thermal conductivity.and doing so it could have been convenient for me to plot.
Thanks & Regards

Thank you Dr. Axel for your answer.
Actually I calculated thermal conductivity at every 2000 steps and also
could save them in a file by "thermo_style" command .
But in that file there are other variables also. and because of that It is
bit difficult to get the values of thermal conductivity to plot them as a
function of time. So I just wanted to save them in a file which is
containing nothing but only the values of thermal conductivity.and doing so
it could have been convenient for me to plot.

try reading the LAMMPS manual.
you would discover things like fix print,
which might be just what you are looking for.

axel.