*freeshapegridconstraintsupdatewithsetoption
Updates the grid constraints of a free shape design variable.
Syntax
*freeshapegridconstraintsupdatewithsetoption mark_id name ctype syst_id x y z update_flag set_id
Type
HyperMesh Tcl Modify
Description
This command updates the grid constraints of a free shape design variable that corresponds to a DSHAPE card. The grid constraints on the design variable can be updated either by directly selecting nodes or by pointing to a nodal entity set.
Inputs
- mark_id
- If nodes are used in updating the design variable, this represents the mark ID containing those nodes. If set to 0, set_id will be used.
- name
- Name of the design variable to update.
- ctype
- The type of constraint applied:
- 1 – Grid is fixed.
- 2 – Grid is forced to move along the vector specified by the x, y, and z components.
- 3 – Grid is forced to remain on a plane whose normal is determined by the x, y, and z components.
- syst_id
- The coordinate system ID in which the x, y, and z components are resolved.
- x, y, z
- Values are defined based on ctype.
- update_flag
- Flag that indicates how the grid constraints must be updated:
- 1 – Add the selected nodes or nodal entity set to the currently existing grid constraints.
- 2 – Remove the selected nodes or nodal entity set from the currently existing grid constraints.
- 3 – Update the grid constraint with the selected nodes or nodal entity set.
- set_id
- If a nodal entity set is used in updating the free shape design variable, set_id is the entity set ID. If not required, set to 0.
Examples
To add nodes 1-100 as fixed grid constraints to free shape design variable
fsh1:
*createmark nodes 1 1-100
*freeshapegridconstraintsupdatewithsetoption 1 "fsh1" 1 0 0 0 0 1 0
To update the grid constraints of free shape design variable fsh2 to use a pre-existing
nodal entity set with ID 25, and force the nodes in the set to move along the vector
specified by (5, 10, and 15) in the global
system:
* freeshapegridconstraintsupdatewithsetoption 0 "fsh2" 2 0 5 10 15 3 25
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