How to install and run Paraview on Linux


How to build Paraview on Linux

  1. Download the latest release from the Paraview website:
     http://www.paraview.org/HTML/Download.html
     paraview-2.2.1-x86-linux.tar.gz

  2. Untar the file into some directory:
     % tar zxvf paraview-2.2.1-x86-linux.tar.gz

  3. Create a build directory:
     % mkdir build
     % cd build

  4. Run ccmake to configure the Makefiles.
     % ccmake ../paraview-2.2.1

  5. Here are the ccmake options that need to be set:

     CMAKE_INSTALL_PREFIX      /projects/vis/tools/paraview-2.2.1
     CMAKE_VERBOSE_MAKEFILE    ON
     MPI_INCLUDE_PATH          /usr/local/apps/mpich-1.2.5.2/include
     MPI_LIBRARY               /usr/local/apps/mpich-1.2.5.2/lib/libpmpich.a
     OPENGL_INCLUDE_DIR        /projects/vis/tools/mesa-6.4.1/include
     OPENGL_gl_LIBRARY         /projects/vis/tools/mesa-6.4.1/lib/libmGL.a
     OPENGL_glu_LIBRARY        /projects/vis/tools/mesa-6.4.1/lib/libmGLU.a
     OSMESA_INCLUDE_DIR        /projects/vis/tools/mesa-6.4.1/include
     OSMESA_LIBRARY            /projects/vis/tools/mesa-6.4.1/lib/libmOSMesa.a
     VTK_MPIRUN_EXE            /usr/local/apps/mpich-1.2.5.2/bin/mpirun
     VTK_OPENGL_HAS_OSMESA     ON
     VTK_USE_MPI               ON

     Use the appropriate Mesa and MPI lirraries installed on your system.

  6. Make the distribution:
     % make
     % make install
  

How to run Paraview on Linux

  Stand-alone Client
  % ./paraview
  Client to Server
  % ./pvserver
  % ./pvclient --server-host=machine.sdsc.edu
  Client to parallel Server
  % mpirun -v -machinefile machines.txt -np 4 pvserver --use-offscreen-rendering
    (machines.txt contains a list of server machines)
  % ./pvclient --server-host=machine.sdsc.edu
  

How to run the Paraview server on DataStar

  Start pvserver on DataStar:
  % ssh dsdirect.sdsc.edu
  % cd /usr/local/apps32/paraview-2.2.1/bin
  % ./pvserver.sh
  Start pvclient on another machine:
  % ./pvclient --server-host=dsdirect.sdsc.edu --server-port=12345
  

How to load raw binary volume data into Paraview

  1. Select the File -> Open Data menu item.
  2. Select "Files of type: All Files (*.*)" and the raw volume.
  3. You will get a message: "Could not find an appropriate reader for file"
     Select the [OK] button.
  4. Select the "Raw (binary) Files Reader".
  5. In the "Parameters" tab, specify the following fields:
     Data type
     Data type: byte, short, int, float, etc.
     Extent:    [ 0 ][X-1][ 0 ][Y-1][ 0 ][Z-1]
     For example, if the volume resolution is 750 x 375 x 100, then
     Extent:    [ 0 ][749][ 0 ][374][ 0 ][ 99]
     Press the [Accept] button.
  

Paraview Visualization of SCEC Data

Surface representation of the volume.

  Dataset: vol_vy.03600
  Select the "Display" tab.
  Representation: "Surface"
  


Volume Render. Can only run on a single node.

  Select the "Filter" -> "Tetrahedralize" menu item.
  Select the "Display" tab.
  Representation: "Volume Render"
  


Isosurface generated in parallel on the mfarm cluster.

  Press the "Generate isosurfaces" icon.
  Add "Contour Values".
  


Isosurface generated in parallel on the mfarm cluster.

  Select the "Filter" -> "Process Id Scalars" menu item.
  Select the "Display" tab.
  Color by: "Point Piece"
  


Isosurface generated in parallel on DataStar.

  Select the "Filter" -> "Process Id Scalars" menu item.
  Select the "Display" tab.
  Color by: "Point Piece"
  


Extract Grid in parallel on DataStar.

  Select the "Filter" -> "Extract Grid" menu item.
  Select the "Parameters" tab.
  Set the K: "Min" and "Max" values to extract a slice from the volume.
  Press the [Accept] button.
  Generate an isosurface of the sliced grid.