3D Visualization: VisIt

visit logo


General information

VisIt is a free [and open source] interactive parallel visualization and graphical analysis tool for viewing scientific data on Unix and PC platforms. Users can quickly generate visualizations from their data, animate them through time, manipulate them, and save the resulting images for presentations. VisIt contains a rich set of visualization features so that you can view your data in a variety of ways. It can be used to visualize scalar and vector fields defined on two- and three-dimensional (2D and 3D) structured and unstructured meshes. VisIt was designed to handle very large data set sizes in the terascale range and yet can also handle small data sets in the kilobyte range.
(from https://wci.llnl.gov/codes/visit/about.html)











3D Visualization: Overview



Evaluation

Installability

# # # # #

Functionality

# # # # #

Usability

# # # # #

Adaptability

# # # # #

Overall

# # # # #



VisIt can easily be installed from binary and requires no additional tools. It reads various common file formats (see the manual for a complete list). Once you set up your plot by choosing from the large variety of plots and operators a first result is soon at hand, but adjusting it to your full satisfaction may take some time. (Concrete you can choose between contour, curve, histogram, mesh, molecule, pseudocolor, streamline, subset, surface, tensor, truecolor, vector and volume plots and apply boundary, isosurface, isovolume, (one, three or spherical) slice, threshold operators to mention a few.) Another useful assortment of gadgets for animations, scripting and data processing enables you to visualize as well as analyze your data.
VisIt uses a single computers graphics hardware by default but can also run on clusters to handle large data sets. Its current version is 2.0.1 (in July 2010), but VisIt is still under active development; Linux version 1.12.2 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 visitTEMP/

~/visitTEMP> visit-install 2.0.1 linux-rhel3 ~/INSTALLDIR/visit

~/visitTEMP> cd INSTALLDIR/visit/bin/
~/INSTALLDIR/visit/bin> visit

~/INSTALLDIR/visit/bin> cd ~
~> echo "set path = ($path ~/INSTALLDIR/visit/bin)" >> .cshrc



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 VisIt user.





by Marco Selig 2010-07-19 14:48