/[escript]/trunk/pyvisi/examples/escript_threeDVectorData3D.py
ViewVC logotype

Diff of /trunk/pyvisi/examples/escript_threeDVectorData3D.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 417 by cochrane, Fri Jan 6 01:54:48 2006 UTC revision 637 by gross, Thu Mar 23 10:55:31 2006 UTC
# Line 2  Line 2 
2    
3    
4  # $Id: escript_threeDVectorData3D.py,v 1.3 2006/01/05 00:13:50 paultcochrane Exp $  # $Id: escript_threeDVectorData3D.py,v 1.3 2006/01/05 00:13:50 paultcochrane Exp $
5    """
6    @var __author__: name of author
7    @var __license__: licence agreement
8    @var __copyright__: copyrights
9    @var __url__: url entry point on documentation
10    @var __version__: version
11    @var __date__: date of the version
12    """
13    
14    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
15                        http://www.access.edu.au
16                    Primary Business: Queensland, Australia"""
17    __license__="""Licensed under the Open Software License version 3.0
18                 http://www.opensource.org/licenses/osl-3.0.php"""
19    __author__="Paul Cochrane"
20    __url__="http://www.iservo.edu.au/esys"
21    __version__="$Revision$"
22    __date__="$Date$"
23    
24  from esys.escript import *  from esys.escript import *
25  from esys import bruce  from esys import bruce
26    
27  import numarray  import numarray
28    
29  from pyvisi import *  from esys.pyvisi import *
30  from pyvisi.renderers.vtk import *  from esys.pyvisi.renderers.vtk import *
31    
32  brickDomain = bruce.Brick(9,9,9,10,10,10)  brickDomain = bruce.Brick(9,9,9,10,10,10)
33  brickFunctionSpace=escript.ContinuousFunction(brickDomain)  brickFunctionSpace=escript.ContinuousFunction(brickDomain)
# Line 21  threeDVectorData3D = Data(vectorData3D, Line 39  threeDVectorData3D = Data(vectorData3D,
39  scene = Scene()  scene = Scene()
40  plot = ArrowPlot3D(scene)  plot = ArrowPlot3D(scene)
41  plot.setData(threeDVectorData3D)  plot.setData(threeDVectorData3D)
42  scene.render(pause=True)  if online: scene.render(pause=True)
43    
44  scene.save(fname="escript_threeDVectorData3D_arrowPlot3D.png", format="png")  scene.save(fname="escript_threeDVectorData3D_arrowPlot3D.png", format="png")
45    

Legend:
Removed from v.417  
changed lines
  Added in v.637

  ViewVC Help
Powered by ViewVC 1.1.26