hm_getsurfacethicknessvalues
Returns the midsurface thickness and offset values for nodes, points, or elements.
Syntax
hm_getsurfacethicknessvalues entity_type entity_id
or
hm_getsurfacethicknessvalues entity_type mark_id element_method ?ambiguous_values?Type
HyperMesh Tcl Query Command
Description
This command returns the midsurface thickness and offset values for nodes, points, or elements.
An error is returned if a non-topological point or node or an element not associated to any surface, is given as input.
Inputs
- entity_type
- The type of entity to query. Valid values are nodes, points and elems.
- entity_id
- The ID of the entity to query.
- mark_id
- The ID of the mark containing the entities to query. Valid values are 1 and 2.
- element_method
- Only allowed for element mark_id based usage. This determines how the thickness and offset values are measured for elements (ignored when the mark only contains nodes or points). Valid values are:
- ambiguous_values
- Defines what to do when an element that spans multiple surfaces and a node of that element is on an edge/vertex between the shared surfaces. This option is only used for element_method=4 when a "common surface" or a "most common surface" cannot be determined. Surfaces that do not have a thickness are ignored and not considered in the calculations. If all surfaces have no thickness, -1 is returned for all nodes.
Examples
Suppose that the node with ID 100 is located on a shared edge between surfaces having IDs
10 and 11. To retrieve the list of surfaces, thicknesses and
offsets:
set node_thick [ hm_getsurfacethicknessvalues nodes 100 ]
To get the surface, thickness and offset at the centroid for element
50:
set elem_thick [ hm_getsurfacethicknessvalues elems 50 ]
To get the surface, thickness and offset as the weighted node average for element
50:
*createmark elems 1 50
set elem_thick [ hm_getsurfacethicknessvalues elems 1 1 ]
To get the surface, thickness and offset for all displayed
nodes:
*createmark nodes 1 displayed
set node_thick [ hm_getsurfacethicknessvalues nodes 1 0 ]
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}