How to measure distance between two points using Paraview

Sometimes you want to measure the distance between two points in your data using Paraview. To do that, first visualize your data using the usual way. Now to measure between two points in your data, we can use Ruler Source:

  1. Go to Menu “Sources”->”Ruler”
  2. Use your mouse to point to the first location in your data and press the “p” key in your keyboard.
  3. Use your mouse to point to the second location in your data and press “p” again. You will see the distance in the tab on the left. (See screen shot)

How to set transparency of object in Paraview

I am using paraview 3.6.2, and sometimes, it is useful to display the object and make it transparent. In this way, I can see the data and the boundary of the objects as well. To do this, load your object data, and go to tab “Display” in the “Object Inspector” window. From there, look for the section “Style”. After “Point Size” and “Line Width”, you wills see “Opacity”. Change the level opacity to make the object transparent.

Using Paraview to plot selection over time

Paraview is a nice visualization software and it is equiped with a lot of tools to analyze the data. In my current project I have a time sequence data which is stored in different VTK legacy files. The files are stored in this convention Etot.00010.vtk, Etot.00020.vtk, where the numbers are the time steps. To load the data do the following:

  1. Open paraview.
  2. Click “File->Open”
  3. Go the folder where the data files are located, you will see Etot…vtk, with a plus sign on the left. If you click the plus sign you will be able to select a particular time step data. But since we want to load all, click the upper most line, i.e. Etot…vtk.
  4. Click “Apply”.
  5. To view¬† cut plane, click the icon “Slice”, and click Apply.

Now, for example we are interested to plot the data over time from a particular point. To do this:

  1. Click the button “Select points on”, i.e. button with triangle and three red dots.
  2. And then choose menu “Filter->Data Analysis->Plot selection over time”. This will take some time depending on how many time steps you have. Once done. You will see another 2D plot view open up.