Commits

Mike Graham  committed 8f5f825

Get movie working

  • Participants
  • Parent commits d5b2694

Comments (0)

Files changed (2)

File nanocontact/post.py

 
     movie = SwfData(xdim, ydim, fps=int(rate))
 
-    h_equal_zero = movie.new_shape()
-    h_equal_zero.graphics.lineStyle(3)
-    h_equal_zero.graphics.moveTo(0, ydim)
-    h_equal_zero.graphics.lineTo(xdim, ydim)
+    #h_equal_zero = movie.new_shape()
+    #h_equal_zero.graphics.lineStyle(3)
+    #h_equal_zero.graphics.moveTo(0, ydim)
+    #h_equal_zero.graphics.lineTo(xdim, ydim)
 
     #movie.setRate(rate)
     #movie.setDimension(xdim, ydim)
     for h_row, h0_row in izip(hs.T, h0s.T):
         to_be_removed = []
 
-        shape = swf.new_shape()
+        shape = movie.new_shape()
         shape.graphics.lineStyle(3)
         _draw_all_reflected(shape, xs, h_row, xdim)
         to_be_removed.append(movie.place(shape))
 
         if h0 is not None:
-            undeformed = swf.new_shape()
+            undeformed = movie.new_shape()
             undeformed.graphics.lineStyle(3)
             _draw_all_reflected(undeformed, xs, h0_row, xdim)
             to_be_removed.append(movie.place(undeformed))

File scripts/example.py

 print sim.dissipated_energy()
 
 sim.make_movie('rabbit')
-#sim.plot_F_delta("fdelta")
-#sim.plot_F_indentation("findent")
+sim.plot_F_delta("fdelta")
+sim.plot_F_indentation("findent")