Back to index

salome-paravis  6.5.0
Functions | Variables
demo_15_med Namespace Reference

Functions

def LoadMultipleFiles_med

Variables

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

Function Documentation

def demo_15_med.LoadMultipleFiles_med (   FilePath,
  FilePrefix 
)

Definition at line 28 of file demo_15_med.py.

00028 
00029 def LoadMultipleFiles_med(FilePath, FilePrefix):
00030 
00031   TETRA_dom_fl = MEDReader( FileName = [FilePath + FilePrefix + '1' + '.med',
00032                                                                                FilePath + FilePrefix + '2' + '.med', 
00033                                                                                FilePath + FilePrefix + '3' + '.med',
00034                                                                                FilePath + FilePrefix + '4' + '.med',
00035                                                                                FilePath + FilePrefix + '5' + '.med',
00036                                                                                FilePath + FilePrefix + '6' + '.med'])
00037   TETRA_dom_fl.CellArrays = ['Pression', 'Temp.C', 'VitesseX']
00038   TETRA_dom_fl.GlobalFamilyStatus = ['1 1 1', '1 2 1', '1 3 1', '1 4 1', '1 5 1']
00039   TETRA_dom_fl.GlobalEntityStatus = ['0 203', '0 304']
00040 
00041   rv = GetRenderView()
00042   a1_Temp_C_PVLookupTable = CreateLookupTable( RGBPoints=[-1.3, 0.23, 0.3, 0.75, 200., 0.70, 0.016, 0.15],
00043                                                                                             VectorMode='Magnitude',
00044                                                                                             ColorSpace='Diverging',
00045                                                                                             ScalarRangeInitialized=1.0 )
00046 
00047   dr = Show()
00048   dr.EdgeColor = [0.0, 0.0, 0.50]
00049   dr.SelectionCellLabelColor = [0.0, 1.0, 0.0]
00050   dr.SelectionPointLabelJustification = 'Center'
00051   dr.SelectionCellLabelJustification = 'Center'
00052   dr.ScalarOpacityFunction = []
00053   dr.ColorArrayName = 'Temp.C'
00054   dr.SelectionLineWidth = 2.0
00055   dr.ScalarOpacityUnitDistance = 2.6738860338205099
00056   dr.SelectionCellLabelFontSize = 24
00057   dr.SelectionColor = [1.0, 0.0, 1.0]
00058   dr.SelectionRepresentation = 'Wireframe'
00059   dr.LookupTable = a1_Temp_C_PVLookupTable
00060 
00061   rv.CameraPosition = [50.0, -29.75, 267.55447959748415]
00062   rv.CameraFocalPoint = [50.0, -29.75, 0.0]
00063   rv.CameraClippingRange = [248.95893480150932, 291.60779679144639]
00064   rv.CenterOfRotation = [50.0, -29.75, 0.0]
00065   rv.CameraParallelScale = 69.24819492232271
00066 
00067   Render()

Here is the call graph for this function:


Variable Documentation

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

Definition at line 69 of file demo_15_med.py.

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

Definition at line 68 of file demo_15_med.py.