LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Variable in loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Variable in loop

From: Giacomo Fiorin <giacomo.fiorin@...24...>
Date: Thu, 5 Oct 2017 13:19:54 -0400

The syntax is not exactly the same, but you have a "loop" option for the variable command:

In addition, you can also run individual LAMMPS commands from Python, within which you can use yet more kinds of loops.


On Thu, Oct 5, 2017 at 1:14 PM, Asadollahzadeh <niliasadollahzadeh@...24...> wrote:
Hi every one!
Can we have variables in loop such as matlab ?
I mean is,for example i=1:n and j=1:m.Can LAMMPS command cover every 15 positions by loop?

So thanks;

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
lammps-users mailing list

Giacomo Fiorin
Associate Professor of Research, Temple University, Philadelphia, PA
Contractor, National Institutes of Health, Bethesda, MD