Difference between revisions of "FE Mesh Quality Visualization"

From NAMIC Wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
  
  
[[Image:hexQual1-Dec06small.jpg]]
+
[[Image:hexQual1-Dec06small.jpg]]  [[Image:hexQual5-Dec06small.png]]
  
 
 
[[Image:hexQual5-Dec06small.png]]
 
  
  
Line 25: Line 22:
  
 
[[Image:fe-thresh.png]]
 
[[Image:fe-thresh.png]]
 +
 +
'''Comparing the Metrics in the VTK Mesh Quality Filter'''
 +
 +
In December 2006 (VTK 5.1), the vtkMeshQualityFilter was updated to reference the Verdict external library for mesh quality computations developed by Sandia National Labs.  Verdict includes a very complete list of tests to be applied to mesh element types (hexahedral, tetrahedral, quad, tris, etc.).  To understand which metrics will be the most useful for our project, we selected several boundary elements from a finger bone dataset which had varying degrees of distortion and created the following visual inspection results.
 +
 +
 +
 +
[[Image:jacobian.png]]                  [[Image:edge-ratio.png]]
 +
 +
 +
 +
[[Image:shape-and-size.png]]      [[Image:skew.png]]
 +
 +
 +
 +
[[Image:frobenius-med.png]]        [[Image:frobenius-max.png]]
 +
 +
 +
[[Image:volume-021207.png]]
 +
 +
 +
It can be observed through inspection that some tests assign lower values to "poor" quality elements while other tests assign higher values to "poor" quality elements.  Because of this inconsistency between algorithms, a normalization strategy is incorporated into the FE Mesh Quality Viewer along with attention paid to color table mapping, so that consistent coloring schemes are applied and displayed regardless of the mesh quality test selected by the user.
 +
 +
 +
''' Mesh Quality Viewer Application '''
 +
 +
To exercise the API for the FE Mesh Quality filter, a sample application is being developed using KWWidgets.  The application allows class methods to be invoked through the controls on the left.  This application also serves as a simplified way to learn the API interface to KWWidgets for others in our project later on.
 +
 +
[[Image: mesh-quality-viewer-021307.png|left|thumb|]]

Latest revision as of 19:31, 13 February 2007

Home < FE Mesh Quality Visualization

This topic of the FE project involves generating visuals using VTK that show the quality of individual elements in a Finite Element mesh. Generally, boundary elements are of lower quality than internal elements due to geometric constraints. It speeds up the mesh generation process if quick visualizations are constructed to provide element quality feedback in advance of importing the mesh into the FE simulation package.

Mesh Quality Filter

Visualizations utilize the vtkMeshQuality filter to evaluate mesh elements. We plan to extend the current mesh quality algorithms to add more tests for Hexahedral mesh element types in the future.


Rendering Techniques

The mesh quality filter adds floating point "quality" values to each VTK cell in the mesh dataset. There is a one-to-one correspondence between mesh elements and cells in a vtkUnstructuredGrid object. Several techniques are planned for the visualization tools constructed by this project, including dynamic element sizing and thresholding elements above an adjustable quality value. In the examples shown here, each element is reduced in size, yet keeps its aspect ratio. Each element is colored according to its individual quality value.


HexQual1-Dec06small.jpg HexQual5-Dec06small.png



Selecting Elements by Threshold Value

Because of the large number of elements in a mesh, it is useful to display only certain elements. We provide for this by using a threshold value to enable the display of only "interesting" elements. The per element quality value attached to each element is used to determine whether the particular element should be rendered or not. Below is a sample image where only elements of lower quality are rendered. Notice that these elements lie entirely on the mesh boundaries.


Fe-thresh.png

Comparing the Metrics in the VTK Mesh Quality Filter

In December 2006 (VTK 5.1), the vtkMeshQualityFilter was updated to reference the Verdict external library for mesh quality computations developed by Sandia National Labs. Verdict includes a very complete list of tests to be applied to mesh element types (hexahedral, tetrahedral, quad, tris, etc.). To understand which metrics will be the most useful for our project, we selected several boundary elements from a finger bone dataset which had varying degrees of distortion and created the following visual inspection results.


Jacobian.png Edge-ratio.png


Shape-and-size.png Skew.png


Frobenius-med.png Frobenius-max.png


Volume-021207.png


It can be observed through inspection that some tests assign lower values to "poor" quality elements while other tests assign higher values to "poor" quality elements. Because of this inconsistency between algorithms, a normalization strategy is incorporated into the FE Mesh Quality Viewer along with attention paid to color table mapping, so that consistent coloring schemes are applied and displayed regardless of the mesh quality test selected by the user.


Mesh Quality Viewer Application

To exercise the API for the FE Mesh Quality filter, a sample application is being developed using KWWidgets. The application allows class methods to be invoked through the controls on the left. This application also serves as a simplified way to learn the API interface to KWWidgets for others in our project later on.

Mesh-quality-viewer-021307.png