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

Contents of /trunk/pyvisi/py_src/examples/seriesofvelocityonline.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1043 - (show annotations)
Mon Mar 19 06:46:34 2007 UTC (16 years ago) by jongui
File MIME type: text/x-python
File size: 708 byte(s)
Map and Contour now able to display cell data correctly. At this stage, it appears that the probe filter cannot be applied on cell data as a segmentation fault will be thrown.
1 from esys.pyvisi import Scene, DataCollector, Velocity
2 from esys.pyvisi.constant import *
3 import time
4
5 s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1152,
6 y_size = 864)
7
8 dc1 = DataCollector(source = Source.XML)
9 dc1.setFileName(file_name =
10 "/home/jongui/data/laurent/subduction/source/function.0001.vtk")
11
12 v = Velocity(scene = s, data_collector = dc1, lut = Lut.COLOR,
13 viewport = Viewport.SOUTH_WEST, color_mode = ColorMode.SCALAR,
14 arrow = Arrow.THREE_D)
15 v.setScaleFactor(scale_factor = 800000)
16
17 for i in range(1, 200):
18 print i
19 dc1.setFileName(file_name =
20 "/home/jongui/data/laurent/subduction/source/function.%04d.vtk" % i)
21
22 s.animate()

  ViewVC Help
Powered by ViewVC 1.1.26