Returns an array of node IDs (integers) associated with all the nodes of a flexible body within a radius of a marker. If you set intpt to 1, NODE_IDS_WITHIN_RADIUS only considers interface nodes.
Format
node_ids_within_radius (marker, flex_body, radius, intpt)
Arguments
marker | Name of the marker object. |
flex_body | Name of the flexible body object. |
radius | Radius around marker to check for nodes. |
intpt | Integer flag: ■1 - Consider only interface nodes. ■0 - Consider all nodes. |
Returns
If NODE_IDS_WITHIN_RADIUS finds no nodes, it returns a single integer value of -1 with no warning.
Example
The figure shown below shows the flexible body, link, with a circle of radius 5.75 centered at the location of marker, link.marker_2. All 10 nodes located within this circle are labeled in the figure. The following command assigns these node numbers to the variable .nodes:
var set var=.nodes int=(eval(node_ids_within_radius(.model_1.link.marker_2,.model_1.link, 5.75,0)))