VTK – Visualization Toolkit

The Visualization Toolkit (VTK) is an open-source, freely available software system for 3D computer graphics, image processing and visualization. VTK consists of a C++ class library and several interpreted interface layers including Tcl/Tk, Java, and Python. Professional support and products for VTK are provided by Kitware.

[hptc@iliadaccess02 ~]$ wget http://obs.rc.fas.harvard.edu/sdutta/gadget_vtk.tbz
[hptc@iliadaccess02 ~]$ tar jxvf gadget_vtk.tbz
[hptc@iliadaccess02 ~]$ cd gadget_vtk
[hptc@iliadaccess02 gadget_vtk]$ module load devel/cmake-2.6.4 devel/tclap-1.1.0 viz/vtk-5.4.2
Loading module devel/cmake-2.6.4.
Loading module devel/tclap-1.1.0.
Loading module viz/vtk-5.4.2.
[hptc@iliadaccess02 gadget_vtk]$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /n/home/external/sdutta/gadget_vtk
[hptc@iliadaccess02 gadget_vtk]$ make
Scanning dependencies of target gadget
[ 20%] Building CXX object CMakeFiles/gadget.dir/gadget.cxx.o
[ 40%] Building C object CMakeFiles/gadget.dir/read.c.o
[ 60%] Building CXX object CMakeFiles/gadget.dir/commandline.cxx.o
[ 80%] Building CXX object CMakeFiles/gadget.dir/readgadget.cxx.o
[100%] Building C object CMakeFiles/gadget.dir/center.c.o
Linking CXX executable gadget
[100%] Built target gadget
[hptc@iliadaccess02 gadget_vtk]$ ./gadget -o snap -b 10000 snapshot_025
Picking 100 of 43693, so pick every 436 particles
Reading cmd.Get_fname() snapshot_025
Read a total of 2565327 particles, using 100 stars
Using box size 10000
Read in 100 particles with total mass 0.0019304
Using 100 points
Bounds (-155.971, 324.969, -353.191, 297.136, -175.161, 50.1083,
Range of speeds: 11.1384, 317.884
Using dscale 422.717
[hptc@iliadaccess02 gadget_vtk]$ display snap_000.jpg

In addition to VTK, Odyssey also has Paraview installed. To use it, please use the module viz/paraview-3.4.0 (or viz/paraview-3.2.3).

CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at Attribution.