display_only(prs, view)
# Show scalar bar
+ global _current_bar
if show_bar and _current_bar:
_current_bar.Visibility = 1
os.makedirs(pic_dir)
# Save picture
+ print "Write image:", file_name
pvs.WriteImage(file_name, view=view, Magnification=1)
def set_visible_lines(xy_prs, lines):
"""Set visible only the given lines for XYChartRepresentation."""
- sv = xy_prs.GetProperty("SeriesVisibilityInfo").GetData()
+ sv = xy_prs.GetProperty("SeriesVisibility").GetData()
visible = '0'
for i in xrange(0, len(sv)):
fields_info = proxy.GetProperty("FieldsTreeInfo")[::2]
arr_name_with_dis=[elt.split("/")[-1] for elt in fields_info]
- proxy.AllArrays = []
- proxy.UpdatePipeline()
-
fields = []
for name in on_gauss:
fields.append(name+_med_field_sep+'GAUSS')
if arr_name_with_dis.count(name) > 0:
index = arr_name_with_dis.index(name)
field_list.append(fields_info[index])
-
- proxy.AllArrays = field_list
- proxy.UpdatePipeline()
+
+ if field_list:
+ proxy.AllArrays = field_list
+ proxy.UpdatePipeline()
return len(field_list) != 0
# TODO: VTN. Looks like this code is out of date.
-
+
#all_cell_types = proxy.CellTypes.Available
all_cell_types = proxy.Entity.Available
all_arrays = list(proxy.CellArrays.GetData())
# Reassign the current bar
_current_bar = scalar_bar
- return scalar_bar
+ return _current_bar
def get_bar():
"""Get current scalar bar."""
- global _current_bar
-
return _current_bar
def get_time(proxy, timestamp_nb):
"""Get time value by timestamp number."""
- proxy.UpdatePipeline()
+ #proxy.UpdatePipeline()
# Check timestamp number
timestamps = []
-
+
if (hasattr(proxy, 'TimestepValues')):
timestamps = proxy.TimestepValues.GetData()
elif (hasattr(proxy.Input, 'TimestepValues')):
if (timestamp_nb > 0 and (timestamp_nb - 1) not in xrange(length) ) or (timestamp_nb < 0 and -timestamp_nb > length):
raise ValueError("Timestamp number is out of range: " + str(timestamp_nb))
+ if not timestamps:
+ return 0.0
+
# Return time value
if timestamp_nb > 0:
return timestamps[timestamp_nb - 1]
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- cut_planes.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
+ cut_planes.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
cut_planes.LookupTable = lookup_table
# Add scalar bar
# Set properties
if (is_colored):
- vectors.ColorArrayName = 'GlyphVector'
+ vectors.ColorArrayName = (EntityType.get_pvtype(entity), 'GlyphVector')
else:
- vectors.ColorArrayName = ''
+ vectors.ColorArrayName = (None, '')
vectors.LookupTable = lookup_table
vectors.LineWidth = 1.0
# Do merge
source = pvs.MergeBlocks(proxy)
+ pvs.UpdatePipeline()
# Cell data to point data
if is_data_on_cells(proxy, field_name):
if is_colored:
defshape.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
- defshape.ColorArrayName = ''
+ defshape.ColorArrayName = (None, '')
defshape.LookupTable = lookup_table
# Set wireframe represenatation mode
# Do merge
source = pvs.MergeBlocks(proxy)
+ pvs.UpdatePipeline()
# Cell data to point data
if is_data_on_cells(proxy, field_name):
# Do merge
source = pvs.MergeBlocks(proxy)
+ pvs.UpdatePipeline()
# Transform cell data into point data if necessary
if is_data_on_cells(proxy, field_name):
if (is_colored):
isosurfaces.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
- isosurfaces.ColorArrayName = ''
+ isosurfaces.ColorArrayName = (None, '')
if color:
isosurfaces.DiffuseColor = color
isosurfaces.LookupTable = lookup_table
# Set timestamp
pvs.GetRenderView().ViewTime = time_value
- proxy.UpdatePipeline(time=time_value)
+ pvs.UpdatePipeline(time_value, proxy)
source = proxy
vector_array = field_name
# If the given vector array has only 2 components, add the third one
if nb_components == 2:
- calc = get_add_component_calc(source,
- EntityType.NODE, field_name)
+ calc = get_add_component_calc(source, EntityType.NODE, field_name)
vector_array = calc.ResultArrayName
source = calc
if is_colored:
gausspnt.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
- gausspnt.ColorArrayName = ''
+ gausspnt.ColorArrayName = (None, '')
if color:
gausspnt.DiffuseColor = color
# Create Gauss Points object
source = pvs.GaussPoints(proxy)
source.UpdatePipeline()
-
+
# Get Gauss Points representation object
gausspnt = pvs.GetRepresentation(source)
if is_colored:
gausspnt.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
- gausspnt.ColorArrayName = ''
+ gausspnt.ColorArrayName = (None, '')
if color:
gausspnt.DiffuseColor = color
# Do merge
source = pvs.MergeBlocks(proxy)
+ pvs.UpdatePipeline()
# Cell data to point data
if is_data_on_cells(proxy, field_name):
cell_to_point = pvs.CellDatatoPointData(source)
cell_to_point.PassCellData = 1
- cell_to_point.UpdatePipeline()
+ pvs.UpdatePipeline()
source = cell_to_point
vector_array = field_name
if nb_components == 2:
calc = get_add_component_calc(source, EntityType.NODE, field_name)
vector_array = calc.ResultArrayName
- calc.UpdatePipeline()
+ pvs.UpdatePipeline()
source = calc
# Stream Tracer
stream = pvs.StreamTracer(source)
stream.SeedType = "Point Source"
stream.Vectors = ['POINTS', vector_array]
- stream.SeedType = "Point Source"
stream.IntegrationDirection = direction
stream.IntegratorType = 'Runge-Kutta 2'
stream.UpdatePipeline()
if is_colored:
streamlines.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
- streamlines.ColorArrayName = ''
+ streamlines.ColorArrayName = (None, '')
if color:
streamlines.DiffuseColor = color
if not mesh_full_name:
raise RuntimeError, "The given mesh name was not found"
# Select only the given mesh
- proxy.AllArrays = []
- proxy.UpdatePipeline()
proxy.AllArrays = [mesh_full_name]
proxy.UpdatePipeline()
prs = None
if (proxy.GetDataInformation().GetNumberOfPoints() or
proxy.GetDataInformation().GetNumberOfCells()):
- prs = pvs.GetRepresentation(proxy)
- prs.ColorArrayName = ''
+ my_view = pvs.GetRenderView()
+ prs = pvs.GetRepresentation(proxy, view=my_view)
+ prs.ColorArrayName = (None, '')
return prs
return prs
-def CreatePrsForFile(paravis_instance, file_name, prs_types,
+def CreatePrsForFile(file_name, prs_types,
picture_dir, picture_ext):
"""Build presentations of the given types for the file.
Build presentations for all fields on all timestamps.
Arguments:
- paravis_instance: ParaVis module instance object
file_name: full path to the MED file
prs_types: the list of presentation types to build
picture_dir: the directory path for saving snapshots
if proxy is None:
print "FAILED"
else:
- proxy.UpdatePipeline()
+ #proxy.UpdatePipeline()
print "OK"
except:
print "FAILED"
else:
# Get view
view = pvs.GetRenderView()
+ time_value = get_time(proxy, 0)
+ view.ViewTime = time_value
+ pvs.UpdatePipeline(time=time_value, proxy=proxy)
# Create required presentations for the proxy
CreatePrsForProxy(proxy, view, prs_types,
print "OK"
# Construct image file name
pic_name = picture_dir + get_field_short_name(mesh_name) + "." + picture_ext
-
+
# Show and dump the presentation into a graphics file
process_prs_for_test(prs, view, pic_name, False)
print "OK"
# Construct image file name
pic_name = picture_dir + get_group_short_name(group) + "." + picture_ext
-
+
# Show and dump the presentation into a graphics file
process_prs_for_test(prs, view, pic_name, False)
if field_name == get_field_mesh_name(field):
continue
field_entity = get_field_entity(field)
- # Clear fields selection state
- proxy.AllArrays = []
- proxy.UpdatePipeline()
# Select only the current field:
# necessary for getting the right timestamps
- proxy.AllArrays = field
+ proxy.AllArrays = [field]
proxy.UpdatePipeline()
# Get timestamps
def ShowParaviewView():
"""
- If the import is made from SALOME embedded console, the ParaView application needs to
- be instanciated to avoid a future crash.
+ If the import is made from SALOME embedded console, the ParaView application needs to
+ be instanciated to avoid a future crash.
"""
if __getFromGUI():
__my_log("Initializing ParaView main elements, please be patient ...")
if len(viewIds):
sgPyQt.setViewVisible(viewIds[0], True)
sgPyQt.activateView(viewIds[0])
- else:
+ else:
sgPyQt.createView("ParaView")
# Now let the GUI main loop process the initialization event posted above
- sgPyQt.processEvents()
+ sgPyQt.processEvents()
__my_log("ParaView initialized.")
## The below has to called BEFORE importing paraview!!! This is crazy, but it has to be.
-ShowParaviewView()
+ShowParaviewView()
import paraview
import pvserver
__my_log("*******************************************")
raise e
pass
-
+
if __getFromGUI() < 1:
# Only if not in GUI (otherwise the createView will do the connection)
SalomeConnectToPVServer()
if not name.startswith("__"):
globals()[name] = getattr(simple, name)
del simple
-
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
print " --------------------------------- "
OpenDataFile(file_name)
+#reader = OpenDataFile(file_name)
+#reader = MEDReader(FileName=file_name)
+#keys = reader.GetProperty("FieldsTreeInfo")[::2]
+#reader.AllArrays = [keys[0]]
+#SetActiveSource(reader)
+
+#reader.UpdatePipelineInformation()
+#from paraview import servermanager
+#res = servermanager.Fetch(reader,0)
+#print res
+
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
RepresentationType.SURFACE, RepresentationType.VOLUME]
+
shrinks = [0, 1]
shadings = ["Flat", "Gouraud"]
opacities = [1.0, 0.5, 0.0]
print "\nCreating stream_lines......."
stream_lines = StreamLinesOnField(proxy, EntityType.CELL,
-field_name, 1, is_colored=True)
+ field_name, 1, is_colored=True)
stream_tracer = stream_lines.Input
print "stream_tracer:", stream_tracer
-stream_tracer.Input = None
+#stream_tracer.Input = None
stream_tracer.InitialStepLength = 0.00940275
stream_tracer.MaximumStreamlineLength = 140.373
stream_tracer.MaximumStepLength = 0.5319
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
# Get view
my_view = GetRenderView()
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-myParavis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
# Get view
my_view = GetRenderView()
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
# Get view
my_view = GetRenderView()
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
-
def check_value(prs, property_name, value, do_raise=1, compare_toler=-1.0):
# compare just set value and the one got from presentation
really_set_value = prs.GetPropertyValue(property_name)
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-myParavis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
from presentations import *
from pvsimple import *
import sys
-import pvserver as paravis
import time
# Directory for saving snapshots
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-myParavis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
import math
h = view1.ViewSize[1]
view1.ViewSize = [h//2, w]
view2.ViewSize = [h//2, w]
-view1.ViewPosition = [0, h//2]
-view1.ViewPosition = [0, 0]
+#view1.ViewPosition = [0, h//2]
+#view1.ViewPosition = [0, 0]
Render(view1)
Render(view2)
from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("3D_viewer/B2")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-#import file
-myParavis = paravis.myParavis
-
# Get view
my_view = GetRenderView()
reset_view(my_view)
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/A0")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"A0_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 40 # correspond to set the speed of animation in VISU
+scene.Duration = 40 # correspond to set the speed of animation in VISU
scene.GoToFirst()
scene.Loop = 0
print "Animation.................................",
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-my_paravis = paravis.myParavis
# 1. TimeStamps.med import
print 'Importing "TimeStamps.med"................',
print "Creating Cut Lines........................",
med_field = "vitesse"
cutlines = CutLinesOnField(med_reader, EntityType.NODE, med_field, 1,
- nb_lines = 20,
- orientation1=Orientation.XY, orientation2=Orientation.ZX)
+ nb_lines = 20,
+ orientation1=Orientation.XY, orientation2=Orientation.ZX)
if cutlines is None:
print "FAILED"
else:
scene.Duration = 0
scene.Duration = 30
print "Duration ... ", scene.Duration
-
+
print "Loop ... ", scene.Loop
scene.Loop = 1
print "Loop ... ", scene.Loop
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/A2")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"A2_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/A4")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"A4_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/A7")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"A7_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/A8")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"A8_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/B2")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"B2_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/B5")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"B5_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/B6")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"B6_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/C0")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"C0_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/C1")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"C1_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/C3")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"C3_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/C8")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"C8_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/D1")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"D1_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/D2")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"D2_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/D6")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"D6_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/D9")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"D9_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/E0")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"E0_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-# import file
-myParavis = paravis.myParavis
# for saving snapshots
picturedir = get_picture_dir("Animation/E4")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"E4_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/E7")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"E7_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-# import file
-myParavis = paravis.myParavis
# for saving snapshots
picturedir = get_picture_dir("Animation/E8")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"E8_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/F2")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"F2_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/F5")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"F5_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/F6")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"F6_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/G0")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"G0_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/G3")
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"G3_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/G3")
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
reset_view(aView)
Render(aView)
picturedir += os.sep
# Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
-aProxy.UpdatePipeline()
-
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"G3_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/G8")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"G8_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/H1")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"H1_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
import os
-from paravistest import *
+from paravistest import *
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir("Animation/H2")
OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
print "Creating a Viewer.........................",
aProxy.UpdatePipeline()
aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
aProxy.UpdatePipeline()
-
+
# Animation creation and saving into set of files into picturedir
scene = AnimateReader(aProxy,aView,picturedir+"H2_dom."+my_format)
nb_frames = len(scene.TimeKeeper.TimestepValues)
-pics = os.listdir(picturedir)
+pics = os.listdir(picturedir)
if len(pics) != nb_frames:
print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-
+
for pic in pics:
- os.remove(picturedir+pic)
-
-# Prepare animation performance
+ os.remove(picturedir+pic)
+
+# Prepare animation performance
scene.PlayMode = 1 # set RealTime mode for animation performance
# set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU
+scene.Duration = 30 # correspond to set the speed of animation in VISU
scene.GoToFirst()
print "Animation.................................",
scene.Play()
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A0")
+picturedir = get_picture_dir("CutLines/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A1")
+picturedir = get_picture_dir("CutLines/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A2")
+picturedir = get_picture_dir("CutLines/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A3")
+picturedir = get_picture_dir("CutLines/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A4")
+picturedir = get_picture_dir("CutLines/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A5")
+picturedir = get_picture_dir("CutLines/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A6")
+picturedir = get_picture_dir("CutLines/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A7")
+picturedir = get_picture_dir("CutLines/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A8")
+picturedir = get_picture_dir("CutLines/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A9")
+picturedir = get_picture_dir("CutLines/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/B0")
+picturedir = get_picture_dir("CutLines/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/B1")
+picturedir = get_picture_dir("CutLines/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/B2")
+picturedir = get_picture_dir("CutLines/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E0")
+picturedir = get_picture_dir("CutLines/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E1")
+picturedir = get_picture_dir("CutLines/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E2")
+picturedir = get_picture_dir("CutLines/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E3")
+picturedir = get_picture_dir("CutLines/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E4")
+picturedir = get_picture_dir("CutLines/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E5")
+picturedir = get_picture_dir("CutLines/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E6")
+picturedir = get_picture_dir("CutLines/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E7")
+picturedir = get_picture_dir("CutLines/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E8")
+picturedir = get_picture_dir("CutLines/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E9")
+picturedir = get_picture_dir("CutLines/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F1")
+picturedir = get_picture_dir("CutLines/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F2")
+picturedir = get_picture_dir("CutLines/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F3")
+picturedir = get_picture_dir("CutLines/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F4")
+picturedir = get_picture_dir("CutLines/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F5")
+picturedir = get_picture_dir("CutLines/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F6")
+picturedir = get_picture_dir("CutLines/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F7")
+picturedir = get_picture_dir("CutLines/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F8")
+picturedir = get_picture_dir("CutLines/F8")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F9")
+picturedir = get_picture_dir("CutLines/F9")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/G0")
+picturedir = get_picture_dir("CutLines/G0")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/G1")
+picturedir = get_picture_dir("CutLines/G1")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("CutLines/G2")
theFileName = datadir + "Bug829_resu_mode.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get viewScalarMap
aView = GetRenderView()
#display only current scalar map
aPrs.Visibility=1
reset_view(aView)
- Render(aView)
-
+ Render(aView)
+
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.CUTLINES
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-
+
# Show and record the presentation
process_prs_for_test(aPrs, aView, pic_name)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A0")
+picturedir = get_picture_dir("CutPlanes/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A1")
+picturedir = get_picture_dir("CutPlanes/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A2")
+picturedir = get_picture_dir("CutPlanes/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A3")
+picturedir = get_picture_dir("CutPlanes/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A4")
+picturedir = get_picture_dir("CutPlanes/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A5")
+picturedir = get_picture_dir("CutPlanes/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A6")
+picturedir = get_picture_dir("CutPlanes/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A7")
+picturedir = get_picture_dir("CutPlanes/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A8")
+picturedir = get_picture_dir("CutPlanes/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A9")
+picturedir = get_picture_dir("CutPlanes/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/B0")
+picturedir = get_picture_dir("CutPlanes/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/B1")
+picturedir = get_picture_dir("CutPlanes/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/B2")
+picturedir = get_picture_dir("CutPlanes/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
from paravistest import datadir
from presentations import CutPlanesOnField, EntityType
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
#====================Stage1: Importing MED file====================
print "**** Stage1: Importing MED file"
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E0")
+picturedir = get_picture_dir("CutPlanes/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E1")
+picturedir = get_picture_dir("CutPlanes/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E2")
+picturedir = get_picture_dir("CutPlanes/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E3")
+picturedir = get_picture_dir("CutPlanes/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E4")
+picturedir = get_picture_dir("CutPlanes/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E5")
+picturedir = get_picture_dir("CutPlanes/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E6")
+picturedir = get_picture_dir("CutPlanes/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E7")
+picturedir = get_picture_dir("CutPlanes/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E8")
+picturedir = get_picture_dir("CutPlanes/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E9")
+picturedir = get_picture_dir("CutPlanes/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F1")
+picturedir = get_picture_dir("CutPlanes/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F2")
+picturedir = get_picture_dir("CutPlanes/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F3")
+picturedir = get_picture_dir("CutPlanes/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F4")
+picturedir = get_picture_dir("CutPlanes/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F5")
+picturedir = get_picture_dir("CutPlanes/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F6")
+picturedir = get_picture_dir("CutPlanes/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F7")
+picturedir = get_picture_dir("CutPlanes/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F8")
+picturedir = get_picture_dir("CutPlanes/F8")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F9")
+picturedir = get_picture_dir("CutPlanes/F9")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/G0")
+picturedir = get_picture_dir("CutPlanes/G0")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/G1")
+picturedir = get_picture_dir("CutPlanes/G1")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("CutPlanes/G2")
theFileName = datadir + "Bug829_resu_mode.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get viewScalarMap
aView = GetRenderView()
#display only current scalar map
aPrs.Visibility=1
reset_view(aView)
- Render(aView)
-
+ Render(aView)
+
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.CUTPLANES
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-
+
# Show and record the presentation
process_prs_for_test(aPrs, aView, pic_name)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A0")
+picturedir = get_picture_dir("DeformedShape/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A1")
+picturedir = get_picture_dir("DeformedShape/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A2")
+picturedir = get_picture_dir("DeformedShape/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A3")
+picturedir = get_picture_dir("DeformedShape/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A4")
+picturedir = get_picture_dir("DeformedShape/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A5")
+picturedir = get_picture_dir("DeformedShape/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A6")
+picturedir = get_picture_dir("DeformedShape/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A7")
+picturedir = get_picture_dir("DeformedShape/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A8")
+picturedir = get_picture_dir("DeformedShape/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A9")
+picturedir = get_picture_dir("DeformedShape/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/B0")
+picturedir = get_picture_dir("DeformedShape/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/B1")
+picturedir = get_picture_dir("DeformedShape/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/B2")
+picturedir = get_picture_dir("DeformedShape/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
from paravistest import datadir
from presentations import DeformedShapeOnField, EntityType
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
-
#====================Stage1: Import from MED file in ParaVis============
print "**** Stage1: Import from MED file in ParaVis"
print 'Import "Tria3.med"....................',
file_path = datadir + "Tria3.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
#====================Stage4: Coloring method of Deformed Shape===========
print "**** Stage4: Coloring of Deformed Shape"
-color_array = defshape.ColorArrayName
+color_array = defshape.ColorArrayName[1]
if color_array:
print "Default shape is colored by array: ", color_array
else:
print "Default shape is colored by solid color: ", defshape.AmbientColor
print "Set colored by array mode .... ",
-defshape.ColorArrayName = field_name
+defshape.ColorArrayName = ("CELLS", field_name)
pvsimple.Render()
-if defshape.ColorArrayName == field_name:
+if defshape.ColorArrayName[1] == field_name:
print "OK"
else:
print "FAILED"
print "Set colored by solid color mode .... ",
-defshape.ColorArrayName = ''
+defshape.ColorArrayName = (None, '')
pvsimple.Render()
-if defshape.ColorArrayName:
+if defshape.ColorArrayName[1]:
print "FAILED"
else:
print "OK"
from paravistest import datadir
from presentations import DeformedShapeOnField, EntityType
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
-
#====================Stage1: Import from MED file in ParaVis============
print "**** Stage1: Import from MED file in ParaVis"
print 'Import "Hexa8.med"....................',
file_path = datadir + "Hexa8.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E0")
+picturedir = get_picture_dir("DeformedShape/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E1")
+picturedir = get_picture_dir("DeformedShape/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E2")
+picturedir = get_picture_dir("DeformedShape/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E3")
+picturedir = get_picture_dir("DeformedShape/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E4")
+picturedir = get_picture_dir("DeformedShape/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E5")
+picturedir = get_picture_dir("DeformedShape/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E6")
+picturedir = get_picture_dir("DeformedShape/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E7")
+picturedir = get_picture_dir("DeformedShape/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E8")
+picturedir = get_picture_dir("DeformedShape/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E9")
+picturedir = get_picture_dir("DeformedShape/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F1")
+picturedir = get_picture_dir("DeformedShape/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F2")
+picturedir = get_picture_dir("DeformedShape/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F3")
+picturedir = get_picture_dir("DeformedShape/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F4")
+picturedir = get_picture_dir("DeformedShape/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F5")
+picturedir = get_picture_dir("DeformedShape/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F6")
+picturedir = get_picture_dir("DeformedShape/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F7")
+picturedir = get_picture_dir("DeformedShape/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F8")
+picturedir = get_picture_dir("DeformedShape/F8")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("DeformedShape/F9")
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get view
aView = GetRenderView()
colored_str = "_colored"
for i in range(1,11):
hide_all(aView, True)
- aPrs = DeformedShapeOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)
+ aPrs = DeformedShapeOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)
if aPrs is None:
raise RuntimeError, "Presentation is None!!!"
# display only current deformed shape
#display_only(aView,aPrs)
- aPrs.Visibility =1
+ aPrs.Visibility =1
reset_view(aView)
Render(aView)
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.DEFORMEDSHAPE
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName+colored_str + "_" + str(i) + "_" + f_prs_type + "." + pictureext
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A0")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "hexa_28320_ELEM.med"
field_name = "pression_elem_dom_pb1"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
+view = pvsimple.GetRenderView()
+time = get_time(med_reader, timestamp_nb)
+view.ViewTime = time
+pvsimple.UpdatePipeline(time=time, proxy=med_reader)
+
# Create Gauss Points presentation
prs = GaussPointsOnField(med_reader, EntityType.CELL, field_name, timestamp_nb)
if prs is None:
raise RuntimeError, "Created presentation is None!!!"
# Display presentation and get snapshot
-view = pvsimple.GetRenderView()
-time = get_time(med_reader, timestamp_nb)
-
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A1")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "pointe.med"
field_name = "fieldcelldoublescalar"
#field_name = "fieldcelldoublevector"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A2")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "Fields_group3D.med"
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A3")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "Hexa8.med"
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A4")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "Penta6.med"
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A5")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "Tetra4.med"
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A6")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "Tria3.med"
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A7")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "Quad4.med"
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/A9")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "carre_en_quad4_seg2_fields.med"
field_name = "AREA"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B0")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "cube_hexa8_quad4.med"
field_name = "fieldcelldouble"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B1")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "test_55_solid_concentr_dom.med"
field_name = "RN_precipite_restr"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B2")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "H_COUPLEX1.med"
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B3")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "cas2_2d_couplage_chess_castem.med"
field_name = "pH"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B4")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "champc.med"
field_name = "Am241_restriction"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B5")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "hydro_sea_alv.med"
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B6")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "toto.med"
field_name = "erreur"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B7")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "couplex_alain.med"
field_name = "Conc. I129"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B8")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "KCOUPLEX1.med"
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/B9")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "test_hydro.med"
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C0")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "ml.med"
field_name = "head_restriction"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C1")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "T_COUPLEX1.med"
field_name = "Conc. I129"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C2")
if not picturedir.endswith(os.sep):
picturedir += os.sep
-
+
# MED file
file_name = datadir + "test_hydro_darcy4_out.med"
field_name = "DarcyVelocity"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C3")
if not picturedir.endswith(os.sep):
field_name = "Concentration_O2(aq)_mol per l"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C4")
if not picturedir.endswith(os.sep):
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"]
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C5")
if not picturedir.endswith(os.sep):
field_name = "champ_reel"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C6")
if not picturedir.endswith(os.sep):
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"]
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C7")
if not picturedir.endswith(os.sep):
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"]
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C8")
if not picturedir.endswith(os.sep):
#timestamp_nb = 1
timestamp_nb = 6 # timestamp 1 is empty
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-
# Directory for saving snapshots
picturedir = get_picture_dir("GaussPoints/C9")
if not picturedir.endswith(os.sep):
field_name = "RESPIL__SIEF_ELGA"
timestamp_nb = -1 # last timestamp
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
# Display presentation and get snapshot
pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
process_prs_for_test(prs, view, pic_name)
-
-
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "ResOK_0000.med"
field_names = ["temperature", "vitesse", "pression"]
prs_list = [ [1,2,3,4,8], range(1,10), [0,1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "TimeStamps.med"
field_names = ["pression", "temperature", "vitesse"]
prs_list = [ [0,1,2,3,4,8], [1,2,3,4,8], range(1,10) ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "carre_en_quad4_import22.med"
field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "carre_en_quad4_seg2.med"
field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "test_hydro_darcy1a_out.med"
field_names = ["DarcyVelocity","Head"]
prs_list = [ range(10), [0,1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "clo2.med"
field_names = ["PRESSION", "TAUX_DE_VIDE", "VITESSE"]
prs_list = [ [0,1,2,3,4,8], [1,2,3,4,8], range(1,10) ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "cube_hexa8_import22.med"
field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "cube_hexa8_quad4_import22.med"
field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "fra1.med"
field_names = ["TAUX_DE_VIDE", "VITESSE"]
prs_list = [ [1,2,3,4,8], range(1,10) ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "maill.0.med"
field_names = ["REQT_GD_________________________", "RESUTRQUDEPL____________________", "RESUTRQUERRE_ELGA_NORE__________", "RESUTRQUSIEF_ELGA_DEPL__________", "RESUTRQUSIGM_ELNO_DEPL__________"]
-prs_list = [ range(1,10), range(1,10), range(10), range(10), range(10)])
+prs_list = [ range(1,10), range(1,10), range(10), range(10), range(10)]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "maill.0_volumes.med"
field_names = ["RETH____FLUX_NOEU_TEMP__________", "RETH____TEMP____________________"]
prs_list = [ range(1,10), [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "maill.1.med"
field_names = ["RETH____FLUX_NOEU_TEMP__________", "RETH____TEMP____________________"]
prs_list = [ range(1,10), [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "maill.2.med"
field_names = ["RETH____FLUX_NOEU_TEMP__________","RETH____TEMP____________________"]
prs_list = [ range(1,10), [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "zzzz121b.med"
field_names = ["RESUZERODEPL____________________", "RESUZEROERRE_ELGA_NORE__________", "RESUZEROSIEF_ELGA_DEPL__________", "RESUZEROSIGM_ELNO_DEPL__________"]
prs_list = [ [0,1,5,6,7], [0,1,5,6,7], [0,1,5,6,7], [0,1,5,6,7,9] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "pointe_4fields.med"
field_names = ["fieldcelldoublescalar", "fieldcelldoublevector", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
prs_list = [ [0,1,2,3,4,8], range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "pointe.med"
field_names = ["fieldcelldoublescalar", "fieldcelldoublevector", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
prs_list = [ [0,1,2,3,4,8], range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "polygones.med"
field_names = ["bord_:_distorsion","bord_:_familles","bord_:_non-ortho"]
prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8], [0,1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "recoll_bord.med"
field_names = ["bord_:_distorsion","bord_:_familles","bord_:_non-ortho"]
prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8], [0,1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "resu.2.med"
field_names = ["RETH____FLUX_NOEU_TEMP__________","RETH____TEMP____________________"]
prs_list = [ range(1,10), [1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "test_2D.med"
-field_names = ["champ","field_v","field_v_p"]
-prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8], [0,1,2,3,4,8] ]
+field_names = ["field_v","field_v_p"]
+prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
field_names = ["REMEZEROERRE_ELGA_NORE__________", "RETHZEROTEMP____________________"]
prs_list = [ [0,1], [1] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
-med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1.med2.2.med"
+med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "RETHUN__TEMP____________________"]
prs_list = [ [0,1], [1] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
# Import MED file; create presentations for the given fields.
from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
-med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1.med2.3.med"
+med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
field_names = ["REMEZEROERRE_ELGA_NORE__________", "RETHZEROTEMP____________________"]
prs_list = [ [0,1], [1] ]
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A0")
+picturedir = get_picture_dir("IsoSurfaces/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A1")
+picturedir = get_picture_dir("IsoSurfaces/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A2")
+picturedir = get_picture_dir("IsoSurfaces/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A3")
+picturedir = get_picture_dir("IsoSurfaces/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A4")
+picturedir = get_picture_dir("IsoSurfaces/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A5")
+picturedir = get_picture_dir("IsoSurfaces/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A6")
+picturedir = get_picture_dir("IsoSurfaces/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A7")
+picturedir = get_picture_dir("IsoSurfaces/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A8")
+picturedir = get_picture_dir("IsoSurfaces/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A9")
+picturedir = get_picture_dir("IsoSurfaces/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/B0")
+picturedir = get_picture_dir("IsoSurfaces/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/B1")
+picturedir = get_picture_dir("IsoSurfaces/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/B2")
+picturedir = get_picture_dir("IsoSurfaces/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E0")
+picturedir = get_picture_dir("IsoSurfaces/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E1")
+picturedir = get_picture_dir("IsoSurfaces/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E2")
+picturedir = get_picture_dir("IsoSurfaces/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E3")
+picturedir = get_picture_dir("IsoSurfaces/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E4")
+picturedir = get_picture_dir("IsoSurfaces/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E5")
+picturedir = get_picture_dir("IsoSurfaces/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E6")
+picturedir = get_picture_dir("IsoSurfaces/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E7")
+picturedir = get_picture_dir("IsoSurfaces/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E8")
+picturedir = get_picture_dir("IsoSurfaces/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E9")
+picturedir = get_picture_dir("IsoSurfaces/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F1")
+picturedir = get_picture_dir("IsoSurfaces/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F2")
+picturedir = get_picture_dir("IsoSurfaces/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F3")
+picturedir = get_picture_dir("IsoSurfaces/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F4")
+picturedir = get_picture_dir("IsoSurfaces/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F5")
+picturedir = get_picture_dir("IsoSurfaces/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F6")
+picturedir = get_picture_dir("IsoSurfaces/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F7")
+picturedir = get_picture_dir("IsoSurfaces/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F8")
+picturedir = get_picture_dir("IsoSurfaces/F8")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F9")
+picturedir = get_picture_dir("IsoSurfaces/F9")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/G0")
+picturedir = get_picture_dir("IsoSurfaces/G0")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/G1")
+picturedir = get_picture_dir("IsoSurfaces/G1")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("IsoSurfaces/G2")
theFileName = datadir + "Bug829_resu_mode.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get viewScalarMap
aView = GetRenderView()
#display only current scalar map
display_only(aPrs, aView)
reset_view(aView)
- Render(aView)
-
+ Render(aView)
+
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.ISOSURFACES
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-
+
# Show and record the presentation
process_prs_for_test(aPrs, aView, pic_name)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A0")
+picturedir = get_picture_dir("MeshPresentation/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A1")
+picturedir = get_picture_dir("MeshPresentation/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A2")
+picturedir = get_picture_dir("MeshPresentation/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A3")
+picturedir = get_picture_dir("MeshPresentation/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A4")
+picturedir = get_picture_dir("MeshPresentation/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A5")
+picturedir = get_picture_dir("MeshPresentation/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A6")
+picturedir = get_picture_dir("MeshPresentation/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A7")
+picturedir = get_picture_dir("MeshPresentation/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A8")
+picturedir = get_picture_dir("MeshPresentation/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A9")
+picturedir = get_picture_dir("MeshPresentation/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/B0")
+picturedir = get_picture_dir("MeshPresentation/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/B1")
+picturedir = get_picture_dir("MeshPresentation/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/B2")
+picturedir = get_picture_dir("MeshPresentation/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E0")
+picturedir = get_picture_dir("MeshPresentation/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E1")
+picturedir = get_picture_dir("MeshPresentation/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E2")
+picturedir = get_picture_dir("MeshPresentation/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E3")
+picturedir = get_picture_dir("MeshPresentation/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E4")
+picturedir = get_picture_dir("MeshPresentation/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E5")
+picturedir = get_picture_dir("MeshPresentation/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E6")
+picturedir = get_picture_dir("MeshPresentation/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E7")
+picturedir = get_picture_dir("MeshPresentation/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E8")
+picturedir = get_picture_dir("MeshPresentation/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E9")
+picturedir = get_picture_dir("MeshPresentation/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F0")
+picturedir = get_picture_dir("MeshPresentation/F0")
file = datadir + "gro5couches.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F1")
+picturedir = get_picture_dir("MeshPresentation/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F2")
+picturedir = get_picture_dir("MeshPresentation/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F3")
+picturedir = get_picture_dir("MeshPresentation/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F4")
+picturedir = get_picture_dir("MeshPresentation/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F5")
+picturedir = get_picture_dir("MeshPresentation/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F6")
+picturedir = get_picture_dir("MeshPresentation/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F7")
+picturedir = get_picture_dir("MeshPresentation/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F8")
+picturedir = get_picture_dir("MeshPresentation/F8")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F9")
+picturedir = get_picture_dir("MeshPresentation/F9")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/G0")
+picturedir = get_picture_dir("MeshPresentation/G0")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/G1")
+picturedir = get_picture_dir("MeshPresentation/G1")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
#
#This case corresponds to: /visu/MeshPresentation/G3 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G3")
theFileName = datadir + "Box1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name, entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/G4 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G4")
theFileName = datadir + "Box1Moderate.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/G5 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G5")
theFileName = datadir + "Box2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/G6 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G6")
theFileName = datadir + "Box2Moderate.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/G7 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G7")
theFileName = datadir + "Box3.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/G8 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G8")
theFileName = datadir + "BoxEvenSmaller1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/G9 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/G9")
theFileName = datadir + "BoxHexa1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H0 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H0")
theFileName = datadir + "BoxHexa2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H1 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H1")
theFileName = datadir + "BoxModSmall1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H2 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H2")
theFileName = datadir + "BoxModSmall2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H3 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H3")
theFileName = datadir + "BoxTetra2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H4 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H4")
theFileName = datadir + "ComplexIncludedTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H5 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H5")
theFileName = datadir + "ComplexIncludingTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H6 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H6")
theFileName = datadir + "CornerTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H7 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H7")
theFileName = datadir + "DegenEdgeXY.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H8 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H8")
theFileName = datadir + "DegenFaceXYZ.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/H9 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/H9")
theFileName = datadir + "DegenTranslatedInPlane.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I0 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I0")
theFileName = datadir + "TinyBox.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I1 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I1")
theFileName = datadir + "TrickyTetra1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I2 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I2")
theFileName = datadir + "UnitTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I3 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I3")
theFileName = datadir + "UnitTetraDegenT.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I4 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I4")
theFileName = datadir + "square1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I5 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I5")
theFileName = datadir + "square1_split1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I6 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I6")
theFileName = datadir + "square1_split2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I7 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I7")
theFileName = datadir + "square1_split3.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I8 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I8")
theFileName = datadir + "square2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/I9 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/I9")
theFileName = datadir + "square2_split1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J0 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J0")
theFileName = datadir + "DividedGenTetra1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J1 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J1")
theFileName = datadir + "DividedGenTetra2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J2 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J2")
theFileName = datadir + "DividedUnitTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J3 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J3")
theFileName = datadir + "DividedUnitTetraSimpler.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J4 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J4")
theFileName = datadir + "GenTetra1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J5 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J5")
theFileName = datadir + "GenTetra2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J6 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J6")
theFileName = datadir + "GeneralTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J7 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J7")
theFileName = datadir + "HalfstripOnly.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J8 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J8")
theFileName = datadir + "HalfstripOnly2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/J9 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/J9")
theFileName = datadir + "LargeInconsistentTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K0 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K0")
theFileName = datadir + "LargeUnitTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K1 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K1")
theFileName = datadir + "MovedHexaBox1.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K2 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K2")
theFileName = datadir + "MovedHexaBox2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K3 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K3")
theFileName = datadir + "NudgedDividedUnitTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K4 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K4")
theFileName = datadir + "NudgedDividedUnitTetraSimpler.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K5 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K5")
theFileName = datadir + "NudgedSimpler.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K6 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K6")
theFileName = datadir + "NudgedTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K7 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K7")
theFileName = datadir + "SimpleHalfstripOnly.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K8 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K8")
theFileName = datadir + "SimpleIncludedTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/K9 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/K9")
theFileName = datadir + "SimpleIncludingTetra.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/L0 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/L0")
theFileName = datadir + "square2_split2.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
#
#This case corresponds to: /visu/MeshPresentation/L0 case
-# Create mesh presentation for nodes and cells of the the given MED file
+# Create mesh presentation for nodes and cells of the the given MED file
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("MeshPresentation/L1")
theFileName = datadir + "Bug829_resu_mode.med"
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
aView = GetRenderView()
for entity_type in entity_types:
entity_name = EntityType.get_name(entity_type)
mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
- if mesh is None:
+ if mesh is None:
msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
- raise RuntimeError, msg
+ raise RuntimeError, msg
mesh.Visibility=1
reset_view(aView)
Render()
entity_name = EntityType.get_name(entity_type)
# Construct image file name
pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-
+
process_prs_for_test(mesh, aView, pic_name)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A0")
+picturedir = get_picture_dir("Plot3D/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A1")
+picturedir = get_picture_dir("Plot3D/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A2")
+picturedir = get_picture_dir("Plot3D/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A3")
+picturedir = get_picture_dir("Plot3D/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A4")
+picturedir = get_picture_dir("Plot3D/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A5")
+picturedir = get_picture_dir("Plot3D/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A6")
+picturedir = get_picture_dir("Plot3D/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A7")
+picturedir = get_picture_dir("Plot3D/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A8")
+picturedir = get_picture_dir("Plot3D/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A9")
+picturedir = get_picture_dir("Plot3D/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/B0")
+picturedir = get_picture_dir("Plot3D/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/B1")
+picturedir = get_picture_dir("Plot3D/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/B2")
+picturedir = get_picture_dir("Plot3D/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E0")
+picturedir = get_picture_dir("Plot3D/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E1")
+picturedir = get_picture_dir("Plot3D/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E2")
+picturedir = get_picture_dir("Plot3D/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E3")
+picturedir = get_picture_dir("Plot3D/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E4")
+picturedir = get_picture_dir("Plot3D/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E5")
+picturedir = get_picture_dir("Plot3D/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E6")
+picturedir = get_picture_dir("Plot3D/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E7")
+picturedir = get_picture_dir("Plot3D/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E8")
+picturedir = get_picture_dir("Plot3D/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E9")
+picturedir = get_picture_dir("Plot3D/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F1")
+picturedir = get_picture_dir("Plot3D/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F2")
+picturedir = get_picture_dir("Plot3D/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F3")
+picturedir = get_picture_dir("Plot3D/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F4")
+picturedir = get_picture_dir("Plot3D/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F5")
+picturedir = get_picture_dir("Plot3D/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F6")
+picturedir = get_picture_dir("Plot3D/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F7")
+picturedir = get_picture_dir("Plot3D/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F8")
+picturedir = get_picture_dir("Plot3D/F8")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F9")
+picturedir = get_picture_dir("Plot3D/F9")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/G0")
+picturedir = get_picture_dir("Plot3D/G0")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/G1")
+picturedir = get_picture_dir("Plot3D/G1")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
from pvsimple import *
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
picturedir = get_picture_dir("Plot3D/G2")
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get viewScalarMap
aView = GetRenderView()
#display only current scalar map
aPrs.Visibility=1
reset_view(aView)
- Render(aView)
-
+ Render(aView)
+
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.PLOT3D
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-
+
# Show and record the presentation
process_prs_for_test(aPrs, aView, pic_name)
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
-
#====================Stage1: Importing MED file====================
print "**** Stage1: Importing MED file"
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "Fields_group3D.med"...............',
file_path = datadir + "Fields_group3D.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
-
print 'Importing "TimeStamps.med"...............',
file_path = datadir + "TimeStamps.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-
DELAY = 0.25
-my_paravis = paravis.myParavis
-
# Get view
view = pvsimple.GetRenderView()
sleep(DELAY)
entity = EntityType.NODE
timestamp = 1
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
b = str(random.random())
xyrep.SeriesColor = [field_name, r, g, b]
index += 1
-
+
pvsimple.Render(xy_view)
sleep(DELAY)
entity = EntityType.NODE
timestamp = 2
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp)
pvsimple.ResetCamera(view)
print "Start Animation"
-pvsimple.AnimateReader(med_reader, view)
+pvsimple.AnimateReader(med_reader, view)
# Create table and display it as curves
from paravistest import tablesdir
-import pvserver as paravis
import pvsimple
-
# Define script for table creation
script = """
import math
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
-
# Import table from CSV file
file_path = tablesdir + "sinus.csv"
sinus_csv = pvsimple.CSVReader(FileName=file_path)
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
view = pvsimple.GetRenderView()
reset_view(view)
delay = 1
-
def after_set(error_string, prop_name, old_value, new_value):
print prop_name, ": old_value = ", old_value, "new_value = ", new_value
if error_string == "":
field_name = 'vitesse'
node_entity = EntityType.NODE
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
field_name = 'VITESSE'
pvsimple.SetActiveSource(None)
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Create table
from paravistest import tablesdir
-import pvserver as paravis
import pvsimple
-
# Define script for table creation
script = """
import math
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-
DELAY = 0.25
-my_paravis = paravis.myParavis
-
# Get view
view = pvsimple.GetRenderView()
sleep(DELAY)
entity = EntityType.NODE
timestamp = 1
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
entity = EntityType.NODE
timestamp = 2
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp)
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# Import MED file
med_file_path = datadir + "pointe.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
entity = EntityType.NODE
field_name = "fieldnodedouble"
timestamp_id = 1
-
+
scalarmap = ScalarMapOnField(med_reader, entity, field_name, timestamp_id)
if get_nb_components(med_reader, entity, field_name) > 1:
vectors = VectorsOnField(med_reader, entity, field_name, timestamp_id)
else:
print "We have no permission to rewrite medFile"
else:
- print "We have no permission to read medFile, it will not be opened";
+ print "We have no permission to read medFile, it will not be opened";
except:
- print sys.exc_type
+ print sys.exc_type
print sys.exc_value
print sys.exc_traceback
from paravistest import datadir, tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
-
DELAY = 2
-my_paravis = paravis.myParavis
-
# Step 1
print 'Importing "pointe.med"...............',
file_path = datadir + "pointe.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Create table of integer, create table of real, create curves
from paravistest import tablesdir
-import pvserver as paravis
import pvsimple
-
# Define script for table of integer creation
script_ti = """
def add_column(table, name, lst):
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
-
# Import table from CSV file
file_path = tablesdir + "table_test.csv"
table_csv = pvsimple.CSVReader(FileName=file_path)
# This case corresponds to: /visu/SWIG_scripts/B8 case
import paravistest
-import pvserver as paravis
from paravistest import datadir
from presentations import EntityType, ScalarMapOnField, CutPlanesOnField
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
-
# Get view
view1 = pvsimple.GetRenderView()
entity = EntityType.NODE
timestamp = 1
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
# Create presentations
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
-
# 1. Import tables from file
file_path = tablesdir + "tables_test.xls"
table_reader = pvsimple.TableReader(FileName=file_path)
xy_rep.SeriesVisibility = [xy_rep.XArrayName, '0']
xy_rep.SeriesVisibility = ['vtkOriginalIndices', '0']
pvsimple.Render(xy_view)
-
from paravistest import tablesdir, get_picture_dir, pictureext
from presentations import *
-import pvserver as paravis
import pvsimple
-
# Import table from file
print 'Import file with tables....',
file_path = tablesdir + "table_test.xls"
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A0")
+picturedir = get_picture_dir("ScalarMap/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A1")
+picturedir = get_picture_dir("ScalarMap/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A2")
+picturedir = get_picture_dir("ScalarMap/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A3")
+picturedir = get_picture_dir("ScalarMap/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A4")
+picturedir = get_picture_dir("ScalarMap/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A5")
+picturedir = get_picture_dir("ScalarMap/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A6")
+picturedir = get_picture_dir("ScalarMap/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A7")
+picturedir = get_picture_dir("ScalarMap/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A8")
+picturedir = get_picture_dir("ScalarMap/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A9")
+picturedir = get_picture_dir("ScalarMap/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/B0")
+picturedir = get_picture_dir("ScalarMap/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/B1")
+picturedir = get_picture_dir("ScalarMap/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/B2")
+picturedir = get_picture_dir("ScalarMap/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
from paravistest import datadir
import presentations
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
print 'Importing "fra.med"...',
file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
lookup_table.VectorMode = 'Component'
lookup_table.VectorComponent = 0
-scalarmap.LookupTable = lookup_table
+scalarmap.LookupTable = lookup_table
print "Vector mode .....", scalarmap.LookupTable.VectorMode
print "Vector component .....", scalarmap.LookupTable.VectorComponent
scalarmap.LookupTable.Discretize = 1
-print "Set negative number of colors"
-nb_colors = -128
-scalarmap.LookupTable.NumberOfTableValues = nb_colors
-print "Number of colors =", scalarmap.LookupTable.NumberOfTableValues
+#print "Set negative number of colors"
+#nb_colors = -128
+#scalarmap.LookupTable.NumberOfTableValues = nb_colors
+#print "Number of colors =", scalarmap.LookupTable.NumberOfTableValues
print "Set zero number of colors"
nb_colors = 0
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E0")
+picturedir = get_picture_dir("ScalarMap/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E1")
+picturedir = get_picture_dir("ScalarMap/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E2")
+picturedir = get_picture_dir("ScalarMap/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E3")
+picturedir = get_picture_dir("ScalarMap/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E4")
+picturedir = get_picture_dir("ScalarMap/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E5")
+picturedir = get_picture_dir("ScalarMap/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E6")
+picturedir = get_picture_dir("ScalarMap/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E7")
+picturedir = get_picture_dir("ScalarMap/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E8")
+picturedir = get_picture_dir("ScalarMap/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E9")
+picturedir = get_picture_dir("ScalarMap/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F1")
+picturedir = get_picture_dir("ScalarMap/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F2")
+picturedir = get_picture_dir("ScalarMap/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F3")
+picturedir = get_picture_dir("ScalarMap/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F4")
+picturedir = get_picture_dir("ScalarMap/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F5")
+picturedir = get_picture_dir("ScalarMap/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F6")
+picturedir = get_picture_dir("ScalarMap/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F7")
+picturedir = get_picture_dir("ScalarMap/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F8")
+picturedir = get_picture_dir("ScalarMap/F8")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F9")
+picturedir = get_picture_dir("ScalarMap/F9")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/G0")
+picturedir = get_picture_dir("ScalarMap/G0")
file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/G1")
+picturedir = get_picture_dir("ScalarMap/G1")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
import sys
import os
from paravistest import datadir, pictureext, get_picture_dir
-import pvserver as paravis
-from pvsimple import GetActiveSource, GetRenderView, Render
+from pvsimple import GetActiveSource, GetRenderView, Render, OpenDataFile
from presentations import ScalarMapOnField, hide_all, EntityType, PrsTypeEnum,reset_view,process_prs_for_test
-
-# Create presentations
-myParavis = paravis.myParavis
-
picturedir = get_picture_dir("ScalarMap/G2")
theFileName = datadir + "Bug829_resu_mode.med"
print " --------------------------------- "
print "file ", theFileName
print " --------------------------------- "
-
+
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
result = OpenDataFile(theFileName)
proxy = GetActiveSource()
if proxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get view
aView = GetRenderView()
#display only current scalar map
aPrs.Visibility=1
reset_view(aView)
- Render(aView)
-
+ Render(aView)
+
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.SCALARMAP
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-
+
# Show and record the presentation
process_prs_for_test(aPrs, aView, pic_name)
sizes.append(os.path.getsize(pic_name))
-# check sizes of pictures
+# check sizes of pictures
if abs(max(sizes)-min(sizes)) > 0.01*max(sizes):
- print "<b>WARNING!!! Pictures have different sizes!!!</b>";
+ print "<b>WARNING!!! Pictures have different sizes!!!</b>";
for i in range(1,11):
picture_name = "time_stamp_"+str(i)+"."+pictureext
- print "Picture: "+picture_name+"; size: "+str(sizes[i-1])
- raise RuntimeError
+ print "Picture: "+picture_name+"; size: "+str(sizes[i-1])
+ raise RuntimeError
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A0")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A1")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A2")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A3")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A4")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A5")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A6")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A7")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A8")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A9")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B0")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B1")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B2")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
#====================Stage1: Import MED file=========================
print 'Importing "fra.med"...................',
medFile = datadir + "fra.med"
-OpenDataFile(medFile)
+pvsimple.OpenDataFile(medFile)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "Default number of colors: ", lt.NumberOfTableValues
lt.Discretize = 1
-print "Set negative number of colors"
-num = -128
-lt.NumberOfTableValues = num
-print "Number of colors: ", lt.NumberOfTableValues
-pvsimple.Render(view)
+#print "Set negative number of colors"
+#num = -128
+#lt.NumberOfTableValues = num
+#print "Number of colors: ", lt.NumberOfTableValues
+#pvsimple.Render(view)
print "Set zero number of colors"
num = 0
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E0")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E1")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E2")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E3")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E4")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E5")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E6")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E7")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E8")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E9")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F1")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F2")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F3")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F4")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F5")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F6")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F7")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F8")
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F8")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A0")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
-
-import time
-time.sleep(10000)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A1")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A2")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A3")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A4")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A5")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A6")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A7")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A8")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/A9")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/B0")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/B1")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/B2")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-myParavis = paravis.myParavis
# Directory for saving snapshots
picturedir = get_picture_dir(sys.argv[1], "StreamLines/B3")
print "file ", file
print "\nCreatePrsForFile..."
print "BREAKPOINT_1"
- CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+ CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "FAILED"
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E0")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E1")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E2")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E3")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E4")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E5")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E6")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E7")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E8")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/E9")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F1")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F2")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F3")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F4")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F5")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F6")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F7")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F8")
-# Create presentations
-myParavis = paravis.myParavis
-
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
from paravistest import datadir, pictureext, get_picture_dir
from presentations import StreamLinesOnField, EntityType, \
reset_view, process_prs_for_test
-import pvserver as paravis
import pvsimple
-
-my_paravis = paravis.myParavis
-
# Directory for saving snapshots
picturedir = get_picture_dir("StreamLines/F9")
# Import of the "Bug829_resu_mode.med" file
file_path = datadir + "Bug829_resu_mode.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
-
# Copyright (C) 2010-2015 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
file_path = datadir + "new_case.rmed"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "new_case.rmed was not imported!!!"
# 2. Creation of a set of "StreamLines" presentations, based on time stamps of "RESU_DEPL" field
streamlines = StreamLinesOnField(med_reader, EntityType.NODE, 'RESU_DEPL', 1)
-if streamlines is None:
+if streamlines is None:
raise RuntimeError, "Presentation is None!!!"
-
-import time
-time.sleep(10000)
-
from paravistest import tablesdir, get_picture_dir, pictureext
from presentations import *
-import pvserver as paravis
import pvsimple
-
# Import table from file
print 'Import tables_test.xls ....',
file_path = tablesdir + "tables_test.xls"
file_name = picturedir + "sinus." + pictureext
pvsimple.WriteImage(file_name, view=xy_view, Magnification=1)
-
-
from paravistest import tablesdir, get_picture_dir, pictureext
from presentations import *
-import pvserver as paravis
import pvsimple
# Import table from file
file_name = picturedir + "flux_tab." + pictureext
pvsimple.WriteImage(file_name, view=xy_view, Magnification=1)
-
-
-
return mesh_name, iterations
-def Import_Med_Field(paravis, file, field_names, check_errors=0, prs=[]):
+def Import_Med_Field(filename, field_names, check_errors=0, prs=[]):
"""Builds presentations on the given fields of the MED file.
Originally defined in VISU_TEST/Grids/visu/ImportMedField/begin file.
Arguments:
- paravis : PARAVIS instance
- file_name : the full path to med file
+ filename : the full path to med file
field_names : the list of field names (for ex: ["pression","temperature","vitesse"])
prs : [[0,1,...], [], []]; empty list (sublist(s)) is ignored
0-VISU.TGAUSSPOINTS
nb_errors = 0
- print "File: ", file
+ print "File: ", filename
# check the file accessibility
- if not os.access(file, os.F_OK):
- msg = "File " + file + " does not exist!!!"
+ if not os.access(filename, os.F_OK):
+ msg = "File " + filename + " does not exist!!!"
raise RuntimeError, msg
# import MED file
- paravis.ImportFile(file)
+ import pvsimple
+ pvsimple.OpenDataFile(filename)
proxy = presentations.pvs.GetActiveSource()
if proxy is None:
raise RuntimeError, "ERROR!!! Can't import file!!!"
print "Presentation(s) creation...OK"
if nb_errors > 0 and check_errors:
- raise RuntimeError, "There are some errors were occured!!! For more information see ERRORs above..."
+ raise RuntimeError, "Errors occured!!! For more information see ERRORs above..."
else:
return nb_errors
# :TRICKY: Special case of returncode=127
# When using paraview in SALOME environment, the following error
- # systematicallty appears when exiting paraview (it's also true when using
+ # systematically appears when exiting paraview (it's also true when using
# PARAVIS and exiting SALOME):
# Inconsistency detected by ld.so: dl-close.c: 738: _dl_close: Assertion `map->l_init_called' failed!
# For PARAVIS tests purpose, paraview functionalities are accessed in each
# status is considered as "failed".
# The tricky part here is to discard such return codes, waiting for a fix
# maybe in paraview...
+ print "#############################"
+ print res
+ print _err
+ print "#############################"
if res == 127 and _err.startswith("Inconsistency detected by ld.so: dl-close.c"):
- print " ** THE FOLLOWING MESSAGE IS NOT CONSIDERED WHEN ANALYZING TEST SUCCESSFULNESS **"
+ print " ** THE FOLLOWING MESSAGE IS DISCARDED WHEN ANALYZING TEST SUCCESSFULNESS **"
print _err
print " ** end of message **"
res = 0;
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A0")
+picturedir = get_picture_dir("Vectors/A0")
file = datadir + "fra.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A1")
+picturedir = get_picture_dir("Vectors/A1")
file = datadir + "hexa_28320_ELEM.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A2")
+picturedir = get_picture_dir("Vectors/A2")
file = datadir + "pointe.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A3")
+picturedir = get_picture_dir("Vectors/A3")
file = datadir + "Fields_group3D.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A4")
+picturedir = get_picture_dir("Vectors/A4")
file = datadir + "Hexa8.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A5")
+picturedir = get_picture_dir("Vectors/A5")
file = datadir + "Penta6.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A6")
+picturedir = get_picture_dir("Vectors/A6")
file = datadir + "clo.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A7")
+picturedir = get_picture_dir("Vectors/A7")
file = datadir + "Tetra4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A8")
+picturedir = get_picture_dir("Vectors/A8")
file = datadir + "Tria3.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A9")
+picturedir = get_picture_dir("Vectors/A9")
file = datadir + "Quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/B0")
+picturedir = get_picture_dir("Vectors/B0")
file = datadir + "carre_en_quad4_seg2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/B1")
+picturedir = get_picture_dir("Vectors/B1")
file = datadir + "carre_en_quad4_seg2_fields.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/B2")
+picturedir = get_picture_dir("Vectors/B2")
file = datadir + "cube_hexa8_quad4.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
from paravistest import datadir
from presentations import VectorsOnField, EntityType
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
#====================Stage1: Importing MED file====================
print "**** Stage1: Importing MED file"
print 'Import "ResOK_0000.med"...............',
medFile = datadir + "ResOK_0000.med"
-OpenDataFile(medFile)
+pvsimple.OpenDataFile(medFile)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "Default GlyphPos : ", glyph.GlyphType.Center
print "Changing value of line width"
-width = -10
-vectors.LineWidth = width
-print "Negative value -10 : ", vectors.LineWidth
-pvsimple.Render()
+#width = -10
+#vectors.LineWidth = width
+#print "Negative value -10 : ", vectors.LineWidth
+#pvsimple.Render()
width = 10
vectors.LineWidth = width
print "Positive value 10 : ", vectors.LineWidth
pvsimple.Render()
-width = 0
-vectors.LineWidth = width
-print "Zero value 0 : ", vectors.LineWidth
-pvsimple.Render()
+# width = 0
+# vectors.LineWidth = width
+# print "Zero value 0 : ", vectors.LineWidth
+# pvsimple.Render()
width = 2
vectors.LineWidth = width
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E0")
+picturedir = get_picture_dir("Vectors/E0")
file = datadir + "test_55_solid_concentr_dom.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E1")
+picturedir = get_picture_dir("Vectors/E1")
file = datadir + "H_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E2")
+picturedir = get_picture_dir("Vectors/E2")
file = datadir + "cas2_2d_couplage_chess_castem.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E3")
+picturedir = get_picture_dir("Vectors/E3")
file = datadir + "hydro_d10.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E4")
+picturedir = get_picture_dir("Vectors/E4")
file = datadir + "champc.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E5")
+picturedir = get_picture_dir("Vectors/E5")
file = datadir + "hydro_sea_alv.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E6")
+picturedir = get_picture_dir("Vectors/E6")
file = datadir + "toto.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E7")
+picturedir = get_picture_dir("Vectors/E7")
file = datadir + "couplex_alain.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E8")
+picturedir = get_picture_dir("Vectors/E8")
file = datadir + "KCOUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E9")
+picturedir = get_picture_dir("Vectors/E9")
file = datadir + "test_hydro.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F1")
+picturedir = get_picture_dir("Vectors/F1")
file = datadir + "ml.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F2")
+picturedir = get_picture_dir("Vectors/F2")
file = datadir + "T_COUPLEX1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F3")
+picturedir = get_picture_dir("Vectors/F3")
file = datadir + "test_hydro_darcy4_out.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F4")
+picturedir = get_picture_dir("Vectors/F4")
file = datadir + "UO2_250ans.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F5")
+picturedir = get_picture_dir("Vectors/F5")
file = datadir + "maill.1.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F6")
+picturedir = get_picture_dir("Vectors/F6")
file = datadir + "maill.0.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F7")
+picturedir = get_picture_dir("Vectors/F7")
file = datadir + "occ4050.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
# Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F8")
+picturedir = get_picture_dir("Vectors/F8")
file = datadir + "maill.2.med"
print " --------------------------------- "
print "file ", file
print " --------------------------------- "
print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
# This case corresponds to: /visu/Vectors/F9 case
# Create Vectors for field of the the given MED file for 10 timestamps%
+import os
import sys
from paravistest import datadir, pictureext, get_picture_dir
-import pvserver as paravis
-from pvsimple import GetActiveSource, GetRenderView, Render
-from presentations import VectorsOnField, hide_all,EntityType,PrsTypeEnum,reset_view,process_prs_for_test
-
-# Create presentations
-myParavis = paravis.myParavis
+from pvsimple import GetActiveSource, GetRenderView, Render, OpenDataFile, UpdatePipeline
+from presentations import VectorsOnField, hide_all,EntityType,PrsTypeEnum,reset_view,process_prs_for_test, get_time
picturedir = get_picture_dir("Vectors/F9")
result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
- raise RuntimeError, "Error: can't import file."
+ raise RuntimeError, "Error: can't import file."
else: print "OK"
# Get view
aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
# Create required presentations for the proxy
# CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
colored_str = "_colored"
for i in range(1,11):
hide_all(aView, True)
- aPrs = VectorsOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)
+ aPrs = VectorsOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)
if aPrs is None:
raise RuntimeError, "Presentation is None!!!"
# display only current deformed shape
#display_only(aView,aPrs)
- aPrs.Visibility =1
+ aPrs.Visibility =1
reset_view(aView)
Render(aView)
# Add path separator to the end of picture path if necessery
if not picturedir.endswith(os.sep):
picturedir += os.sep
prs_type = PrsTypeEnum.VECTORS
-
+
# Get name of presentation type
- prs_name = PrsTypeEnum.get_name(prs_type)
+ prs_name = PrsTypeEnum.get_name(prs_type)
f_prs_type = prs_name.replace(' ', '').upper()
# Construct image file name
pic_name = picturedir + aFieldName+colored_str + "_" + str(i) + "_" + f_prs_type + "." + pictureext
# Show and record the presentation
process_prs_for_test(aPrs, aView, pic_name)
-
import os
from paravistest import datadir, pictureext, get_picture_dir
import presentations
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/A0")
# 1. Import MED file
print 'Importing "hydro_sea_alv.med"...',
file_path = datadir + "hydro_sea_alv.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
presentations.process_prs_for_test(cutlines, pvsimple.GetRenderView(), pic_path)
nb_lines = len(cutlines.Input.SliceOffsetValues)
print "Number of lines = ", nb_lines
-
-
-
-
-
-
-
-
import time
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/A1")
med_file_path = datadir + "fra1.med"
pic_path = os.path.join(picturedir, "A1." + pictureext)
# 1. Import MED file
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Create mesh
-mesh = MeshOnEntity(med_reader, "LE_VOLUME", EntityType.CELL)
+mesh = MeshOnEntity(med_reader, "LE VOLUME", EntityType.CELL)
mesh.Representation = 'Surface With Edges'
# 3. Display mesh and make snapshot
import time
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/A2")
-med_file_path = datadir + "carre_MIXTE_0000_v3.0.6.med"
+med_file_path = datadir + "carre_MIXTE_0000.med"
pic_path = os.path.join(picturedir, "A2." + pictureext)
print "BREAKPOINT_1"
# 1. Import MED file
print 'Importing "carre_MIXTE_0000.med"...',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
import time
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
med_file_path = datadir + "hexa_28320_ELEM.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Create vectors
reset_view()
time.sleep(1)
-vectors.Input.SetScaleFactor = 0.005
+#vectors.Input.SetScaleFactor = 0.005
display_only(vectors)
reset_view()
time.sleep(1)
-vectors.Input.SetScaleFactor = 0.002
-display_only(vectors)
-reset_view()
-time.sleep(1)
+#vectors.Input.SetScaleFactor = 0.002
+#display_only(vectors)
+#reset_view()
+#time.sleep(1)
import time
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
med_file_path = datadir + "carre_ELEM_0000.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Create vectors
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
+salome.salome_init()
myStudy = salome.myStudy
myStudyManager = salome.myStudyManager
save_file = tmp_dir + "/TimeStamps_save.hdf"
print "Save to file ", save_file
-paravis.OpenDataFile(data_file)
+pvsimple.OpenDataFile(data_file)
myStudyManager.SaveAs(save_file, myStudy, 0)
myStudyManager.Close(myStudy)
+
openedStudy = myStudyManager.Open(data_file)
myStudyManager.Close(openedStudy)
import os
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/A6")
med_file_path = datadir + "fra.med"
# 1. Import MED file
print 'Importing "fra.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "Error"
mesh.Representation = 'Wireframe'
-
+
pic_path = os.path.join(picturedir, mesh_name + "_Cell." + pictureext)
pic_path = re.sub("\s+","_", pic_path)
print "Save picture ", pic_path
process_prs_for_test(mesh, pvsimple.GetRenderView(), pic_path)
-
-
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/A7")
med_file_path = datadir + "hexa_28320_ELEM.med"
-CreatePrsForFile(my_paravis, med_file_path, [PrsTypeEnum.MESH], picturedir, pictureext)
-CreatePrsForFile(my_paravis, med_file_path, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
-CreatePrsForFile(my_paravis, med_file_path, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(med_file_path, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(med_file_path, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(med_file_path, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
from paravistest import datadir, get_picture_dir, pictureext
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/A9")
# 1. Step1: Import MED file
print "**** Step1: Importing MED file"
print 'Import "sortie_med_volumique.med"...............',
-file_path = datadir + "sortie_med_volumique_v3.0.6.med"
-OpenDataFile(file_path)
+file_path = datadir + "sortie_med_volumique.med"
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
else:
reset_view(view)
print "OK"
-
-mesh_name = 'Volume_fluide'
+
+mesh_name = 'Volume fluide'
cell_entity = EntityType.CELL
node_entity = EntityType.NODE
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/B1")
# 1. Import MED file
med_file_path = datadir + "resultat.01.med"
print 'Importing "resultat.01.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
shor_name = group.split('/')[-1]
print "group: ", shor_name
prs = MeshOnGroup(med_reader, extGrp, group)
-
- if prs is None :
+
+ if prs is None :
print "FAILED!!! Created presentation is None!!!"
errors += 1
else :
print "Presentation was created!"
pic_path = os.path.join(picturedir, shor_name.strip().split("_")[0]+str(i)+"."+pictureext)
- process_prs_for_test(prs, pvsimple.GetRenderView(), pic_path)
-
+ process_prs_for_test(prs, pvsimple.GetRenderView(), pic_path)
+
# check errors
if errors == 1:
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
med_file_path = datadir + "MEDfileForStructuredMesh.med"
print 'Importing "MEDfileForStructuredMesh.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
import os
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/C4")
# 1. Import MED file
med_file_path = datadir + "forma01f.resu.med"
print 'Importing "forma01f.resu.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
for scale in scales:
for i in range(len(fields)):
- print "Field: ", fields[i], "; Scale: ", scale
+ print "Field: ", fields[i], "; Scale: ", scale
presentation = None
try:
presentation = DeformedShapeAndScalarMapOnField(med_reader, entities[i], fields[i], 1)
except ValueError as e:
print "Error:", e
-
- if presentation is not None:
- if scale is not None:
- presentation.Input.ScaleFactor = scale
+
+ if presentation is not None:
+ if scale is not None:
+ presentation.Input.ScaleFactor = scale
# save picture
pic_path = os.path.join(picturedir, "MAIL_" + entities_str[i] + "_" + fields[i] + "_" + str(scale) + "_." + pictureext)
process_prs_for_test(presentation, view, pic_path)
else:
- print "FAILED! Created presentation is None!!!"
+ print "FAILED! Created presentation is None!!!"
import time
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
medPath = datadir
class DisplayManager:
self.meshName = None
self.myData = None
self.myMesh = None
- self.myEntity = None
-
+ self.myEntity = None
+
def loadData(self, medFile, meshName=None, myEntity=EntityType.NODE):
self.medFile = medFile
- OpenDataFile(medFile)
+ pvsimple.OpenDataFile(medFile)
self.myData = pvsimple.GetActiveSource()
self.myEntity = myEntity
if meshName is not None:
def getData(self):
return self.myData
-
+
def checkData(self):
if ( self.myData is None or self.myMesh is None ):
return False
def DisplayMap(self, aView, aMap, title, aDelay=0):
if aMap is None:
- print "Null scalar map is created"
+ print "Null scalar map is created"
display_only(aMap, aView)
reset_view(aView)
time.sleep(aDelay)
if not self.checkData(): return
aMap = DeformedShapeOnField(self.myData, self.myEntity, fieldName, iteration)
if aMap is not None:
- aMap.ColorArrayName = fieldName
+ aMap.ColorArrayName = ("CELLS", fieldName)
self.DisplayMap(aView, aMap, title, delay)
def Vectors(self, aView, fieldName, iteration, title , delay=0):
if not self.checkData(): return
aMap = VectorsOnField(self.myData, self.myEntity, fieldName, iteration)
if aMap is not None:
- aMap.ColorArrayName = fieldName
+ aMap.ColorArrayName = ("CELLS", fieldName)
self.DisplayMap(aView, aMap, title, delay)
def IsoSurfaces(self, aView, fieldName, iteration, title , delay=0):
path = None
if aPath is not "":
print "Define save path"
- path = aPath
-
+ path = aPath
+
scene = pvsimple.AnimateReader(theObj, aView, path)
-
+
print "Start Animation"
scene.Duration = theDuration
# >>> Create curve
myView = CreateXYPlotView()
myCurve = Show(table, view = myView)
-
+
def createView():
aView=pvsimple.GetRenderView()
return aView
import os
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/C6")
# 1. Import MED file
med_file_path = datadir + "relachement_brutal_sans_dudg_gauss.med"
print 'Importing "relachement_brutal_sans_dudg_gauss.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "Created presentation is None!!!"
pic_path = os.path.join(picturedir, "GaussPoints_" + mesh_name + "_" + field_name + "_" + str(timestamp) + "." + pictureext)
process_prs_for_test(gauss_points, pvsimple.GetRenderView(), pic_path)
-
-
import sys
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/C7")
# 1. Import MED file
med_file_path = datadir + "Bug583-Quadratique.resu.med"
print 'Importing "Bug583-Quadratique.resu.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "Creation of the GaussPoints presentation.. Field: ", field, "; Iteration: 1"
presentation = GaussPointsOnField1(med_reader, EntityType.CELL, field, 1)
if presentation is None:
- print "ERROR!!! GaussPoints presentation wasn't created for the ", field, " field!!!"
+ print "ERROR!!! GaussPoints presentation wasn't created for the ", field, " field!!!"
error += 1
else:
pic_path = os.path.join(picturedir, "GaussPoints_" + mesh_name + "_" + field + "." + pictureext)
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
# 1. Import table from file
xy_rep.AttributeType = 'Row Data'
xy_rep.UseIndexForXAxis = 0
xy_rep.SeriesVisibility = ['0', '0']
-
+
pvsimple.Render()
-
+
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
med_file_path = datadir + "TimeStamps.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 2. Creation of presentations
mesh_on_cells = MeshOnEntity(med_reader, "dom", EntityType.CELL)
-if mesh_on_cells is None :
+if mesh_on_cells is None :
raise RuntimeError, "Mesh presentation is None!!!"
view = pvsimple.GetRenderView()
mesh_on_cells.Representation = 'Wireframe'
scalar_map = ScalarMapOnField(med_reader, EntityType.NODE, "vitesse", 1)
-if scalar_map is None :
+if scalar_map is None :
raise RuntimeError, "ScalarMap presentation is None!!!"
scalar_map.Visibility = 1
import time
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/D0")
# Aux method
def get_group_full_name(source, group_name):
result_name = group_name
-
- full_names = source.Groups.Available
+
+ #full_names = source.Groups.Available
+ full_names = get_group_names(source)
for name in full_names:
if name.endswith(group_name):
result_name = name
# 1. Import of the "Bug619-result_calcul_OCC.med" file
med_file_path = datadir + "Bug619-result_calcul_OCC.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
for group_name in groups:
extract_group = pvsimple.ExtractGroup(med_reader)
- extract_group.Groups = [get_group_full_name(med_reader, group_name)]
+ #extract_group.Groups = [get_group_full_name(med_reader, group_name)]
+ extract_group.AllGroups = [get_group_full_name(extract_group, group_name)]
extract_group.UpdatePipeline()
-
+
scalar_map = ScalarMapOnField(extract_group, EntityType.CELL, field_name, 1)
if scalar_map is None :
raise RuntimeError, "ScalarMap presentation on '" + group_name + "' group is None!!!"
pic_path = os.path.join(picturedir, "npal18711_" + group_name + "." + pictureext)
process_prs_for_test(scalar_map, view, pic_path)
-
import os
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
picturedir = get_picture_dir("bugs/D1")
# 1. Import of the "Bug829_resu_mode.med" file at first time
med_file_path = datadir + "Bug829_resu_mode.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
raise RuntimeError, "Bug829_resu_mode.med was not imported!!!"
for i in range(1,11):
presentation = DeformedShapeAndScalarMapOnField(med_reader1, EntityType.NODE, "MODES___DEPL____________________", i)
- if presentation is None :
+ if presentation is None :
raise RuntimeError, "Presentation is None!!!"
pic_path = os.path.join(picturedir, "npal19999_1_time_stamp_" + str(i) + "." + pictureext)
print "WARNING!!! Pictures have different sizes!!!"
errors += 1
for i in range(1,11):
- picture_name = "npal19999_1_time_stamp_" + str(i) + "." + pictureext
- print "Picture: " + picture_name + "; size: " + str(sizes[i-1])
+ picture_name = "npal19999_1_time_stamp_" + str(i) + "." + pictureext
+ print "Picture: " + picture_name + "; size: " + str(sizes[i-1])
raise RuntimeError
# 3. Import of the "Bug829_resu_mode.med" file at second time
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader2 = pvsimple.GetActiveSource()
if med_reader2 is None:
raise RuntimeError, "Bug829_resu_mode.med was not imported second time!!!"
for i in range(1,11):
presentation = DeformedShapeAndScalarMapOnField(med_reader2, EntityType.NODE, "MODES___DEPL____________________", 11-i)
- if presentation is None :
+ if presentation is None :
raise RuntimeError, "Presentation is None!!!"
pic_path = os.path.join(picturedir, "npal19999_2_time_stamp_" + str(i) + "." + pictureext)
print "WARNING!!! Pictures have different sizes!!!"
errors += 1
for i in range(1,11):
- picture_name = "npal19999_2_time_stamp_" + str(i) + "." + pictureext
- print "Picture: " + picture_name + "; size: " + str(sizes[i-1])
+ picture_name = "npal19999_2_time_stamp_" + str(i) + "." + pictureext
+ print "Picture: " + picture_name + "; size: " + str(sizes[i-1])
raise RuntimeError
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import of the "LinearStaticsSTA9.resu.med" file
med_file_path = datadir + "LinearStaticsSTA9.resu.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "LinearStaticsSTA9.resu.med was not imported!!!"
# Creation of colored "DeformedShape" presentations, based on time stamps of "RESU_DEPL" field
presentation = DeformedShapeOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1, is_colored=True)
-if presentation is None :
+if presentation is None :
raise RuntimeError, "DeformedShapeOnField Presentation is None!!!"
display_only(presentation, view)
reset_view(view)
-
+
# Creation of colored "Vectors" presentations, based on time stamps of "RESU_DEPL" field
presentation = VectorsOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1, is_colored=True)
-if presentation is None :
+if presentation is None :
raise RuntimeError, "Vectors Presentation is None!!!"
display_only(presentation, view)
# Creation of colored "DeformedShapeAndScalarMap" presentations, based on time stamps of "RESU_DEPL" field
presentation = DeformedShapeAndScalarMapOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1)
-if presentation is None :
+if presentation is None :
raise RuntimeError, "DeformedShapeAndScalarMap Presentation is None!!!"
display_only(presentation, view)
# Creation of colored "CutPlanes" presentations, based on time stamps of "RESU_DEPL" field
presentation = CutPlanesOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1)
-if presentation is None :
+if presentation is None :
raise RuntimeError, "CutPlanes Presentation is None!!!"
display_only(presentation, view)
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
# Import table from file
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
med_file_path = datadir + "fra.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Creation of CutSegment presentations, based on time stamps of "VITESSE" field
cut_segment1 = CutSegmentOnField(med_reader, EntityType.NODE, "VITESSE", 1,
point1, point2)
if cut_segment1 == None:
- raise RuntimeError, "ERROR!!! The first CutSegment presentation is not built!"
+ raise RuntimeError, "ERROR!!! The first CutSegment presentation is not built!"
# 3. Creation of CutSegment presentations, based on time stamps of "TAUX_DE_VIDE" field
point1 = [0, 0, 1]
import os
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. MED file import
print 'Importing "Fields_group3D.med"........',
med_file_path = datadir + "Fields_group3D.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "FAILED"
else:
print "OK"
-med_reader.Groups = ['GROUP/mailles_MED/OnCell/box_1']
+extract_group = pvsimple.ExtractGroup(med_reader)
+extract_group.UpdatePipelineInformation()
+extract_group.AllGroups = ['GRP_box_1']
display_only(scalarmap, view)
reset_view(view)
-
import time
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
sleep_delay = 1
-my_paravis = paravis.myParavis
# 1. MED file import
print 'Import "ResOK_0000.med"...............',
med_file_path = datadir + "ResOK_0000.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "ResOK_0000.med was not imported!!!"
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal'}
# 1. TimeStamps.med import
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "NbSurfaces": 444}
# 1. TimeStamps.med import
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal'}
# 1. TimeStamps.med import
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.333, "ColorArray": "", "ColorComponents": [0.111, 0.222, 0.333]}
# 1. TimeStamps.med import
deformedshape.LookupTable.UseLogScale = settings["UseLogScale"]
deformedshape.Input.ScaleFactor = settings["Scale"]
-deformedshape.ColorArrayName = ''
+deformedshape.ColorArrayName = (None, '')
deformedshape.AmbientColor = settings["ColorComponents"]
bar = get_bar()
errors += 1
# Color array name
-array_name = recreated_deformedshape.ColorArrayName
+array_name = recreated_deformedshape.ColorArrayName[1]
if array_name != settings["ColorArray"]:
print "ERROR!!! Color array name of presentation is incorrect: ", array_name, " instead of ", settings["arrayName"]
errors += 1
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 1), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation"}
# 1. TimeStamps.med import
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "ScaleFactor": 0.25, "NbContours": 4}
# 1. TimeStamps.med import
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.12929}
# 1. TimeStamps.med import
if abs(cur_range_max - range_max) > tolerance:
print "ERROR!!! Maximum value of range of presentation is incorrect: ", cur_range_max, " instead of ", range_max
errors += 1
-
+
# Scale factor
scale = recreated_prs.Input.ScaleFactor
if abs(scale - settings["Scale"]) > tolerance:
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
# StreamLines settings
settings = {'name': 'myStreamLines',
'IntegrationDirection': 'FORWARD',
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.333, "ColorArray": "", "ColorComponents": [0.111, 0.222, 0.333], "LineWidth": 2, "GlyphType": 'Cone', "GlyphPos": [-0.5, 0.0, 0.0]}
# 1. TimeStamps.med import
vectors.LookupTable.UseLogScale = settings["UseLogScale"]
vectors.Input.SetScaleFactor = settings["Scale"]
-vectors.ColorArrayName = ''
+vectors.ColorArrayName = (None, '')
vectors.AmbientColor = settings["ColorComponents"]
vectors.LineWidth = settings["LineWidth"]
errors += 1
# Color array name
-array_name = recreated_vectors.ColorArrayName
+array_name = recreated_vectors.ColorArrayName[1]
if array_name != settings["ColorArray"]:
print "ERROR!!! Color array name of presentation is incorrect: ", array_name, " instead of ", settings["arrayName"]
errors += 1
from paravistest import datadir, delete_with_inputs
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Orientation_BasePlane": [Orientation.ZX, 22, 33], "Orientation_CuttingPlanes": [Orientation.YZ, 44, 55], "Displacement": 0.1, "Displacement2": 0.2, "BasePlane_Position": 0.1, "NbLines": 3}
# 1. TimeStamps.med import
from paravistest import datadir
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
OpenDataFile(file_path)
for name in prs_names:
print "Creation of ", name, " presentation..."
if name == "GaussPoints":
- prs = GaussPointsOnField(med_reader, EntityType.CELL, "pression", 1)
- pass
- else:
- prs = eval(name + "OnField(med_reader, EntityType.NODE, med_field, 1)")
+ prs = GaussPointsOnField(med_reader, EntityType.CELL, "pression", 1)
+ pass
+ else:
+ prs = eval(name + "OnField(med_reader, EntityType.NODE, med_field, 1)")
if prs is None:
print "ERROR!!! ", name," presentation wasn't created..."
errors += 1
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
# Import table from file
xls_file = tablesdir + "tables_test.xls"
table_reader = TableReader(FileName=xls_file)
for name in tables:
if name not in available_tables:
- count_not += 1
- print "ERROR!!! Table with ", name, " name was not found"
+ count_not += 1
+ print "ERROR!!! Table with ", name, " name was not found"
errors += 1
else:
print "\"" + name + "\" table was found..."
if count_not > 0:
print "ERROR!!! "+str(count_not)+" table(s) was(were) not found!!!"
- errors += 1
+ errors += 1
if errors > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
import paravistest
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
# 1. Table creation
title = "My Table"
errors = 0
print "ERROR!!! The script value is incorrect:"
print table.Script
errors += 1
-
+
if errors > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
import paravistest
from presentations import *
-import pvserver as paravis
from pvsimple import *
-my_paravis = paravis.myParavis
-
# 1. Table creation
title = "My Table"
errors = 0
print "ERROR!!! The script value is incorrect:"
print table.Script
errors += 1
-
+
if errors > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
import sys
import salome
-class SalomeSession(object):
- def __init__(self):
- import runSalome
- import sys
- sys.argv += ["--show-desktop=1"]
- sys.argv += ["--splash=0"]
- sys.argv += ["--modules=MED,VISU,PARAVIS"]
- clt, d = runSalome.main()
- port = d['port']
- self.port = port
- return
- pass
+# class SalomeSession(object):
+# def __init__(self):
+# import runSalome
+# import sys
+# sys.argv += ["--show-desktop=1"]
+# sys.argv += ["--splash=0"]
+# sys.argv += ["--modules=MED,VISU,PARAVIS"]
+# clt, d = runSalome.main()
+# port = d['port']
+# self.port = port
+# return
+# pass
# 1. Opening saved study
# run Salome
-salome_session = SalomeSession()
+#salome_session = SalomeSession()
salome.salome_init()
+salome.myStudyManager.Close(salome.myStudy)
file_name = os.path.join(os.path.dirname(sys.argv[0]), "test1.hdf")
opened_study = salome.myStudyManager.Open(file_name)
salome.myStudy = opened_study
-# 2. Load PARAVIS module
-import pvserver as paravis
-
# 3. Find IsoSurfaces
from pvsimple import *
obj = FindSource('IsoSurfaces')
# 4. Remove med reader object and all other sources
for obj in GetSources().values():
Delete(obj)
-
+
# 5. Check results
obj = FindSource('ScalarMap')
if obj is not None:
import os
from paravistest import datadir, pictureext, get_picture_dir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
picturedir = get_picture_dir("imps/A1")
def set_prs_colored(prs, proxy, entity, field_name, vector_mode, timestamp_nb):
# 1. Import of the "Penta6.med" file
print 'Import "Penta6.med" file........',
file_path = datadir + "Penta6.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "Penta6.med was not imported!!!"
import time
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
sleep_delay = 2
med_file = "pointe.med"
# 1. Import MED file
print 'Import "pointe.med"....................',
med_file_path = datadir + med_file
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
scalar_map.Representation = 'Point Sprite'
data_range = get_data_range(med_reader, entity,
- field_name, 'Magnitude')
+ field_name, 'Magnitude')
mult = abs(0.1 / data_range[1])
scalar_map.RadiusScalarRange = data_range
scalar_map.RadiusTransferFunctionEnabled = 1
scalar_map.RadiusProportionalFactor = mult
pvsimple.Render()
-
-
+time.sleep(sleep_delay)
from paravistest import datadir, compare_lists
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-error =0
+error = 0
# Import MED file
file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "Error!!! Default Scalar Bar Orientation is wrong - not vertical but ", scalarmap.Orientation
error = error+1
-error = error + compare_lists(bar.Position, [0.87, 0.25])
-error = error + compare_lists(bar.Position2, [0.13, 0.5])
+error = error + compare_lists(bar.Position, [0.85, 0.05])
+error = error + compare_lists(bar.Position2, [0.12, 0.43])
if error > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
error = 0
# Import MED file
med_file_path = datadir + "fra.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
error = error+1
# Create Mesh
-mesh_name = 'LE_VOLUME'
+mesh_name = 'LE VOLUME'
cell_entity = EntityType.CELL
mesh = MeshOnEntity(med_reader, mesh_name, cell_entity)
if mesh is None:
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
error =0
# Import MED file
file_path = datadir + "Bug891_Box.resu.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
if scalarmap is None:
print "Error!!! ScalarMap is not created"
error = error+1
-
+
scalarmap.Visibility = 1
reset_view()
if error > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
-
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
# Import CSV table
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# Import MED file
file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
entity = EntityType.NODE
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
else:
print "OK"
+
+def _extract_all_arrays_of_type(array_type, source):
+ import re
+ #sep = source.GetProperty("Separator").GetData() # "@@][@@"
+ arrays = source.AllArrays
+ result = []
+ for arr in arrays:
+ match = re.search("ComSup[^/]*/(.*)@@\]\[@@(.*)", arr)
+ field_name = match.group(1)
+ arr_typ = match.group(2)
+ if arr_typ == array_type:
+ result += [field_name]
+ pass
+ return result
+#
+
+def _extract_cell_arrays(source):
+ return _extract_all_arrays_of_type("P0", source)
+#
+def _extract_point_arrays(source):
+ return _extract_all_arrays_of_type("P1", source)
+#
+
# 2. Get some information on the MED file
-fields_on_nodes = med_reader.PointArrays
+#fields_on_nodes = med_reader.PointArrays
+fields_on_nodes = _extract_point_arrays(med_reader)
print "Field names on NODE: ", fields_on_nodes
is_ok = len(fields_on_nodes) == 2 and ("temperature" in fields_on_nodes) and ("vitesse" in fields_on_nodes)
if not is_ok:
raise RuntimeError, "=> Error in PointArrays property"
-fields_on_cells = med_reader.CellArrays
+#fields_on_cells = med_reader.CellArrays
+fields_on_cells = _extract_cell_arrays(med_reader)
print "Field names on CELL: ", fields_on_cells
is_ok = len(fields_on_cells) == 1 and ("pression" in fields_on_cells)
if not is_ok:
raise RuntimeError, "=> Error in CellArrays property"
-timestamps = med_reader.TimestepValues.GetData()
+timestamps = med_reader.TimestepValues.GetData()[1:]
print "timestamps: ", timestamps
if timestamps != [17.030882013694594]:
raise RuntimeError, "=> Wrong TimestepValues property value"
-
-
-
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
# 1. Import MED file
print "**** Step1: Import MED file"
print 'Import "ResOK_0000.med"...',
file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "Fields_group3D.med"...............',
file_path = datadir + "Fields_group3D.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
from math import radians
-my_paravis = paravis.myParavis
-
cell_entity = EntityType.CELL
node_entity = EntityType.NODE
print 'Import "fra.med"....................',
file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
normal = get_normal_by_orientation(orient, x_angle, radians(y_angle))
slice_filter.SliceType.Normal = normal
pvsimple.Render()
-
+
print "OK"
print "View Point (FRONT)..................",
pvsimple.Render()
print "OK"
-print "View Point (BACK)...................",
+print "View Point (BACK)...................",
view.CameraPosition = [-2.0343961849843457, 0.03425, 0.541]
pvsimple.Render()
print "OK"
pvsimple.Render()
print "OK"
-print "View Point (RIGHT) .................",
+print "View Point (RIGHT) .................",
view.CameraPosition = [0.2055, 2.2741461849843456, 0.541]
pvsimple.Render()
print "OK"
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
cell_entity = EntityType.CELL
node_entity = EntityType.NODE
print 'Import "Hexa8.med"....................',
file_path = datadir + "Hexa8.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
else:
print "OK"
-mesh_name1 = 'Maillage_MED_HEXA8'
+mesh_name1 = 'Maillage MED_HEXA8'
scalar_field = 'scalar field'
vectoriel_field = 'vectoriel field'
view = pvsimple.GetRenderView()
display_only(scalarmap1, view)
reset_view(view)
print "OK"
-
+
print "Creating Vectors......................",
vectors1 = VectorsOnField(med_reader1, cell_entity, vectoriel_field, 1)
if vectors1 is None:
print "Editing Vectors.......................",
glyph = vectors1.Input
-glyph.SetScaleFactor = 2
+glyph.ScaleFactor = 2
vectors1.LineWidth = 2
glyph.GlyphType.Center = [0.5, 0.0, 0.0] # TAIL position
print "OK"
print 'Importing file "cube_hexa8_quad4.med".',
file_path = datadir + "cube_hexa8_quad4.med"
mesh_name2 = 'CUBE_EN_HEXA8_QUAD4'
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader2 = pvsimple.GetActiveSource()
if med_reader2 is None:
print "FAILED"
else:
glyph2 = vectors2.Input
- glyph2.SetScaleFactor = 0.2
+ glyph2.ScaleFactor = 0.2
vectors2.LineWidth = 2
glyph2.GlyphType.Center = [0.5, 0.0, 0.0] # TAIL position
print "OK"
print 'Importing file "Penta6.med"...........',
file_path = datadir + "Penta6.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader3 = pvsimple.GetActiveSource()
if med_reader3 is None:
print "FAILED"
else:
print "OK"
-
+
print "Creating Cut Planes...................",
cutplanes1 = CutPlanesOnField(med_reader3, cell_entity, scalar_field, 1)
if cutplanes1 is None:
print "Displaying Vectors (l.w.=2, s.f.=1.5).",
glyph3 = vectors3.Input
-glyph3.SetScaleFactor = 1.5
+glyph3.ScaleFactor = 1.5
vectors3.LineWidth = 2
display_only(vectors3, view)
print "OK"
print 'Importing "Quad4.med".................',
file_path = datadir + "Quad4.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader4 = pvsimple.GetActiveSource()
if med_reader4 is None:
print 'Importing "Tetra4.med"................',
file_path = datadir + "Tetra4.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader5 = pvsimple.GetActiveSource()
if med_reader5 is None:
print "OK"
vectors5.LineWidth = 3
-vectors5.Input.SetScaleFactor = 2
+vectors5.Input.ScaleFactor = 2
print "Displaying Scalar Map and Vectoes.....",
hide_all(view)
print 'Importing "Tria3.med".................',
file_path = datadir + "Tria3.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader6 = pvsimple.GetActiveSource()
if med_reader6 is None:
glyph = vectors6.Input
glyph.GlyphType.Center = [0.5, 0.0, 0.0] # TAIL position
vectors6.LineWidth = 2
- glyph.SetScaleFactor = 1
+ glyph.ScaleFactor = 1
display_only(vectors6, view)
print "OK"
from paravistest import datadir
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
cell_entity = EntityType.CELL
node_entity = EntityType.NODE
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
pvsimple.Render()
## Note: no special property for edge color in PARAVIS; skip link color changing ( SetLinkColor()/GetLinkColor() methods )
-
from paravistest import datadir, compare_lists
from presentations import *
-import pvserver as paravis
import pvsimple
-my_paravis = paravis.myParavis
-
error=0
# 1. Import MED file
file_path = datadir + "TimeStamps.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None: