Dear all,
I want to use a loop for mass, like this:
mass 1 10
mass 2 12
mass 3 14
mass 4 16
mass 5 18
mass 6 20
mass 7 22
mass 8 24
mass 9 26
mass 10 28
for this work in C++ we do a work like this?
m[0]=12
for(j=1;j<=N;j++){
m[j]=m[j-1]+2 }
but I don't know what to in LAMMPS, and how can I use a loop here??
pleace help me?
Dear all,
I want to use a loop for mass, like this:
mass 1 10
mass 2 12
mass 3 14
mass 4 16
mass 5 18
mass 6 20
mass 7 22
mass 8 24
mass 9 26
mass 10 28
for this work in C++ we do a work like this?
m[0]=12
for(j=1;j<=N;j++){
m[j]=m[j-1]+2 }
but I don't know what to in LAMMPS, and how can I use a loop here??
use variables and the next and jump commands:
the documention has several examples.
axel.