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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1051 - (hide annotations)
Wed Mar 21 21:56:54 2007 UTC (16 years ago) by jongui
File MIME type: text/x-python
File size: 709 byte(s)
Velocity module does not work properly with all types of files yet.
1 jongui 1038 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 jongui 1051 vopc1.setScaleFactor(scale_factor = 120000)
17     vopc1.setPlaneToXY()
18     #vopc1.setDimension(x = 4, y = 4, z = 4)
19 jongui 1038
20     s.render()
21    

  ViewVC Help
Powered by ViewVC 1.1.26