2.2.4. vtk_addRectilinearGridData
Purpose
Add scalars, vectors, and/or an RGB tuple froman ASCIItable to existing VTK rectilinear grid (.vtr/.vtk).
Usage
> vtk_addRectilinearGridData options file[s]
Options
-
--vtk
- VTK file name
-
-r
/ --render
- open output in VTK render window
-
-d
/ --data
- scalar/vector value(s) label(s)
-
-t
/ --tensor
- tensor (3x3) value label(s)
-
-c
/ --color
- RGB color tuple label
Examples
For an exemplary
ASCII table
1 header
1_pos 2_pos 3_pos microstructure
0.5 0.5 0.5 1.0
1.5 0.5 0.5 1.0
0.5 1.5 0.5 1.0
1.5 1.5 0.5 1.0
0.5 0.5 1.5 2.0
1.5 0.5 1.5 2.0
0.5 1.5 1.5 2.0
1.5 1.5 1.5 2.0
0.5 0.5 2.5 2.0
1.5 0.5 2.5 2.0
0.5 1.5 2.5 2.0
1.5 1.5 2.5 2.0
0.5 0.5 3.5 2.0
1.5 0.5 3.5 2.0
0.5 1.5 3.5 2.0
1.5 1.5 3.5 2.0
the addition of the scalar quantity »microstructure« to the cell-centered and point-centered interpretation (
--mode
) of the coordinates results in gridded data as shown in Figure
1.
|
(a) Cell-centered grid |
(b) Point-centered grid |
| |
| Figure 1: Rectilinear data grids following from above ASCII table. Blue and red correspond to values of 1 and 2, respectively. | |