<div dir="ltr"><div><div><div><div><div>Dear All,<br><br></div>I suspect this question
has been answered many times in this forum but I had trouble finding the
answer. Say I have generated several data sets from a transient
(multiple-time step) multiphysics simulation. Each one of my data sets
if of exactly the same geometry but it may vary in the parameters and
the number of time steps. I open one of these data sets (they are
obtained from Elmer and are in the form of vtu files), set up a filter
pipeline, and a number of visuals in <span class="">paraview</span>. Now I want to repeat the same steps on all the data sets but everything I have tried fails in some way. <br><br></div><div>The
pipeline consists of a "slice" of the data and three "Probe Location"
filters each one with a "plot selection over time" filter for the line
plots (if there is a better way to plot a local scalar quantity over
time please let me know)<br></div><div><br>Here is what I have found so far:<br><br></div>1.
Save the state. Saving the state gets most of what I want done with one
exception. Upon loading a state file I get asked to fix the path to the
data file and this is how I change the data set that I am probing.
However, if the data sets have a larger number of steps than the
original saved one, I cannot see the rendering of the extra steps in <span class="">paraview</span>. For example, if I'm trying to see timestep 100 <span class="">paraview</span> only shows the last timestep in the original simulation (59). This one may or may not be an actual bug in paraview.<br><br></div>2.
Create a custom filter. I have managed to do this with the three probes
and their plots over time. The problem is that all the details about
the variables plotted, legend name, and color of the line plots are lost. This made me suspect that this is not the
functionality I am looking for or that I am not doing it correctly.<br><br></div>3.
The final approach I tried is to start a trace before doing all the
manipulations and then running that trace as a script or as a macro.
When I run it from the python shell I get the following traceback:<br>"<span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)">Traceback (most recent call last):</span>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> File "<string>", line 541, in <module></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> File "C:\Users\sturgmancohen\<span class="">paraview</span>\<span class="">ParaView</span> 4.3.1\lib\<span class="">paraview</span>-4.3\site-packages\<span class="">paraview</span>\servermanager.py", line 305, in __setattr__</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> setter(self, value)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> File "C:\Users\sturgmancohen\<span class="">paraview</span>\<span class="">ParaView</span> 4.3.1\lib\<span class="">paraview</span>-4.3\site-packages\<span class="">paraview</span>\servermanager.py", line 2474, in setProperty</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> return self.SetPropertyWithName(propName, value)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> File "C:\Users\sturgmancohen\<span class="">paraview</span>\<span class="">ParaView</span> 4.3.1\lib\<span class="">paraview</span>-4.3\site-packages\<span class="">paraview</span>\servermanager.py", line 360, in SetPropertyWithName</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> prop.SetData(arg)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> File "C:\Users\sturgmancohen\<span class="">paraview</span>\<span class="">ParaView</span> 4.3.1\lib\<span class="">paraview</span>-4.3\site-packages\<span class="">paraview</span>\servermanager.py", line 788, in SetData</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"> raise RuntimeError("This property requires %d values." % self.GetNumberOfElements())</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)">RuntimeError: This property requires 0 values."</span></p><p style="margin:0px;text-indent:0px"><br><span style="font-family:"Courier";font-size:8.25pt;color:rgb(255,0,0)"></span></p>And when I run it as a Macro, it does not reach the final state of the intended visualization. Any ideas?<br><br><br>Thanks in advance.<br><br></div>Salomon<br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Salomon Turgman Cohen<br>Assistant Professor<br>Chemical Engineering<br>Kettering University<br>(919) 341-9650</div></div>
</div>