2 # ATTENTION. This script is prepared for the future not for current moment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4 if not ('servermanager' in dir()):
9 def LoadMultipleFiles_med(FilePath, FilePrefix):
11 TETRA_dom_fl = MEDReader( FileName = [FilePath + FilePrefix + '1' + '.med',
12 FilePath + FilePrefix + '2' + '.med',
13 FilePath + FilePrefix + '3' + '.med',
14 FilePath + FilePrefix + '4' + '.med',
15 FilePath + FilePrefix + '5' + '.med',
16 FilePath + FilePrefix + '6' + '.med'])
17 TETRA_dom_fl.CellArrays = ['Pression', 'Temp.C', 'VitesseX']
18 TETRA_dom_fl.GlobalFamilyStatus = ['1 1 1', '1 2 1', '1 3 1', '1 4 1', '1 5 1']
19 TETRA_dom_fl.GlobalEntityStatus = ['0 203', '0 304']
22 a1_Temp_C_PVLookupTable = CreateLookupTable( RGBPoints=[-1.3, 0.23, 0.3, 0.75, 200., 0.70, 0.016, 0.15],
23 VectorMode='Magnitude',
24 ColorSpace='Diverging',
25 ScalarRangeInitialized=1.0 )
28 dr.EdgeColor = [0.0, 0.0, 0.50]
29 dr.SelectionCellLabelColor = [0.0, 1.0, 0.0]
30 dr.SelectionPointLabelJustification = 'Center'
31 dr.SelectionCellLabelJustification = 'Center'
32 dr.ScalarOpacityFunction = []
33 dr.ColorArrayName = 'Temp.C'
34 dr.SelectionLineWidth = 2.0
35 dr.ScalarOpacityUnitDistance = 2.6738860338205099
36 dr.SelectionCellLabelFontSize = 24
37 dr.SelectionColor = [1.0, 0.0, 1.0]
38 dr.SelectionRepresentation = 'Wireframe'
39 dr.LookupTable = a1_Temp_C_PVLookupTable
41 rv.CameraPosition = [50.0, -29.75, 267.55447959748415]
42 rv.CameraFocalPoint = [50.0, -29.75, 0.0]
43 rv.CameraClippingRange = [248.95893480150932, 291.60779679144639]
44 rv.CenterOfRotation = [50.0, -29.75, 0.0]
45 rv.CameraParallelScale = 69.24819492232271
49 testdir = os.getenv("TESTDIR")
50 pvdata = os.getenv("PVDATA")
52 if __name__ == "__main__":
53 LoadMultipleFiles_med(FilePath=testdir+"/TETRA_domaine_fluide/", FilePrefix="TETRA_domaine_fluide")