datadir = os.getenv("DATA_DIR")
# Import a MED file
-medFile = datadir + "/TimeStamps.med"
+medFile = os.path.join(datadir,"MedFiles","TimeStamps.med")
myResult = myVisu.ImportFile(medFile)
# Create a 3D view
datadir = os.getenv("DATA_DIR")
# Import a MED file
-medFile = datadir + "/TimeStamps.med"
+medFile = os.path.join(datadir,"MedFiles","TimeStamps.med")
myResult = myVisu.ImportFile(medFile)
# Create a 3D view
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create cut lines for the first timestamp of 'VITESSE' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create cut planes for the first timestamp of 'VITESSE' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create a cut segment for the first timestamp of 'VITESSE' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create a deformed shape for the first timestamp of 'VITESSE' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create a deformed shape and a scalar map for the first timestamp of 'VITESSE' field
datadir = os.getenv("DATA_DIR")
# Import a MED file
-medFile = datadir + "/TimeStamps.med"
+medFile = os.path.join(datadir,"MedFiles","TimeStamps.med")
myResult = myVisu.ImportFile(medFile)
# Create a 2D viewer for the evolution graph:
myVisu = visu_gui.myVisu
# Import the file
-medFile = datadir + "/pointe.med"
+medFile = os.path.join(datadir,"MedFiles","pointe.med")
myResult = myVisu.ImportFile(medFile)
# Create gauss points for the first timestamp of 'fieldcelldoublevector' field
myVisu = visu_gui.myVisu
# The path to the file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
# Import the file
myResult = myVisu.ImportFile(medFile)
myVisu = visu_gui.myVisu
# The path to the file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
# Import the file
myResult = myVisu.ImportFile(medFile)
# Export the file
-newFileName = datadir + "/fra_copy.med"
+newFileName = os.path.join(datadir,"MedFiles","fra_copy.med")
myResult.ExportMED(newFileName)
# Update the object browser
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create iso surfaces for the first timestamp of 'VITESSE' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create a 3d plot for the first timestamp of 'VITESSE' field
print "myViewManager.Create3DView()"
medFile = "fra.med"
-medFile = data_dir + '/MedFiles/' + medFile
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
aMeshName ="LE VOLUME"
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/pointe.med"
+medFile = os.path.join(datadir,"MedFiles","pointe.med")
myResult = myVisu.ImportFile(medFile)
# Create a scalar map for the first timestamp of 'fieldcelldoublevector' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create stream lines for the first timestamp of 'VITESSE' field
myVisu = visu_gui.myVisu
# Import a MED file
-medFile = datadir + "/pointe.med"
+medFile = os.path.join(datadir,"MedFiles","pointe.med")
myResult = myVisu.ImportFile(medFile)
# Create submesh presentations
myVisu = visu_gui.myVisu
# Import tables from file
-tableFile = datadir + '/table_test.xls'
+tableFile = os.path.join(datadir,"Tables","table_test.xls")
myTablesSO = myVisu.ImportTables(tableFile, False)
# Create a table presentation
myVisu = visu_gui.myVisu
# Import tables from file
-tableFile = datadir + '/table_test.xls'
+tableFile = os.path.join(datadir,"Tables","table_test.xls")
myTablesSO = myVisu.ImportTables(tableFile, False)
# Get the table
myVisu = visu_gui.myVisu
# Import tables from file
-tableFile = datadir + '/tables_test.xls'
+tableFile = os.path.join(datadir,"Tables","tables_test.xls")
myTablesSO = myVisu.ImportTables(tableFile, False)
# Print table names
myVisu = visu_gui.myVisu
# Import tables from file
-tableFile = datadir + '/tables_test.xls'
+tableFile = os.path.join(datadir,"Tables","tables_test.xls")
myTablesSO = myVisu.ImportTables(tableFile, False)
# Export the first imported table to a new file
-expTableFile = datadir + '/sinus_table.txt'
+expTableFile = os.path.join(datadir,"Tables","sinus_table.txt")
sinusTableSO = salome.myStudy.FindObject("sinus")
myVisu.ExportTableToFile(sinusTableSO, expTableFile)
myVisu = visu_gui.myVisu
# Import MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create vectors for the first timestamp of 'VITESSE' field
sleep(delay)
# Import a MED file
-medFile = datadir + "/fra.med"
+medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)
# Create a scalar map