/[escript]/trunk/pyvisi/py_src/examples/velocity.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/examples/velocity.py

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

revision 987 by jongui, Thu Feb 15 04:36:38 2007 UTC revision 988 by jongui, Tue Feb 20 07:21:12 2007 UTC
# Line 7  s = Scene(renderer = Renderer.ONLINE, nu Line 7  s = Scene(renderer = Renderer.ONLINE, nu
7  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
8  dc1.setFileName(file_name =  dc1.setFileName(file_name =
9          "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")          "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
10            #"/home/jongui/data/matt/heat_velocity/source/temp-000649.vtu")
11    
12  # Create a velocity instance in the first viewport.  # Create a velocity instance in the first viewport.
13  v1 = Velocity(scene = s, data_collector = dc1, vector = None, scalar = None,  v1 = Velocity(scene = s, data_collector = dc1, scalar = None, vector= "velocity_cell",
14          viewport = Viewport.SOUTH_WEST, arrow = Arrow.THREE_D,          viewport = Viewport.SOUTH_WEST, arrow = Arrow.THREE_D,
15          color_mode = ColorMode.VECTOR, lut = Lut.COLOR, outline = True)          color_mode = ColorMode.VECTOR, lut = Lut.COLOR, outline = True)
16  v1.setRepresentationToWireframe()  v1.setRepresentationToWireframe()

Legend:
Removed from v.987  
changed lines
  Added in v.988

  ViewVC Help
Powered by ViewVC 1.1.26