hm_comparesetelemsurfmode
Specifies whether to consider element centroids for element-to-surface comparisons.
Syntax
hm_comparesetelemsurfmode mode
Type
HyperMesh Tcl Query Command
Description
Specifies whether to consider element centroids for element-to-surface comparisons. This must precede any calls to hm_compareentities* commands. This is useful particularly when comparing coarse meshes and highly curved surfaces.
When this option is enabled, a comparison operation will associate an element with a surface if the element has all its nodes on that surface, or at least one node and the element centroid projects normally to the surface and that projected point lies within roughly one quarter of the average side length of the centroid. Note that for elements that are partially off the edge of a surface, if the centroid is not on the surface but part of the element is (more than just a node or edge), the element will be marked as unmatched instead of intersected.
Inputs
- mode
- 0 - Do not consider element centroids (default)
Example
To generate a same side comparison of surfs 1-20 and elems 101-120, including element centroids:
*createmark surfs 1 1-20
*createmark elems 2 101-120
hm_compareinit
hm_comparesetelemsurfmode 1
hm_compareentitiessameside surfs 1 elems 2 0.1 2 0
hm_compareend
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
13.0