*freeshapeparametersupdatewithlimits
Updates the parameters of a free shape design variable.
Syntax
*freeshapeparametersupdatewithlimits name dtype mvfactor nsmooth maxgrowblank maxgrow maxshrinkblank maxshrink
Type
HyperMesh Tcl Modify
Description
This command updates the parameters of a free shape design variable.
Inputs
- name
- Name of the free shape design variable.
- dtype
- Direction type for free shape variation. Possible values are:
- 1 – unconstrained
- 2 – grow
- 3 – shrink
- mvfactor
- Initial perturbation factor Type: double.
- nsmooth
- Number of mesh smoothing layers Type: integer.
- maxgrowblank
- Flag to indicate if maxgrow is blank.
- 1 – ignore maxgrow.
- 0 – use maxgrow.
- maxgrow
- Maximum growing distance Type: double. If maxgrowblank is set to 1, this value is ignored.
- maxshrinkblank
- Flag to indicate if maxshrink is blank.
- 1 – ignore maxshrink.
- 0 – use maxshrink.
- maxshrink
- Maximum shrinking distance Type: double. If maxshrinkblank is set to 1, this value is ignored.
Example
To update the parameters of a free shape design variable fsh1, such that the variable grows
to a distance of 12.3, using 5 smoothing layers, and an initial perturbation factor of
0.6:
*freeshapeparametersupdatewithlimits "fsh1" 2 0.6 5 0 12.3 1 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
9.0