*elementqualitysmoothnodesnew

Smooths/optimizes nodes of selected elements.

Syntax

*elementqualitysmoothnodesnew elem_mark_id nodes_mark_id algorithm target_qi max_iterations time_limit

Type

HyperMesh Tcl Modify Command

Description

This command smooths/optimizes nodes of selected elements.

This command only functions between an *elementqualitysetup command and an *elementqualityshutdown command.

Current 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

elem_mark_id
The mark ID containing the elements to smooth. Valid values are 1 and 2.
node_mark_id
The mark ID containing any anchor nodes. Valid values are 1 and 2.
algorithm
0 - Autodecide.
1 - Size corrected.
2 - Shape corrected.
3 - QI optimization.
4 - QI optimization maintaining nodes on geometry edges. For models without geometry, this is the same as 3.
target_qi
The target QI value, when algorithm is set to 3.
max_iterations
The maximum number of iterations, when algorithm is set to 3.
time_limit
The maximum time limit, when algorithm is set to 3.

Example

To smooth elements 1-100 using QI optimization with a target QI of 0.2 using quality criteria from a file:
*readqualitycriteria c:/criteria/mycriteria.txt
*createmark elems 1 displayed
*elementqualitysetup 1
*createmark elems 1 1-100
*elementqualitysmoothnodesnew 1 1 3 0.2 5 0
*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

13.0