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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 988 - (show annotations)
Tue Feb 20 07:21:12 2007 UTC (12 years, 6 months ago) by jongui
File MIME type: text/x-python
File size: 682 byte(s)
Both point and cell data should now work properly with Pyvisi. Some testing have been done but a more extensive test will be done at a later stage.
1 from esys.pyvisi import Scene, DataCollector, VelocityOnPlaneCut
2 from esys.pyvisi.constant import *
3
4 s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1152,
5 y_size = 864)
6
7 dc1 = DataCollector(source = Source.XML)
8 dc1.setFileName(file_name = "/home/jongui/data/laurent/slab/source/slab.xml")
9
10 # NOTE: There is a difference between performing rotation then followed by
11 # translation and performing translation then followed by rotation.
12
13 # Create a velocity instance.
14 vopc1 = VelocityOnPlaneCut(scene = s, data_collector = dc1,
15 color_mode = ColorMode.VECTOR)
16 vopc1.setScaleFactor(200000)
17 vopc1.setPlaneToXY(0.2)
18 vopc1.setDimension(4,4,4)
19
20 s.render()
21

  ViewVC Help
Powered by ViewVC 1.1.26