3D Visualization: ParaView

paraview logo


General information

ParaView is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques. The data exploration can be done interactively in 3D or programmatically using ParaView's batch processing capabilities.
ParaView was developed to analyze extremely large datasets using distributed memory computing resources. It can be run on supercomputers to analyze datasets of terascale as well as on laptops for smaller data.
(from http://www.paraview.org/)









3D Visualization: Overview



Evaluation

Installability

# # # # #

Functionality

# # # # #

Usability

# # # # #

Adaptability

# # # # #

Overall

# # # # #



ParaView can easily be installed from binary and requires no additional tools. Various common file formats are read by ParaView and further readers can be added (see the tutorial for a complete list). Starting ParaView you will find a modern, interactive interface where you can open data files, select the desired variable (and single components) and allocate a representation (preselected by applicability). Furthermore, filters or animations can be applied, and you will get acceptable results rapidly, but adjusting it to your full satisfaction may take some time. The interactive rendering is based on performing rendering on lower detail level while e.g. rotating the object.
ParaView is capable of using a single computers graphics hardware up to graphic clusters to handle large data sets. Its current version is 3.8.0 (in July 2010), but ParaView is still under active development; Linux version 3.8.0 has been tested.











How-to

In the following a simple introduction is given covering the installation procedure, the data file conversion and a guideline towards the first plots.



How-to: Install



~> cd paraviewTEMP/

~/paraviewTEMP> tar -xvf ParaView-3.8.0-Linux-i686.tar.gz -C ~/INSTALLDIR/

~/paraviewTEMP> cd ~/INSTALLDIR/ParaView-3.8.0-Linux-i686/bin/
~/INSTALLDIR/ParaView-3.8.0-Linux-i686/bin> ./paraview



How-to: Data

This How-to is as from now on assuming you have data of one scalar field on a structured grid.



#include <fstream>

// Define your scalars DATA[x][y][z] and dimensions NX, NY and NZ here!

ofstream vtkfile;
vtkfile.open ("MYVTKFILE.vtk","w");

vtkfile << "# vtk DataFile Version 3.0\n";
vtkfile << "vtkfile\n";
vtkfile << "ASCII\n";
vtkfile << "DATASET STRUCTURED_POINTS\n";
vtkfile << "DIMENSIONS " << N1 << " " << N2 << " " << N3 << "\n";
vtkfile << "ORIGIN 0 0 0\n";
vtkfile << "SPACING 1 1 1\n";
vtkfile << "POINT_DATA " << (N1*N2*N3) << "\n";
vtkfile << "SCALARS scalars float 1\n";
vtkfile << "LOOKUP_TABLE default\n";

for (int z=0; z<N3; z++)
{  for (int y=0; y<N2; y++)
   {  for (int x=0; x<N1; x++)
      {   vtkfile << D[x][y][z] << " ";
      }
      vtkfile << "\n";
   }
   vtkfile << "\n";
}

vtkfile.close();



How-to: Use

paraview screenshot 01




paraview screenshot 02




paraview screenshot 03




paraview screenshot 04


paraview screenshot 05




paraview screenshot 06




paraview screenshot 07




Congratulations! You can now call yourself a ParaView user.





by Marco Selig 2010-07-19 17:50