*setcleanupglobalflags

Sets or clears global flags used for switching of some default modes for geometry autocleanup, element cleanup and element QI smoothing.

Syntax

*setcleanupglobalflags flags mode

Type

HyperMesh Tcl Modify

Description

This command takes as input a mask of flags used for controlling some of the default modes for geometry autocleanup, element cleanup and element QI smoothing. It sets or clears the global cleanup flags according to the specified mode.

The commands which can be affected by resetting the global cleanup default flags are as follows:

*autotopocleanup
*hm_auto_elem_cleanup
*hm_batchmesh
*hm_failed_elements_cleanup
*optimsmooth
*qismoothfixfailed
*qismoothconstrained

Inputs

flags
Flags bit value that indicate the global settings to set. To set multiple flags at once, sum the bit values for the requested flags. The default bit value for each flag is 0.
  • 1 – Ignore component boundaries flag.
  • 2 – Do not allow preservation of special transversal surfaces on lines generated during geometry autocleanup and batchmeshing flag.
  • 4 – Fixed vertices created by geometry autocleanup do not remain fixed after completion flag.
mode
The mode of the manipulation of the global cleanup flags. The supported modes are as follows:
  • 0 – resets all flags bits to 0.
  • 1 – sets the bits specified by flags without changing other flag bits.
  • 2 – sets all flags at once to the specified bit value.

Examples

Assign the current word of all flags to the variable prv_flgs. Setup the flags to ignore component boundaries and to not create auxiliary surfaces. Then element QI smoothing is performed. Finally, all flags are restored to their original state:

set prv_flags [hm_getcleanupglobalflags 0]
*setcleanupglobalflags 3 1

*createmark elements 1 "all"
*createmark nodes 1 ""
*optimsmooth 1 1 "C:/Altair/hw10.0/hm/batchmesh/8mm.criteria" 30.0 0.20 5 0 

*setcleanupglobalflags $prv_flags 2 

To set the auxiliary surface generation to the default:

*setcleanupglobalflags 2 0

To clear the ignore component boundaries flag without changing any other flags:

*setcleanupglobalflags 1 0

To clear all supported flags:

*setcleanupglobalflags 0 2

or:

*setcleanupglobalflags 7 0

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

10.0