<HTML>
<HEAD>
<TITLE>Re: [Paraview] Problem with temporal filter and multi-block data</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am confused about the order of operations you are doing to get the error (since it apparently only happens if you do things in a certain way). Are you loading the data, attaching your temporal filter to the reader, and then attaching the extract block to your temporal filter? Or are you loading the data, attaching extract block to the reader, and then attaching your temporal filter to extract block? Or are you loading the data, attaching the temporal filter to the reader, and then attaching extract block to the reader too?<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 5/29/09 3:32 AM, "Christian Wellmann" <<a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi all,<BR>
<BR>
I use paraview to view results of transient combined finite discrete<BR>
element analyses.<BR>
My *.pvd input files look like this:<BR>
<BR>
<?xml version="1.0"?><BR>
<VTKFile type="Collection" version="0.1" byte_order="LittleEndian"><BR>
<Collection><BR>
<DataSet timestep="0,0000000000e+00" group="0" part="0"<BR>
file="se_relax_p_000000000.vtp"/><BR>
<DataSet timestep="0,0000000000e+00" group="0" part="1"<BR>
file="se_relax_c_000000000.vtp"/><BR>
<DataSet timestep="0,0000000000e+00" group="0" part="2"<BR>
file="se_relax_r_000000000.vtp"/><BR>
<DataSet timestep="0,0000000000e+00" group="0" part="3"<BR>
file="se_relax_f_000000000.vtu"/><BR>
<DataSet timestep="1,0000000000e-03" group="0" part="0"<BR>
file="se_relax_p_000002000.vtp"/><BR>
<DataSet timestep="1,0000000000e-03" group="0" part="1"<BR>
file="se_relax_c_000002000.vtp"/><BR>
.<BR>
.<BR>
.<BR>
<BR>
The results are stored for each part (DE, contact, rigid-boundaries,<BR>
FE) and time step in a single *.vtp / *.vtu file.<BR>
I can load the *.pvd file into paraview apply non-temporal filters to<BR>
the single parts and animate without problems.<BR>
Now I wrote a temporal filter to show the trajectories of data points.<BR>
It requires a time series of datasets<BR>
with constant number of points and generates the trajectories of the<BR>
points as a single PolyData.<BR>
The filter works fine if my input does not consist of multiple parts:<BR>
<BR>
<?xml version="1.0"?><BR>
<VTKFile type="Collection" version="0.1" byte_order="LittleEndian"><BR>
<Collection><BR>
<DataSet timestep="0,0000000000e+00" group="0" part="0"<BR>
file="se_relax_p_000000000.vtp"/><BR>
<DataSet timestep="1,0000000000e-03" group="0" part="0"<BR>
file="se_relax_p_000002000.vtp"/><BR>
<DataSet timestep="2,0000000000e-03" group="0" part="0"<BR>
file="se_relax_p_000004000.vtp"/><BR>
.<BR>
.<BR>
.<BR>
<BR>
But if I load my complete data with multiple parts and apply the<BR>
ExtractBlock filter first to show the<BR>
trajectories for one part only, ParaView complains:<BR>
<BR>
ERROR: In /home/wellmann/program/ParaView-3.4.0/VTK/Filtering/vtkDemandDrivenPipeline.cxx,<BR>
line 822<BR>
vtkCompositeDataPipeline (0x1e6bbc0): Input for connection index 0 on<BR>
input port index 0 for algorithm vtkExtractBlock(0x11f4ddc0) is of<BR>
type vtkTemporalDataSet, but a vtkMultiBlockDataSet is required.<BR>
<BR>
In writing the filter I tried to follow the "Time Dependent Processing<BR>
in a Parallel Pipeline Architecture" paper<BR>
and was geared to the vtkTemporalInterpolation filter. However I am<BR>
not confident about how this temporal<BR>
stuff works out: In my understanding my filter tells the upstream part<BR>
of the pipeline to loop over the requested<BR>
time steps and join the data into a TemporalDataSet that my<BR>
vtkTrajectories filter can work with. Indeed if I connect<BR>
any non temporal filter to the upstream pipeline part (instead of the<BR>
vtkTrajectories filter) I can animate over the time-steps<BR>
so the upstream pipeline is able to provide data sets for each time<BR>
step. Furthermore, as said above, the filter works<BR>
fine if there is no multiblock data as source of the pipeline.<BR>
<BR>
Thanks for any hints, Christian<BR>
(the filter files are attached)<BR>
<BR>
--<BR>
Christian Wellmann<BR>
Institute of Continuum Mechanics<BR>
Leibniz Universitaet Hannover<BR>
Appelstr. 11<BR>
30167 Hannover, Germany<BR>
phone: +49 511 762 2285<BR>
fax: +49 511 762 5496<BR>
email: <a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>