Difference between revisions of "ParaView/Users Guide/VTK Data Model"

From KitwarePublic
Jump to navigationJump to search
(Replaced content with "{{ParaView/Template/DeprecatedUsersGuide}}")
 
(43 intermediate revisions by 7 users not shown)
Line 1: Line 1:
To use ParaView effectively, you need to understand the ParaView data model. Here, we will introduce the the VTK data model used by ParaView briefly. For more details, you can refer to one of the VTK books.
+
{{ParaView/Template/DeprecatedUsersGuide}}
 
 
The most fundamental data structure in VTK is a data object. Data objects can either be scientific datasets such rectilinear grids or finite elements meshes (see below) or more abstract data structures such as graphs or trees. Since ParaView is geared toward scientific visualization, we will focus on the former and touch briefly on the latter when necessary.
 
 
 
Datasets are formed of smaller building blocks: mesh (topology and geometry) and attributes.
 
 
 
== Mesh ==
 
 
 
Even though the actual data structure used to store the mesh in memory depends on the type of the dataset, some abstractions are common to all types. We describe these here and we briefly describe the data structures below for each dataset. In general, a mesh consists of vertices (points) and cells (elements, zones). Cells are used to discretize a region and can have various types such a tetrahedra, hexahedra etc. Each cell contains a set of vertices. The mapping from cells to vertices is called the connectivity. Note that even though it is possible to define data elements such as faces and edges, VTK does not represent these explicitly. Rather, they are implied by a cell's type and its connectivity. One exception to this rule is the arbitrary polyhedron which explicitly stores its faces. Here is an example mesh that consists of 2 cells. The first cell is defined by vertices (0, 1, 3, 4) and the second cell is defined by vertices (1, 2, 4, 5). These cells are neighbors because they share the edge defined by the points (1, 4).
 
 
 
[[Image:ParaView_UG_Cells.png|400px]]
 
 
 
So far, we talked about the topology only. A mesh is fully defined by its topology and the spatial coordinates of its vertices. In VTK, the point coordinates may be implicit or explicitly defined by a data array of dimensions (number_of_points, 3).
 
 
 
== Attributes (fields, arrays) ==
 
 
 
An attribute (aka data array or field) defines the discrete values of a field over the mesh. Examples of attributes include Pressure, Temperature, Velocity and Stress Tensor. Note that VTK does not specifically define different types of attributes. All attributes are stored as data arrays which can have an arbitrary number of components. ParaView makes some assumptions in regards to the number of components. For example, a 3 component array is assumed to be an array of vectors. Attributes can be associated with points or cells. It is also possible to have attributes that are not associated with either. The following example demonstrates the use of a point-centered attribute. Note that the attribute is only defined on the vertices. Interpolation is used to obtain the values everywhere else. The interpolation functions used depends on the cell type. See VTK documentation for details.
 
 
 
[[Image:ParaView_UG_Cells_with_values.png|500px]]
 
 
 
The figure below demonstrates the use of a cell-centered attribute. Note that cell-centered attributes are assumed to be constant over each cell. Due to this property, many filters in VTK cannot be directly applied to cell-centered attributes. It is normally required to apply a Cell Data to Point Data filter. In ParaView, this filter is applied automatically when necessary.
 
 
 
[[Image:ParaView_UG_Cells_with_cvalues.png|500px]]
 
 
 
== Uniform Rectilinear Grid (Image Data) ==
 
 
 
[[Image:ParaView_UG_Image.png|400px]]
 
 
 
== Rectilinear Grid ==
 
 
 
[[Image:ParaView_UG_Rectilinear.png|400px]]
 
 
 
== Curvilinear Grid (Structured Grid) ==
 
 
 
[[Image:ParaView_UG_Curvilinear.png|400px]]
 
 
 
== Polygonal Grid (Polydata) ==
 
 
 
[[Image:ParaView_UG_Polydata.png|400px]]
 
 
 
== Unstructured Grid ==
 
 
 
[[Image:ParaView_UG_Unstructured.png|400px]]
 
 
 
== Table ==
 
 
 
[[Image:ParaView_UG_Table.png|700px]]
 
 
 
== Multiblock Dataset ==
 
 
 
[[Image:ParaView_UG_Multiblock.png|400px]]
 
 
 
== AMR Dataset ==
 
 
 
[[Image:ParaView_UG_AMR.png|400px]]
 
 
 
== Multipiece Dataset ==
 
 
 
[[Image:ParaView_UG_Multipiece.png|400px]]
 

Latest revision as of 13:34, 14 January 2015

PAGE DELETED
The Users Guide has been moved from the Wiki to The ParaView Guide. Please use the history if you want to access the old version of this document.