*voxel_lattice_hex_mesh_add_box

Adds elements within a box to the include entities in the voxel domain.

Syntax

*voxel_lattice_hex_mesh_add_box entity_type mark_id x1 y1 z1 x2 y2 z2 i1 j1 k1 i2 j2 k2

Type

HyperMesh Tcl Modify Command

Description

Adds elements within a box to the include entities in the voxel domain. The elements are determined by the box with the given input lower and upper corner coordinates, and components of x and y axes of the box along the global axis system. It internally adds the triangulation elements to the voxel mesh creation if there are any gaps, holes, or openings between the intersection of the box faces with the shell elements bound by the box.

This must be preceeded by a call to *voxel_lattice_hex_mesh_init and must be followed by a call to *voxel_lattice_hex_mesh_create.

Inputs

entity_type
The type of entity within the box to add. Valid values are elems.
mark_id
The ID of mark of entities to consider to add. Valid values are 1 and 2.
x1
The x coordinate of the lower corner in the global system.
y1
The y coordinate of the lower corner in the global system.
z1
The z coordinate of the lower corner in the global system.
x2
The x coordinate of the upper corner in the global system.
y2
The y coordinate of the upper corner in the global system.
z2
The z coordinate of the upper corner in the global system.
i1
The i-th component of the x-axis of the box at the lower corner of the box along the global x axis.
j1
The j-th component of the x axis of the box at the lower corner of the box along the global x axis.
k1
The k-th component of the x axis of the box at the lower corner of the box along the global x axis.
i2
The i-th component of the y axis of the box at the lower corner of the box along the global x axis.
j2
The j-th component of the y axis of the box at the lower corner of the box along the global x axis.
k2
The k-th component of the y axis of the box at the lower corner of the box along the global x axis.

Examples

To add elements within the box with corners at (100, 100, 100) and (400, 400, 400) and generate a voxel mesh of size 5.0:

*voxel_lattice_hex_mesh_init 5.0
*voxel_lattice_hex_mesh_add_box elems 1 100.0 100.0 100.0 400.0 400.0 400.0 1 0 0 0 1 0
*voxel_lattice_hex_mesh_create
*voxel_lattice_hex_mesh_end

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

2021