vtkPCosmoReader

Section: Visualization Toolkit Parallel Classes

Usage

vtkPCosmoReader creates a vtkUnstructuredGrid from a binary cosmology file. The file contains fields for: x_position, x_velocity (float) y_position, y_velocity (float) z-position, z_velocity (float) mass (float) identification tag (integer)

If the file contains particle information x,y,z is the location of the particle in simulation space with a velocity vector and a mass which will be the same for all particles.

To create an instance of class vtkPCosmoReader, simply invoke its constructor as follows

  obj = vtkPCosmoReader

Methods

The class vtkPCosmoReader has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkPCosmoReader class.