Skip to content
Snippets Groups Projects
Commit f4a776d4 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11247 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent fee9812c
No related branches found
No related tags found
No related merge requests found
...@@ -20,4 +20,6 @@ neigh_modify delay 0 every 20 check no ...@@ -20,4 +20,6 @@ neigh_modify delay 0 every 20 check no
fix 1 all nve fix 1 all nve
variable fx atom fx
run 10 run 10
...@@ -45,6 +45,12 @@ x[0] += epsilon ...@@ -45,6 +45,12 @@ x[0] += epsilon
lmp.scatter_atoms("x",1,3,x) lmp.scatter_atoms("x",1,3,x)
lmp.command("run 1"); lmp.command("run 1");
f = lmp.extract_atom("f",3)
print "Force on 1 atom via extract_atom: ",f[0][0]
fx = lmp.extract_variable("fx","all",1)
print "Force on 1 atom via extract_variable:",fx[0]
# uncomment if running in parallel via Pypar # uncomment if running in parallel via Pypar
#print "Proc %d out of %d procs has" % (me,nprocs), lmp #print "Proc %d out of %d procs has" % (me,nprocs), lmp
#pypar.finalize() #pypar.finalize()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment