*element_smooth_nodes

Smooths a selection of elements with optional anchor nodes.

Syntax

*element_smooth_nodes mark_id node_mark_id ?option1=<value1>? ?option2=<value2>? ... ?optionN=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Smooths a selection of elements with optional anchor nodes.

Inputs

mark_id
The ID of the mark containing the elements to smooth. Valid values are 1 and 2.
node_mark_id
The ID of the mark containing any anchor nodes. Valid values are 1 and 2.
anchorfreeedgenodes=<value>
Option to compute and add free anchor nodes from element selection to the smoothening code (default = 1).
iterations=<value>
The maximum number of smoothing iterations to perform (default 1).
smoothmethod=<value>
The smoothing method. Valid values are:
Angle - Angle correction-based smoothing
AutoDecideWithoutQI
AutoDecideWithQI - Size correction-based smoothing, and QI smoothing of failed elements with possible constrained movement of nodes off geometry edges. Control of the nodes movement off the geometry edges, the thresholds of the movement, and the element feature angle, are controlled by the current parameter file.
AutoDecideWithQI_Params_locked - Size correction-based smoothing, and QI smoothing of failed elements. Node movement off geometry edges is not allowed. The parameter file has no effect, and the element feature angle is taken from the global preferences.
QI - QI correction-based smoothing
Shape - Shape correction-based smoothing
Size - Size correction-based smoothing
timelimit=<value>
The time limit in minutes for QI and AutoDecideWithQI (default is off).

Example

To smooth elements ID 100-200 with anchor nodes ID 150 and 151 using AutoDecideWithQI_locked method:

*elementqualitysetup_new 2
*createmark elements 1 100-200
*createmark nodes 1 150 151
*element_smooth_nodes 1 1 smoothmethod=AutoDecideWithQI_locked iterations=5 anchorfreeedgenodes=1
*elementqualityshutdown 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

2019.1

2020 - Added new Method value AutoDecideWithQI_Params_locked.

2022.3 - Added new option anchornodes.

2023 - Renamed the anchornodes option to anchorfreeedgenodes.