First thanks a lot for the information on “atoms”, axel.
When I put atoms in thermo_style, it printed the number of atoms correctly.
However, when I define variable using “atoms”, it acts as if it is zero.
For instasnce, if I define N using “variable N equal atoms”, command of print “Natoms: $N” showed “Natom:0”.
May it be somthing like bug?
How can I solve this?
First thanks a lot for the information on "atoms", axel.
When I put atoms in thermo_style, it printed the number of atoms correctly.
However, when I define variable using "atoms", it acts as if it is zero.
For instasnce, if I define N using "variable N equal atoms", command of
print "Natoms: $N" showed "Natom:0".
it works for me.
just appended those two commands to in.melt
and it prints "Natoms: 4000"
May it be somthing like bug?
How can I solve this?
you first have to demonstrate how to reproduce it.
a potential bug that cannot be reproduced, cannot be fixed.
Thanks a lot for your answer on my question.
After recieving your reply, I tested it again using the most current lammps (windows,no-mpi, 1 July) execution file but it showed the same result to me.
I also tested it using the lammps file of October 14, 2012 in linux system but it still showed the same problem.
Would you let me know what version of lammps file you used in the test?
Thanks a lot for your answer on my question.
After recieving your reply, I tested it again using the most current
lammps (windows,no-mpi, 1 July) execution file but it showed the
same result to me.
I also tested it using the lammps file of October 14, 2012 in linux system
but it still showed the same problem.
Would you let me know what version of lammps file you used in the test?
here is your mistake. thermodynamic
data is only updated during thermo output.
at this point, you didn't have yet had any
thermo output, so you cannot reference
the variable or rather the "atoms" property.
it is not yet initialized.
if you move the line to the end of the script,
i.e. *after* the run command it works.