*wind_tunnel_mesh

Generates a hex mesh for the far-field, a tetra mesh for the interface clearance, and a 3D boundary-layer mesh on the body.

Syntax

*wind_tunnel_mesh mark_id elem_size interface_clearance front_space rear_space side_space top_space string_array number_of_strings

Type

HyperMesh Tcl Modify

Description

Generates a hex mesh for the far-field, a tetra mesh for the interface clearance, and a 3D boundary-layer mesh on the body.

Inputs

mark_id
The ID of the mark containing the body components. Valid values are 1 and 2.
elem_size
The target far-field hex element size.
interface_clearance
Clearance value from body. The tetra mesh will be generated to the clearance volume.
front_space
Far-field front space from body.
rear_space
Far-field rear space from body.
side_space
Far-field side space from body.
top_space
Far-field top space from body.
string_array
The ID of the string array that contains the additional meshing parameters. The string array is created using the *createstringarray command. This should always be set to 1.
Mesh parameters are available for the 3D boundary layer for the body, as well as the 3D boundary layer for the bottom side hex mesh. Valid parameters and their syntax are:
tet_bl_param: <first layer thickness> <growth rate> <number of boundary layers>
bottom_bl_param: <first layer thickness> <growth rate> <number of boundary layers>
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray.

Example

To generate a wind tunnel mesh using all components for the body, a hex size of 10.0, an interface clearance of 20, a far-field size of 300 (front)/400 (rear)/200 (side)/200 (top), and specific boundary layer meshing parameters:

*createstringarray 2 "tet_bl_param: 11 0.01 1.2" "bottom_bl_param: 5 0.1 1.3"
*createmark components 1 all
*wind_tunnel_mesh 1 10.0 20.0 300 400 200 200 1 2

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.101