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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (show annotations)
Fri Mar 16 05:15:37 2007 UTC (12 years, 4 months ago) by jongui
File MIME type: text/x-python
File size: 1166 byte(s)
Added more examples.
1 from esys.pyvisi import Scene, DataCollector, MapOnScalarClip, Camera, Map, Contour
2 from esys.pyvisi.constant import *
3 import time
4
5 s = Scene(renderer = Renderer.ONLINE, num_viewport = 4, x_size = 1152,
6 y_size = 864)
7
8 dc1 = DataCollector(source = Source.XML)
9 dc1.setFileName(file_name =
10 "/home/jongui/data/laurent/talus/source/phi_talus_lava.0200.vtu")
11 dc1.setActiveScalar("lava")
12
13 dc2 = DataCollector(source = Source.XML)
14 dc2.setFileName(file_name =
15 "/home/jongui/data/laurent/talus/source/phi_talus_lava.0200.vtu")
16
17 mosc1_1 = Contour(scene = s, data_collector = dc1, lut = Lut.COLOR,
18 viewport = Viewport.SOUTH_WEST)
19 mosc1_1.generateContours(0)
20
21 mosc1_2 = Contour(scene = s, data_collector = dc2, lut = Lut.COLOR,
22 viewport = Viewport.SOUTH_WEST)
23 mosc1_2.generateContours(0)
24
25
26 # Generate multiple images from multiple files.
27 for i in range(90, 600):
28 dc1.setFileName(file_name =
29 "/home/jongui/data/laurent/talus/source/phi_talus_lava.%04d.vtu" % i)
30 dc1.setActiveScalar("lava")
31 dc2.setFileName(file_name =
32 "/home/jongui/data/laurent/talus/source/phi_talus_lava.%04d.vtu" % i)
33
34 s.animate()

  ViewVC Help
Powered by ViewVC 1.1.26