*getnodesinsidedomaintomark
Places the displayed nodes inside an element to the specified mark.
Syntax
*getnodesinsidedomaintomark nodes_mark element_id tolerance calcminlen
Type
HyperMesh Tcl Modify
Description
Places the displayed nodes inside an element to the specified mark.
Inputs
- nodes_mark
- The mark to which the nodes must be placed. Must be 1 or 2.
- element_id
- The element ID within which the nodes are to be found. Can only be a 2D or 3D element.
- tolerance
- Out-of-plane tolerance value, which should be between 0 and 1.
- calcminlen
- A flag to indicate if the calculation of minimum length should be exact. Can be either 0 or 1.
Example
*createmark nodes 1
*getnodesinsidedomaintomark 1 101 0.001 0
eval *createentity sets name=set1 ids=\{nodes [hm_getmark nodes 1]\}
*createmark elements 1 displayed
*createmark nodes 1
set elemlist [hm_getmark elems 1]
foreach elem $elemlist {
set config [hm_getvalue elements id=$elem dataname=config]
if { $config == 208 } {
*getnodesinsidedomaintomark 1 $elem 0.001 0
}
}
eval *createentity sets name=PenetrationNodes ids=\{nodes [hm_getmark nodes 1]\}
- The calcminlen flag is used to determine if there are nodes very close to the edge of a solid element, and almost collinear to it. In most cases, setting this value to 0 should be adequate. Setting the value to 1 slows down the execution of the command.
- If this command is used while working on a large model, or if this command is being called repeatedly in a macro, it is highly recommended to turn off the display of portions of the model that are known to be completely outside of the domain (element) where the nodes are needed. Since this command works on the displayed nodes and elements of the model, the speed of the command is greatly increased.