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

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

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

revision 1038 by jongui, Fri Mar 16 05:15:37 2007 UTC revision 1056 by jongui, Thu Mar 22 06:52:08 2007 UTC
# Line 5  s = Scene(renderer = Renderer.ONLINE, nu Line 5  s = Scene(renderer = Renderer.ONLINE, nu
5          y_size = 864)          y_size = 864)
6    
7  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
8    #dc1.setFileName(file_name =
9  dc1.setFileName(file_name = "/home/jongui/data/laurent/slab/source/slab.xml")  dc1.setFileName(file_name = "/home/jongui/data/laurent/slab/source/slab.xml")
10    #        "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
11    #dc1.setActiveVector("velocity_cell")
12    
13  # NOTE: There is a difference between performing rotation then followed by  # NOTE: There is a difference between performing rotation then followed by
14  # translation and performing translation then followed by rotation.  # translation and performing translation then followed by rotation.
15    
16  # Create a velocity instance.  # Create a velocity instance.
17  vopc1 = VelocityOnPlaneCut(scene = s, data_collector = dc1,  vopc1 = VelocityOnPlaneCut(scene = s, data_collector = dc1,
18          color_mode = ColorMode.VECTOR)          arrow = Arrow.THREE_D, color_mode = ColorMode.VECTOR)
19  vopc1.setScaleFactor(scale_factor = 200000)  vopc1.setScaleFactor(scale_factor = 100000)
20  vopc1.setPlaneToXY(offset = 0.2)  #vopc1.setPlaneToXY(50000)
21  vopc1.setDimension(x = 4, y = 4, z = 4)  vopc1.setPlaneToXY()
22    vopc1.setRatio(3)
23    vopc1.randomOn()
24    vopc1.setRatio(25)
25    #vopc1.setDimension(x = 4, y = 4, z = 4)
26    
27    
28  s.render()  s.render()
29    

Legend:
Removed from v.1038  
changed lines
  Added in v.1056

  ViewVC Help
Powered by ViewVC 1.1.26