*morphmaptshpface

Adds a 2D domain perturbation to the current temporary shape.

Syntax

*morphmaptshpface d_entity_type d_mark_id e_entity_type e_mark_id s_entity_type s_mark_id plane nproj c_vec clear sym con type

Type

HyperMesh Tcl Modify

Description

This command maps a 2D domain to a plane, a mark of surfaces, or a mark of elements either normal to the target or along a vector. When mapping to surfaces or a mesh the option to fit the domain to the entities is available.

This command is part of the map to geometry function which consists of multiple commands. This command may be called any number of times, first with clear set to 1, then subsequently set to 0, followed either by one of the many *morphmapto... commands. If clear is set to 2 then the last *morphmaptshpface command is rejected.

Inputs

d_entity_type
Must be set to domains.
d_entity_mark
The ID of the mark containing the domains to be mapped. Valid values are 1 and 2.
e_entity_type
Must be set to elems.
e_entity_mark
The ID of the mark containing the elements to which the domains are mapped. Valid values are 1 and 2.
s_entity_type
Must be set to surfaces.
s_entity_mark
The ID of the mark containing the surfaces to which the domains are mapped. Valid values are 1 and 2.
plane
The ID of the plane created using *createplane to which the nodes will be projected. Must be set to 1.
nproj
0 – Project along vector given by c_vec
1 – Project normal to geometry
2 – Project normal to elements of the domain
3 - Fit to target
c_vec
The ID of vector created using *createvector for the projection direction. Must be set to 1.
clear
Determine if/how to delete perturbations:
0 - Add perturbation
1 - Clear temporary and add perturbation
2 - Reject last *morphmaptshpface operation
sym
0 - Do not use symmetry
co
1 - Use constraints
type
The type of target to be mapped to:
2 - Plane
3 - Surface
4 - Elements

Example

To map a 2D domain to a surface using the fitting option:

*createmark domains 2 10
*createmark elements 1
*createmark surfaces 1 3
*createplane 1 1 0 0 0 0 0
*createvector 1 1 0 0
*morphmaptshpface domains 2 elements 1 surfaces 1 1 3 1 1 0 1 3

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

12.0.110