<div>Yet I understand why it&#39;s not possible to work with TemporalDataSet in Paraview. </div>
<div>The output of the PVDReader is a MultiBlockDataSet, and the PVDReader redirect the reader based on the time value. </div>
<div> </div>
<div>... Is it possible to create a programmable source that would be aware of the timestep ?</div>
<div>Or do I have to abandon python and write a reader in the C++ source ?<br><br></div>
<div class="gmail_quote">Le 23 avril 2010 17:15, Aurélien Marsan <span dir="ltr">&lt;<a href="mailto:aur.marsan@gmail.com">aur.marsan@gmail.com</a>&gt;</span> a écrit :<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>ah.... </div>
<div> </div>
<div>So : I use file in format v3d.</div>
<div>For a mesh that contains two blocks, they would be called called block1_timestep1.v3d, block2_timestep1.v3d, block1_timestep2.v3d, block2_timestep2.v3d, etc... </div>
<div> </div>
<div>Actually, I open these v3d_files with a python tool that I have writen, translate them as vtk.vtkStructuredGrid, and write several files on the disk as TimeStep1.vtm, TimeStep2.vtm and Simulation.pvd</div>
<div>But this takes a lot a disk space, and reading/writing takes a lot of time. </div>
<div> </div>
<div>So I would like to open the v3d file directly in paraview.</div>
<div>That&#39;s why I though to use a Programmable Source in order to read all v3d files and create a &quot;Temporal Data Set&quot;.</div>
<div><br> </div>
<div class="gmail_quote">Le 23 avril 2010 16:35, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> a écrit : 
<div>
<div></div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Temporal DataSet! Filters shouldn&#39;t be producing temporal dataset<br>explicitly. Why do you need it?<br>

<div>
<div></div>
<div><br>Utkarsh<br><br>2010/4/23 Aurélien Marsan &lt;<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>&gt;:<br>&gt; thanks !<br>&gt; And so, could you add &quot;Temporal Data Set&quot; to this commit ?<br>
&gt; Le 23 avril 2010 16:28, Utkarsh Ayachit &lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt; a<br>&gt; écrit :<br>&gt;<br>&gt;&gt; I&#39;ve just committed a change to ParaView to allow setting output type<br>
&gt;&gt; to be a multiblock dataset.<br>&gt;&gt;<br>&gt;&gt; Commit id: c7472789ba86210e190f398a90eebc081a66d40c<br>&gt;&gt;<br>&gt;&gt; Utkarsh<br>&gt;&gt;<br>&gt;&gt; 2010/4/23 Aurélien Marsan &lt;<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; I found a solution to do what I wanted to do. Not really elegant, but it<br>&gt;&gt; &gt; works.<br>&gt;&gt; &gt; The best would be to encode the reader in the source code.... but I<br>&gt;&gt; &gt; don&#39;t<br>
&gt;&gt; &gt; know how to do, and have no time for now.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; First, I use the tool Source -&gt; Data Object Generator, and create a<br>&gt;&gt; &gt; MultiBlockDataSet.<br>&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; MB{}<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Then, I use a Programmable Filter, and set the Output Data Type &quot;Same as<br>&gt;&gt; &gt; Input&quot;.<br>&gt;&gt; &gt; So I can use this script.<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; from Moduleperso import *<br>&gt;&gt; &gt;&gt; m = MultiBlocFromV3D(........)       # This is a personnal reader in<br>&gt;&gt; &gt;&gt; python, that returns a vtkMultiBlockDataSet<br>
&gt;&gt; &gt;&gt; self.GetOutputDataObject(0).DeepCopy(m)<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Hope this will help some people who don&#39;t want to go in source code...<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Le 23 avril 2010 14:07, Aurélien Marsan &lt;<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>&gt; a écrit :<br>
&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; Maybe I have found a way to avoid the Programmable Source...<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; But Is it possible to export an object created in the python shell<br>&gt;&gt; &gt;&gt; directly into the pipeline of the paraview interface ?<br>
&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; Le 22 avril 2010 15:36, Aurélien Marsan &lt;<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>&gt; a écrit<br>&gt;&gt; &gt;&gt; :<br>&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hi,<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; A new thing I don&#39;t know how to do with Paraview.<br>&gt;&gt; &gt;&gt;&gt; I have written a personnal reader, that creates vtkStructuredGrid from<br>
&gt;&gt; &gt;&gt;&gt; files written in so called format &quot;v3d&quot;. So I&#39;m able to construct a<br>&gt;&gt; &gt;&gt;&gt; MutliBlockDataSet, that is composed of all the Blocks I&#39;m working<br>&gt;&gt; &gt;&gt;&gt; with.<br>
&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; I would like to use &quot;Programmable Source&quot;, so we don&#39;t need to write<br>&gt;&gt; &gt;&gt;&gt; the<br>&gt;&gt; &gt;&gt;&gt; file on the disk before to open it with Paraview.<br>
&gt;&gt; &gt;&gt;&gt; Does &quot;Programmable Source&quot; work with MultiBlockDataSet ? I don&#39;t see<br>&gt;&gt; &gt;&gt;&gt; this<br>&gt;&gt; &gt;&gt;&gt; class in the Output Data Set Type that we can choose...<br>&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; And is it correct if I write in the Script of the Programmable Filter<br>&gt;&gt; &gt;&gt;&gt; :<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; from perso import *<br>&gt;&gt; &gt;&gt;&gt; multiblock = MultiBlockDataSetFromV3D(.....)<br>
&gt;&gt; &gt;&gt;&gt; self.GetOutput().DeepCopy(multiblock)<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; Thanks for help.<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; A.MARSAN<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>&gt;&gt; &gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; &gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;<br>&gt;<br></div></div></blockquote></div></div></div><br></blockquote></div><br>