/[escript]/trunk/doc/examples/usersguide/fluid.py
ViewVC logotype

Diff of /trunk/doc/examples/usersguide/fluid.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3911 by jfenwick, Thu Jun 14 01:01:03 2012 UTC revision 3914 by jfenwick, Wed Jun 20 04:51:47 2012 UTC
# Line 76  while t <= t_end: Line 76  while t <= t_end:
76    #displace the mesh    #displace the mesh
77    displacement = velocity * dt    displacement = velocity * dt
78    coordinates = mesh.getX()    coordinates = mesh.getX()
79    mesh.setX(coordinates + displacement)      newx=interpolate(coordinates + displacement, ContinuousFunction(mesh))
80      mesh.setX(newx)  
81        
82    time += dt    time += dt
83        

Legend:
Removed from v.3911  
changed lines
  Added in v.3914

  ViewVC Help
Powered by ViewVC 1.1.26