*elementqualityoptimizeelement_2
Optimizes 2D element node locations to improve the element and adjacent elements’ quality index according to pre-set quality criteria.
Syntax
*elementqualityoptimizeelement_2 id midnodes optimize
Type
HyperMesh Tcl Modify Command
Description
Optimizes 2D element node locations to improve the element and adjacent elements’ quality index according to pre-set quality criteria.
This command only functions between *elementqualitysetup and *elementqualityshutdown commands.
The element quality criteria for optimization must be set before using this command. The command may be applied at any time without resetting the current quality criteria.
Inputs
- id
- The ID of the element to optimize.
- midnodes
- 0 - Do not consider neighboring mid-nodes during optimization
- optimize
- 1 - Along surface
Examples
To optimize the node locations of the elements with IDs 397, 432, and 102 using quality
criteria from a file:
*readqualitycriteria c:/criteria/mycriteria.txt
*createmark elems 1 displayed
*elementqualitysetup 1
*elementqualityoptimizeelement_2 397 1 1
*elementqualityoptimizeelement_2 432 0 5
*elementqualityoptimizeelement_2 102 1 5
*elementqualityshutdown 1
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
2020.1