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() |