*elementtestcellsquish
Tests 2D and 3D elements using the cell squish element quality check.
Syntax
*elementtestcellsquish entity_type mark_id cell_squish output_mark_id dimension contour title
Type
HyperMesh Tcl Modify
Description
Tests 2D and 3D elements using the cell squish element quality check.
Inputs
- entity_type
- The entity types to be checked. Only elements are supported.
- mark_id
- The mark ID containing the elements to test. Valid values are 1 and 2.
- cell_squish
- The value to use as a threshold beyond which elements should be considered to have failed the test.
- dimension
- A code telling to measure the dimension of:
- 2 - Measure 2D elements.
- 4 - Measure 3D elements.
- output_mark_id
- The mark ID where the failed elements will be placed. Valid values are 1 and 2.
- contour
- Flag that determines how the results are presented. Valid values are:
- 0 - Display the results of the test normally.
- 1 - Display the elements color coded by their ratings.
- 2 - Build a histogram showing the distribution of ratings.
- title
- The title to label the curve in the histogram. Only required, if contour is 2.
Example
To test all displayed elements for a cell squish of
0.5:
*createmark elements 1 "displayed"
*createmark elements 2
*elementtestcellsquish elements 1 0.5 0 0 ""
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0