VTK File characteristics:
The VTK file format consists of five parts; the first three are mandatory,
and the last two are optional.
-
# vtk DataFile Version m.n
-
The header line. "m.n" is the version number.
-
a title
-
The title may be up to 256 characters, terminated by a new line.
-
ASCII or BINARY
-
indicates the format used for subsequent data.
-
DATASET type
-
values for type are "STRUCTURED_POINTS" or "STRUCTURED_GRID" or "UNSTRUCTURED_GRID" or
"POLYDATA" or "RECTILINEAR_GRID"; Depending on the type chosen, there
will be further lines of keywords and values to define the data.
-
POINT_DATA n
-
The number of data items n of each type must match the number of
points in the dataset.
When describing the cells in terms of point indices, the points must be
indexed starting at 0.
All point data must use 3 coordinates. Even if your model has 2D geometry,
each point must have (X,Y,Z) coordinates. Simply set Z = 0 if you want to
work in 2D.
Some simple example vtk files. Note copy these first and THEN open Paraview.
-
dec.vtk,
(ASCII format, POLYDATA) prices for DEC stock; For this one you will want to turn off the orientation axis and use a real X,Y,Z axis. See if you can figure this out.
-
hello.vtk,
(ASCII format, POLYDATA) Stroked lines spell "hello";
-
mesh_smag_0040.vtk,
(ASCII format, UNSTRUCTURED GRID)
a (U,V,W) and P flow field in a long rectangular channel;
-
polyex.vtk,
(ASCII format, POLYDATA) a cube;
- atoms.vtk some atoms on a lattice of different size: Note: when you first load this into paraview you will not see anything. Remember to hit apply to activate the filter. Select Common--> Glyph and then make sure Glyph type = sphere.
Two other useful tutorials:
- Finally, make your own vtk file (in the ASCII Legacy format examples you have been given) and get it to work. When sucessful, Upload the vtk file here
-
VTK File Structure
Some Paraviews on YouTube:
CAVE
Bubbles
Antartic Ice Loss
Black Hole Caustic Echoes
|