*midmesh_inspect_init

Initializes the midmesh inspection module.

Syntax

*midmesh_inspect_init SourceEntityType=<value> SourceMark=<value> TargetEntityType=<value> TargetMark=<value> <option5>=<value5> ... ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Initializes the midmesh inspection module. This must precede any calls to other *midmesh_inspect_* APIs, and must be followed by a call to *midmesh_inspect_end.

This tool detects problem clusters in midmeshes as follows:
  • Nodes off middle
  • Nodes off solid sides
  • Nodes out of solid
  • Element edges off of solid sides
  • Element centers off middle

Inputs

SourceEntityType=<value>
The source entity type, which must define the solid. Valid values are components, elements, solids, and surfaces. This is a mandatory option.
SourceMark=<value>
The ID of mark of source entities. Valid values are 1 and 2. This is a mandatory option.
TargetEntityType=<value>
The target entity type defining the midmesh. Valid values are components and elements. This is a mandatory option.
TargetMark=<value>
The ID of mark of target entities. Valid values are 1 and 2. This is a mandatory option.

At least one of the following options must also be provided.

CheckMinElemSize=<value>
Checks the minimum element size criteria while fixing the element center off mid and edge off solid edge problems. Valid values are 1 and 2.
MinEdgeOffEdgeDeviation=<value>
Detects element edges off solid sides with its value as minimum deviation. Valid values are > 0.0.
MinElemCenterDeviation=<value>
Detects element centers off middle with its value as minimum deviation. Valid values are > 0.0.
MinNodeOffMidDeviation=<value>
Detects nodes off middle with its value as minimum deviation. Valid values are > 0.0.
MinNodeOffSolidEdgeDeviation=<value>
Detects nodes off solid sides with its value as minimum deviation. Valid values are > 0.0.
MinNodeOutOfSolidDeviation=<value>
Detects nodes out of solid with its value as minimum deviation. Valid values are > 0.0.

Examples

To detect all problem types:
*createmark components 1 "shell"
*createmark components 2 "MidmeshEdges" "Mid"
*midmesh_inspect_init SourceEntityType=components SourceMark=1 TargetEntityType=components TargetMark=2 MinNodeOffMidDeviation=0.2 MinNodeOffSolidEdgeDeviation=0.2 MinNodeOutOfSolidDeviation=0.2 MinEdgeOffEdgeDeviation=0.2 MinElemCenterOffMidDeviation=0.3 CheckMinElemSize=1
*midmesh_inspect_end
To detect and correct nodes off mid, delete empty sets, and shut down the inspect module:
*createmark components 1 "shell"
*createmark components 2 "MidmeshEdges" "Mid"
*midmesh_inspect_init SourceEntityType=components SourceMark=1 TargetEntityType=components TargetMark=2 MinNodeOffMidDeviation=0.2
*midmesh_inspect_fix_problems nodes 2 ProblemType=NodeOffMid SmoothClusters=1 SmoothMethod=Auto
*midmesh_inspect_delete_sets 2
*midmesh_inspect_end

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

2021