*create_voxel_lattice_mesh
Creates 1D and 2D axis parallel lattice meshes.
Syntax
*create_voxel_lattice_mesh entity_type_2d mark_id_2d mark_id_1d origin_x origin_y origin_z voxel_size_x voxel_size_y voxel_size_z mesh_extent_x mesh_extent_y mesh_extent_z
Type
HyperMesh Tcl Modify Command
Description
Creates 1D and 2D axis parallel lattice meshes.
Inputs
- entity_type_2d
- 2D input entity types. Valid values are:
- surfs
- elems
- mark_id_2d
- The ID of the mark containing the 2D input entities. Valid values are 1 and 2. If no 2D entities are used as input, this should be 0.
- mark_id_1d
- The ID of the mark containing the 1D input entities. Valid values are 1 and 2. If no 1D entities are used as input, this should be 0.
- origin_x
- The coordinates of the domain origin.
- origin_y
- The coordinates of the domain origin.
- origin_z
- The coordinates of the domain origin.
- voxel_size_x
- The voxel size discretization along the axes.
- voxel_size_y
- The voxel size discretization along the axes.
- voxel_size_z
- The voxel size discretization along the axes.
- mesh_extent_x
- The boundary of the domain to be considered, specified using the rightmost corner of the domain bounding box relative to the origin. The rightmost extreme of the domain is calculated as (voxel_size_x * mesh_extent_x).
- mesh_extent_y
- The boundary of the domain to be considered, specified using the rightmost corner of the domain bounding box relative to the origin. The rightmost extreme of the domain is calculated as (voxel_size_y * mesh_extent_y).
- mesh_extent_z
- The boundary of the domain to be considered, specified using the rightmost corner of the domain bounding box relative to the origin. The rightmost extreme of the domain is calculated as (voxel_size_z * mesh_extent_z).
Examples
To create a lattice mesh for all surfaces and lines that fall within the domain boundary
defined by a box with corners (0,0,0) and (100, 100, 100), with unit size discretization
along all
axes:
*createmark surfs 1 all
*createmark lines 1 all
*create_voxel_lattice_mesh surfs 1 1 0 0 0 1 1 1 100 100 100
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
14.0