<div dir="ltr">Dear Utkarsh,<div> </div><div style>Thanks a lot for your detailed instructions and they are very helpful! I can show the difference along time now as a movie. </div><div style>However, I still have another question. By doing this, only the difference between current timestep and 0 is shown while the image for timestep 0 which contains the initial land/sea information is not represented. Do you have some idea on showing not only the surface changes but also the initial surface at the same time?</div>
<div style> </div><div style>Many thanks!</div><div style>Xiao </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/4 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Xiao,<br>
<br>
You can make ParaView compute a new data array that's the difference<br>
between the values at 0 and the current timestep and then color with<br>
that. To do that, do the following:<br>
<br>
+ Open your snapshot000*.vtk file series as before.<br>
+ Now, open just the snapshoot0000.vtk file (the file for the first<br>
time step) separately. In the file dialog, you can click on the "+"<br>
icon next to the file group to expand the group and select a specific<br>
file instead.<br>
+ Next, select the filter series source as well as the<br>
snapshoot0000.vtk source and create the Python calculator. Your<br>
pipeline browser should like the one in the attached image.<br>
+ Now for the Python calculator select Array Association as "Cell<br>
Data" and setup an expression as follows to compare the quantities of<br>
interest (as shown in the attached image).<br>
<br>
inputs[0].CellData["U"] - inputs[1].CellData["U"]<br>
<br>
Now when you color by result, you'll be coloring by the difference in<br>
the quantities between timestep 0 and the current timestep.<br>
<span class="HOEnZb"><font color="#888888"><br>
Utkarsh<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Nov 25, 2013 at 2:47 PM, Utkarsh Ayachit<br>
<<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
> Xiao Guo,<br>
><br>
> I am sure what you want could be done. Do you have a sample dataset so<br>
> I can play with it figure out what would be easiest route?<br>
><br>
> Utkarsh<br>
><br>
> On Thu, Nov 21, 2013 at 1:19 PM, xiao guo <<a href="mailto:xiao.guo.math@gmail.com">xiao.guo.math@gmail.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I am trying to visualize some vtk files which are generally a series of<br>
>> values of wave and sea level of some area. Now I can just save an animation<br>
>> to show some movies of frame1,2,3,....<br>
>> However, it is not clear for some regions that the values there are changed.<br>
>> For example, when the wave goes to land, the value for the land increases<br>
>> from saying 5m to 6m, so there is 1m flood however which is not easy to see<br>
>> such small difference especially the change is even smaller saying 0.2 m..<br>
>> What I am thinking is to 1) keep the first frame which is the initial value<br>
>> for the area as one layer or background with some color scheme; then 2)<br>
>> based on the background from 1), difference between the values at step i<br>
>> (i=2,3,...) and the initial value (step 0, background) are shown with<br>
>> another color scheme, so both the initial image for the area and the changes<br>
>> afterwards can be shown clearly.<br>
>><br>
>> But I am really not expert in such visualizing work or Paraview, so I come<br>
>> here and ask for help. Anyone knows that if I can do such complicated work<br>
>> in Paraview and how? Thank you all for attention!<br>
>><br>
>> Cheers,<br>
>> Xiao Guo<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<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 ParaView Wiki at:<br>
>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
</div></div></blockquote></div><br></div>