Back to index

salome-paravis  6.5.0
Functions | Variables
demo12 Namespace Reference

Functions

def demo12

Variables

tuple testdir = os.getenv("TESTDIR")
tuple pvdata = os.getenv("PVDATA")

Function Documentation

def demo12.demo12 (   fname,
  impth 
)
This method demonstrates the Stream Tracer.

Definition at line 26 of file demo12.py.

00026 
00027 def demo12(fname, impth):
00028     """This method demonstrates the Stream Tracer."""
00029 
00030     reader = ExodusIIReader(FileName=fname)
00031     v=GetActiveView()
00032     streamTracer = StreamTracer(reader)
00033     streamTracer.Vectors  = 'V'
00034     streamTracer.SeedType.NumberOfPoints = 100
00035     streamTracer.SeedType.Radius = 1.15
00036     streamTracer.MaximumStreamlineLength = 25.
00037 
00038     Show(streamTracer)
00039     camera = GetActiveCamera()
00040     camera.Elevation(-45)
00041     camera.Dolly(0.4)
00042     dp1 = GetDisplayProperties(streamTracer)
00043     streamTracer.PointData[:]
00044     ##[Array: Temp, Array: V, Array: Pres, Array: AsH3, Array: GaMe3, Array: CH4, Array: H2, Array: IntegrationTime, Array: Vorticity, Array: Rotation,     ##Array: AngularVelocity, Array: Normals]
00045     
00046     pres = streamTracer.PointData[2]
00047     dp1.LookupTable = MakeBlueToRedLT(pres.GetRange()[0],pres.GetRange()[1])
00048     dp1.ColorAttributeType = 'POINT_DATA'
00049     dp1.ColorArrayName = 'Pres'
00050     Render()
00051     WriteImage(filename = (impth + "streamTracer_1.png"), view=v, Magnification=2)

Here is the call graph for this function:


Variable Documentation

tuple demo12.pvdata = os.getenv("PVDATA")

Definition at line 53 of file demo12.py.

tuple demo12.testdir = os.getenv("TESTDIR")

Definition at line 52 of file demo12.py.