''
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13811 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -64,7 +64,7 @@ def loop(lmpptr,N,cut0):
|
||||
<PRE> for i in range(N):
|
||||
cut = cut0 + i*0.1
|
||||
lmp.set_variable("cut",cut) # set a variable in LAMMPS
|
||||
lmp.command("pair_style lj/cut $<I>cut</I>") # LAMMPS commands
|
||||
lmp.command("pair_style lj/cut ${cut}") # LAMMPS commands
|
||||
lmp.command("pair_coeff * * 1.0 1.0")
|
||||
lmp.command("run 100")
|
||||
"""
|
||||
@ -332,7 +332,7 @@ which loads and runs the following function from examples/python/funcs.py:
|
||||
cut = cut0 + i*0.1
|
||||
</PRE>
|
||||
<PRE> lmp.set_variable("cut",cut) # set a variable in LAMMPS
|
||||
lmp.command("pair_style lj/cut $<I>cut</I>") # LAMMPS command
|
||||
lmp.command("pair_style lj/cut ${cut}") # LAMMPS command
|
||||
#lmp.command("pair_style lj/cut %d" % cut) # LAMMPS command option
|
||||
</PRE>
|
||||
<PRE> lmp.command("pair_coeff * * 1.0 1.0") # ditto
|
||||
|
||||
Reference in New Issue
Block a user