*morphmapdifferencesurf

Maps selected nodes from one surface or element mark to the other surface or element mark optionally following the curvature differences (rotate) between the surfaces or element marks and/or mapping about an axis (axis and plane) or using a number of linear mapping options.

Syntax

*morphmapdifferencesurf m_entity_type m_mark_id f_entity_type f_mark_id i_entity_type i_mark_id t_entity_type t_mark_id r_plane rotate axial sym con blend mbias fbias

Type

HyperMesh Tcl Modify Command

Description

This command maps selected nodes from one surface or element mark to the other surface or element mark optionally following the curvature differences (rotate) between the surfaces or element marks and/or mapping about an axis (axis and plane) or using a number of linear mapping options. Note that you can map from a mesh to a surface or surface to a mesh as well as mapping from a mesh to a mesh or a surface to a surface.
Note: This command does not do "true" mapping, that is nodes will not be "fitted" from one surface or element mark to another. Instead, a vector (the plane normal in r_plane) is used to find the target point on the target surface or element mark given a reference point on the initial surface or element mark.

If blend is set to 1, no fixed nodes have been selected, and no mapped nodes are a part of any domain, this command will automatically assign all non-mapped nodes as fixed nodes.

If blend is set to 2, the blending will only be applied to nodes which lie along the mesh between the fixed nodes and the mapped nodes.

Inputs

m_entity_type
Must be set to nodes.
m_mark_id
The mark ID for mapped nodes. Valid values are 1 and 2.
f_entity_type
Must be set to nodes.
f_mark_id
The mark ID for fixed nodes. Valid values are 1 and 2.
i_entity_type
Set to surfs or elems.
i_mark_id
The mark ID for initial surfaces or mesh. Valid values are 1 and 2.
t_entity_type
Set to surfs or elems.
t_mark_id
The mark ID for target surfaces or mesh. Valid values are 1 and 2.
r_plane
Plane used for axis of rotation. Valid values are 1 and 2.
rotate
0 - Linear point to point mapping between lines.
1 - Rotate nodes along with curvature difference between lines
axial
0 - Apply mapping in x, y, z coordinates
1 - Apply mapping about axis defined by r_plane
sym
0 - Do not use symmetry (only option).
con
0 - Do not use constraints.
1 - Use constraints
blend
0 - Do not blend unselected nodes.
1 - Blend all nodes other than mapped and fixed nodes
2 - Blend only nodes on mesh between mapped and fixed nodes
mbias
Bias factor of mapped nodes.
fbias
Bias factor of fixed nodes.

Example

To map nodes from one surface mark to another using rotation:

*createmark nodes 1 1 2 3
*createmark nodes 2 11 12 13
*createmark surfs 1 22 23
*createmark surfs 2 32 33
*createplane 1,1.0 0.0 0.0 1.0 0.0 0.0
*morphmapdifferencesurf nodes 1 nodes 2 surfs 1 surfs 2 1 1 0 1 0 1.0 1.0

To map nodes from one surface mark to an element mark about an axis with no rotation, blending through the mesh, and biasing factors of 2.0:

*createmark nodes 1 1 2 3
*createmark nodes 2 11 12 13
*createmark surfs 1 22 23
*createmark elems 1 32 33 34 35 36
*createplane 1,1.0 0.0 0.0 1.0 0.0 0.0
*morphmapdifferencesurf nodes 1 nodes 2 surfs 1 elems 1 1 0 1 1 2 2.0 2.0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

"Not enough memory." - occurs if there is not enough memory to complete the command.