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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (show annotations)
Fri Mar 16 05:15:37 2007 UTC (14 years, 1 month ago) by jongui
File MIME type: text/x-python
File size: 462 byte(s)
Added more examples.
1 from esys.pyvisi import Scene, DataCollector
2 from esys.pyvisi.constant import *
3
4 s = Scene(renderer = Renderer.ONLINE, x_size = 800, y_size = 600,
5 num_viewport = 1)
6
7 # Create a data collector intance.
8 dc1 = DataCollector(source = Source.XML)
9 dc1.setFileName(file_name =
10 "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
11 dc1.setActiveScalar(scalar = "temperature_cell")
12 dc1.setActiveVector(vector = "velocity_cell")
13
14 s.render()

  ViewVC Help
Powered by ViewVC 1.1.26