*acm_create_mpc

Creates MPCs between selected master and slave elements.

Syntax

*acm_create_mpc master_mark_id slave_mark_id interface_mark_id tolerance behavior

Type

HyperMesh Tcl Modify Command

Description

This command creates MPCs between selected master and slave elements. It is extracted as a standalone functionality from the acoustic cavity mesher.

Inputs

master_mark_id
The ID of the mark containing elements belonging to the master body. Valid values are 1 and 2.
slave_mark_id
The ID of the mark containing elements belonging to the slave body. Valid values are 1 and 2.
interface_mark_id
The ID of the mark containing components that define patched holes. Valid values are 1 and 2.
tolerance
The maximum search distance to use for finding independent nodes for each dependent node.
behavior
MPC creation.
  • 0 - By proximity only.
  • 1 - By proximity and by intersection check with patched holes. Creates only those MPCs which intersect patched hole components.
  • 2 - By proximity and by intersection check with patched holes. Creates only those MPCs which do not intersect patched hole components.

Examples

To produce MPCs between master elems in component 813, slave elements in comp 816, and patch elements in component 812, using a tolerance of 50.0 and creating MPCs using behavior 2:

*createmark elems 1 "by comp id" 813
*createmark elems 2 "by comp id" 816
*createmark comps 1 812
*acm_create_mpc 1 2 1 50.0 2

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

13.0