*morphsculptmeshfea

Sculpts the affected elements according to the selected tools and parameters using a finite element solver to resolve the mesh stretching

Syntax

*morphsculptmeshfea e_entity_type e_mark_id s_entity_type s_mark_id t_entity_type t_mark_id n_entity_type n_mark_id linear tool t_vec t_line_list t_node_list t_plane r_node tsize offset path p_line_list p_node_list s_vec push remesh con props mode

Type

HyperMesh Tcl Modify

Description

This command will sculpt the affected elements using the selected tool (ball, cone, cylinder, plane, line, node list, surface, or mesh) along the specified path (node list or line) while using a linear or non-linear finite element solver to resolve the mesh stretching between the tool and the fixed nodes.

Inputs

e_entity_type
Must be set to elems.
e_mark_id
The mark ID for affected elements. Valid values are 1 and 2.
s_entity_type
Must be set to surfs.
s_mark_id
The mark ID for surfaces defining the sculpting tool (tool 5).
t_entity_type
Must be set to elems.
t_mark_id
The mark ID of elements defining the sculpting tool (tool 6).
n_entity_type
Must be set to nodes.
n_mark_id
The mark ID of the fixed nodes. Valid values are 1 and 2. The stretching of the mesh will occur between the nodes which are sculpted and the fixed nodes.
linear
0 – Use non-linear analysis to determine mesh stretching (RADIOSS)
1 – Use linear analysis to determine mesh stretching (OptiStruct)
tool
0 – ball
1 – cone
2 – cylinder
3 – line from line list
4 – plane
5 – surfaces
6 – mesh
7 – line from nodes
t_vec
Temporary orientation vector ID for cylinder sculpting tool (tool 2).
t_line_list
Line list ID for line sculpting tool (tool 3).
t_node_list
Node list ID for node list and line sculpting tools (tools 3 and 7).
t_plane
Temporary plane ID for plane sculpting tool (tool 4).
r_node
ID of reference node for positioning line, surface, and mesh tools (tools 3, 5, and 6).
tsize
radius for ball and cylinder tools.
angle for cone tool.
taper angle for line, surface, and mesh tools.
offset
Amount of offset for tool in sculpting direction.
path
0 – Along node list - smooth (using ppoints)
1 – Along line list (using plines and ppoints)
2 – Along node list - linear (using ppoints)
p_line_list
Line list ID for path.
p_node_list
Node list ID for path.
s_vec
Temporary vector ID defining sculpting direction.
push
0 – pull
1 – push
remesh
0 – Do not remesh
1 – Remesh (not supported)
2 – Interactive mode
3 – Interactive mode with remeshing (not supported)
con
0 – Do not use constraints
1 – Use constraints
props
0 – Automatically generate properties and materials for the affected elements
1 – Use existing properties and materials for the affected elements
mode
0 or 1 – Sculpt along vector using fraction compression
2 or 3 – Sculpt normal to mesh using fraction compression
Note that sculpting along normal to the mesh requires that shell elements be included in the affected elements. If solid elements are covered with a layer of shell elements then the solid elements will be sculpted as well.

Example

To sculpt all elements using a ball of size 5.0 normal to the mesh using linear analysis and automatic properties:

*createmark elems 1 "all"
*createmark surfs 1
*createmark elems 2
*createmark nodes 1 12 13 14 15
*createlist lines 1
*createlist nodes 1
*createlist lines 2 12
*createlist nodes 2
*createvector 1 1.0 0.0 0.0
*createplane 1,1.0 0.0 0.0 1.0 0.0 0.0
*createvector 2 16.9220 -3.7030 -25.1660
*morphsculptmeshfea elems 1 surfs 1 elems 2 nodes 1 1 0 1 1 1 1 7027 5.0 0.0 0 2 2 2 1 0 1 0 0

Errors

Incorrect usage of *morphsculptmeshfea results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {* morphsculptmeshfea elems 1 surfs 1 elems 2 nodes 1 1 0 1 1 1 1 7027 5.0 0.0 0 2 2 2 1 0 1 0 0} ] } {
# Handle error
}

"Error generating path." - occurs if the tool path could not be generated from the selected nodes and lines in plines and ppoints.

"Error creating surface from lines." - occurs if a surface could not be constructed using the line tool and the line path.

"Error creating tacit surface" - occurs if the elements selected for the mesh type tool could not be converted into a tacit surface. This can happen for discontinuous meshes and meshes with connectivity errors.

"Error generating normal vectors." - occurs if the vectors for determining the normal direction for sculpting could not be calculated. Make sure that the affected elements include well formed shells.

Version History

10.0