Back to index

salome-paravis  6.5.0
Variables
B6 Namespace Reference

Variables

 myParavis = paravis.myParavis
tuple picturedir = get_picture_dir(sys.argv[1], "Animation/B6")
string theFileName = "TimeStamps.med"
tuple aProxy = GetActiveSource()
tuple aView = GetRenderView()
tuple prs = CutPlanesOnField(aProxy,EntityType.CELL,'pression' , 2)
string my_format = "tiff"
tuple scene = AnimateReader(aProxy,aView,picturedir+"B6_dom."+my_format)
tuple nb_frames = len(scene.TimeKeeper.TimestepValues)
tuple pics = os.listdir(picturedir)
string file_name = "toto.med"
string field_name = "erreur"
int timestamp_nb = 1
tuple med_reader = pvsimple.GetActiveSource()
tuple view = pvsimple.GetRenderView()
tuple time = get_time(med_reader, timestamp_nb)
string pic_name = "_"
string script_ti
string script_tr
tuple ps_ti = pvsimple.ProgrammableSource()
tuple ps_tr = pvsimple.ProgrammableSource()
tuple cur_view = pvsimple.GetRenderView()
tuple xy_view1 = pvsimple.CreateXYPlotView()
tuple tr_rep = pvsimple.Show(ps_tr)
tuple xy_view2 = pvsimple.CreateXYPlotView()
tuple ti_rep = pvsimple.Show(ps_ti, xy_view2)

Variable Documentation

tuple B6.aProxy = GetActiveSource()

Definition at line 42 of file B6.py.

tuple B6.aView = GetRenderView()

Definition at line 48 of file B6.py.

Definition at line 97 of file B6.py.

string B6.field_name = "erreur"

Definition at line 39 of file B6.py.

string B6.file_name = "toto.med"

Definition at line 38 of file B6.py.

Definition at line 43 of file B6.py.

string B6.my_format = "tiff"

Definition at line 60 of file B6.py.

Definition at line 31 of file B6.py.

tuple B6.nb_frames = len(scene.TimeKeeper.TimestepValues)

Definition at line 73 of file B6.py.

string B6.pic_name = "_"

Definition at line 56 of file B6.py.

tuple B6.pics = os.listdir(picturedir)

Definition at line 75 of file B6.py.

tuple B6.picturedir = get_picture_dir(sys.argv[1], "Animation/B6")

Definition at line 34 of file B6.py.

tuple B6.prs = CutPlanesOnField(aProxy,EntityType.CELL,'pression' , 2)

Definition at line 56 of file B6.py.

tuple B6.ps_ti = pvsimple.ProgrammableSource()

Definition at line 83 of file B6.py.

tuple B6.ps_tr = pvsimple.ProgrammableSource()

Definition at line 90 of file B6.py.

tuple B6.scene = AnimateReader(aProxy,aView,picturedir+"B6_dom."+my_format)

Definition at line 72 of file B6.py.

string B6.script_ti
Initial value:
00001 """
00002 def add_column(table, name, lst):
00003     col = vtk.vtkIntArray()
00004     col.SetName(name)
00005     for item in lst:
00006         col.InsertNextValue(item)
00007     table.AddColumn(col)
00008 
00009 # Get table output
00010 table = self.GetTableOutput()
00011 
00012 # Add columns
00013 lst = [1,2,3,4,5,6,7,8,9,10]
00014 add_column(table, 'FR', lst)
00015 
00016 lst = [110,120,130,140,150,160,170,180,190,200]
00017 add_column(table, 'SR', lst)
00018 
00019 lst = [-1,272,0,0,-642,10000,13,578,-578,99]
00020 add_column(table, 'TR', lst)
00021 """

Definition at line 29 of file B6.py.

string B6.script_tr
Initial value:
00001 """
00002 import math
00003 
00004 
00005 # Get table output
00006 table = self.GetTableOutput()
00007 
00008 # Create first column
00009 col1 = vtk.vtkDoubleArray()
00010 col1.SetName('Row 0')
00011 for i in xrange(0, 21):
00012     col1.InsertNextValue(i * 10 + 1)
00013 table.AddColumn(col1)
00014 
00015 # Create the rest columns
00016 for i in range(1, 11):
00017     col = vtk.vtkDoubleArray()
00018     col.SetName('Row ' + str(i))
00019 
00020     # Fill the next column
00021     col.InsertNextValue(1)
00022     for j in range(1, 21):
00023         if j % 2 == 1:
00024             col.InsertNextValue(math.log10(j * 30 * math.pi / 180) * 20 + i * 15 + j * 5)
00025         else:
00026             col.InsertNextValue(math.sin(j * 30 * math.pi / 180) * 20 + i * 15 + j * 5)
00027 
00028     table.AddColumn(col)
00029 """

Definition at line 52 of file B6.py.

string B6.theFileName = "TimeStamps.med"

Definition at line 36 of file B6.py.

Definition at line 132 of file B6.py.

tuple B6.time = get_time(med_reader, timestamp_nb)

Definition at line 54 of file B6.py.

int B6.timestamp_nb = 1

Definition at line 40 of file B6.py.

Definition at line 106 of file B6.py.

Definition at line 53 of file B6.py.

Definition at line 101 of file B6.py.

Definition at line 127 of file B6.py.