*tetmesh_create_size_ctrl

Creates a special component for use as an element size control box.

Syntax

*tetmesh_create_size_ctrl string

Type

HyperMesh Tcl Modify Command

Description

This command generates a special component representing an elem-size-control/refinement box for use with the *tetmesh or *tetmesh_set_input commands. The name of the created component has the prefix "^elem_size_ctrl_", followed by an instance number and then the elem size (e.g. "^elem_size_ctrl_0_0.02"). An instance number is used to distinguish different boxes having the same elem size.

Inputs

string
A double quoted string of 25 space or comma separated real numbers. The first 24 numbers are the 3D coordinates of the 8 vertices of the box (x1 y1 z1 x2 y2 z2...x8 y8 z8). The order of these vertices is the same as a first order hex element (vertices 1-4 on the bottom face with counter-clockwise orientation, vertices 5-8 on the top face with the same orientation). The last value is the user specified tetra element size for inside and near the box. A well-defined box should be convex.

Example

To create a size control box with a mesh size of 0.02:

*tetmesh_create_size_ctrl "205.163,-144.90,24.91,255.09,-144.90,24.91,255.09,-33.68,24.91,205.16,-33.68,24.91,205.16,-144.90,144.90,255.09,
-144.90,144.90,255.09,-33.68,144.90,205.16,-33.68,144.90,0.02"

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

11.0