Sending the message without the attached files...<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Renan Leser</b> <span dir="ltr"><<a href="mailto:leser21@gmail.com">leser21@gmail.com</a>></span><br>
Date: 2009/2/12<br>Subject: Re: [vtkusers] Program to write .VTK<br>To: Renato Elias <<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>><br>Cc: Berk Geveci <<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>>, <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br><br>Berk,<br><br> I'm sending the .DAT file attached, with latitude, longitude and the final .VTK file I wrote(rectilinear grid.vtk) . There's no big deal. It's a normal grid, with x and y dimensions (lines and columns). The data goes in the middle. When I have a different time step, the data in the middle changes. The team here can write these data time steps in various ways, together in the same file, each time step separated, etc. <i>I found that the only way to animate them is to write several .VTK files and read a Legacy .VTK in Paraview</i>, but takes too long to use the filters in each time step...<br>
<br><a href="https://visualization.hpc.mil/wiki/Paraview_Animating_Legacy_VTK_Files">https://visualization.hpc.mil/wiki/Paraview_Animating_Legacy_VTK_Files</a><br>
<br>Renato,<br><br>This is the first approach we tried last year, remember? When I asked you to show me the basics of paraview? You created a little code that translated the .DAT in a Binary file and opened in paraview using .RAW importer. But the problem came when they asked me to do animation... <br>
<br>As I said above, I searched the web and discovered that paraview can read several .VTK files. He stores each of them in the memory and you just have to press "play" to see the animation. Of course, there's a glitche. You have to use filters in each file, that corresponds to each time-step of the animation. So you have to use threshold, extract surface and warp scalar in each time-step. Nowadays, we're using 50-60 time-steps for simulations here, so, it's not hat hard... I searched for a way to apply a filter to a legacy vtk file(with all time steps), but there's nothing on the web. If any of you know how, please tell me, will buy a lot of time. I'm at COPPE right now, If you want I can go to NACAD so we can chat about this.<br>
<br>Thanks a lot,<br><br>Renan.<br><br><div class="gmail_quote">2009/2/12 Renato Elias <span dir="ltr"><<a href="mailto:rnelias@gmail.com" target="_blank">rnelias@gmail.com</a>></span><div><div></div><div class="Wj3C7c">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Renan, <br><br>I'll suggest you a very naive approach:<br><br>1). Translate your ASCII/DAT files into binary<br>2). Use the RAW Binary format in ParaView to load your files<br><br>now the question is: How can you animate several RAW binary files? Berk can answer you better than me, but, I'd try to use a python script in ParaView to create the animation or something like that.<br>
<br>Regards<br><font color="#888888"><br>Renato.<br></font><br>ps.: Answering the portuguese email you sent to me. No, I don't have any program that could help you in this task, but, you could easily do it in Fortran or using a script-based language like Python.<div>
<div></div><div><br>
<br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 10:39 AM, Berk Geveci <span dir="ltr"><<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can you describe in detail what the .dat format looks like?<br>
<br>
-berk<br>
<div><div></div><div><br>
On Thu, Feb 12, 2009 at 3:01 AM, Renan Leser <<a href="mailto:leser21@gmail.com" target="_blank">leser21@gmail.com</a>> wrote:<br>
> Hello everybody,<br>
><br>
> I'm searching for a program to write some .DAT files in .VTK format.<br>
><br>
> These .DATs contains grid structure, scalars and vectors. I'm writing them<br>
> manually in .VTK, like these:<br>
><br>
> # vtk DataFile Version 3.0<br>
> vtk output<br>
> ASCII<br>
> DATASET STRUCTURED_POINTS<br>
> DIMENSIONS 387 312 1<br>
> SPACING 1 1 1<br>
> ORIGIN 0 0 0<br>
> POINT_DATA 120744<br>
> SCALARS batimetria float<br>
> LOOKUP_TABLE default<br>
> 0.0000000e+000 0.0000000e+000 0.0000000e+000 0.0000000e+000<br>
> 0.0000000e+000...<br>
> 0.0000000e+000 0.0000000e+000 0.0000000e+000 0.0000000e+000<br>
> 0.0000000e+000...<br>
> ...<br>
><br>
><br>
> The DAT files holds the grid, then I spent lots of time copying and pasting<br>
> the grid form .DAT to LOOKUP_TABLE default, and writing the dimensions and<br>
> point data.<br>
><br>
> Since I'm working with large time data-steps files, I would like to known if<br>
> anybody use or recommend a program to speed up this process.<br>
><br>
> Thanks a lot,<br>
><br>
> Renan.<br>
><br>
><br>
><br>
> --<br>
> Renan Leser de Medeiros<br>
> Laboratory of Computational Methods in Engineering<br>
> Federal University of Rio de Janeiro - COPPE<br>
> P.O.Box 68552 - ZIP 21949-900<br>
> Rio de Janeiro, RJ, Brasil<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>
</div></div></blockquote></div></div></div><div><div></div><div class="Wj3C7c"><br><br clear="all"> --<br>
Renan Leser de Medeiros<br>
Laboratory of Computational Methods in Engineering<br>
Federal University of Rio de Janeiro - COPPE<br>
P.O.Box 68552 - ZIP 21949-900<br>Rio de Janeiro, RJ, Brasil<br>
<br>
</div></div></div><br><br clear="all"><br>-- <br>"Comece com as coisas que você sabe e as coisas que você não sabe lhe serão reveladas." - Rembrandt, 1606-1669<br><br>Renan Leser de Medeiros - Designer - UFRJ<br>
Mestrando em Computação de Alto Desempenho - COPPE/UFRJ<br>