2.2.4. vtk_addRectilinearGridData


Purpose

Add scalars, vectors, and/or an RGB tuple froman ASCIItable to existing VTK rectilinear grid (.vtr/.vtk).

parent_gray

Usage

> vtk_addRectilinearGridData options file[s] 

parent_gray

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


parent_gray

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.

Topic attachments
I Attachment Action Size Date Who Comment
cell-centered-data.pngpng cell-centered-data.png manage 5 K 04 Dec 2015 - 03:46 PhilipEisenlohr Cell-centered grid with data
point-centered-data.pngpng point-centered-data.png manage 13 K 04 Dec 2015 - 03:45 PhilipEisenlohr Point-centered grid with data
This topic: Documentation > Processing > PostProcessing > VTKAddRectilinearGridData
Topic revision: 15 Feb 2019, MartinDiehl
This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection