*midsurfmesh
Creates a mesh on the mid-surface, with optional cleanup steps and mesh thickness assignment.
Syntax
*midsurfmesh entity_type mark_id string_array number_of_strings criteria_file param_file
Type
HyperMesh Tcl Modify
Description
This command creates a mesh on the mid-surface extracted from a solid body. The mesh is created using the Batchmesher approach, with optional application of geometry and elements cleanup steps. The command also optionally assigns thickness to the created mesh.
The mid-surface must already exist, and must be organized in a component with the name "Middle Surface". The mesh is applied only to surfaces in this component.
The parameters controlling mesh creation are set using specified criteria and parameters file, or can be set using flexible string input.
The assignment of thickness is available only through the string input. The thickness assignment is supported for the following user profiles:
Abaqus, LS-DYNA, Nastran, OptiStruct, RADIOSS
Inputs
- entity_type
- The type of input geometry to use when assigning thickness. Valid values are surfaces and solids. This is ignored, if thickness assignment is not requested.
- mark_id
- The ID of the mark containing the input geometry for thickness calculations. Valid values are 1 and 2.
- string_array
- The ID of the string array that contains the additional input parameters. The string array is created using the *createstringarray command. This should always be set to 1.
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
- criteria_file
- The full path and file name of the element quality criteria file to use. If the criteria are set by a preceding command, "dummy" should be used as the file name.
- param_file
- The full path and file name of the geometry cleanup parameters file to use. If the parameters are set by a preceding command, "dummy" should be used as the file name.
Examples
To mesh a mid-surface using element quality criteria C:/crit/10mm.criteria and cleanup parameters file C:/crit/10mm.param, with no additional input parameters:
*midsurfmesh solids 1 1 0 "C:/crit/10mm.criteria" "C:/crit/10mm.param"
To mesh a mid-surface using element quality criteria C:/crit/10mm.criteria and cleanup parameters file C:/crit/10mm.param, with element thickness assignment using all solid geometry (no limits on the minimum and maximum thickness):
*createmark solids 1 all
*createstringarray 1 "thickness_mode = 1"
*midsurfmesh solids 1 1 1 "C:/crit/10mm.criteria" "C:/crit/10mm.param"
The same as the previous example, but using elements quality criteria explicitly preset with *reset_qa_calculator command:
*createdoublearray 89 1 1 10 9.5 6 3 1.5 1 1 10 12 15 20 35 1 1 1 2 4.4 5 10 1 1 0 5 8 10 90 1 1 90 110 125 135 180 1 1 90 70 55 45 0 1 1 60 80 100 120 180 1 1 60 50 30 20 0 1 1 0 10 35 45 90 1 1 1 0.9 0.75 0.7 0 1 0 0 0.3 0.8 1 2 1 1 2 6 8 10 15 0 0 0.8 1 10
*reset_qa_calculator 1 89
*createmark solids 1 all
*createstringarray 1 "thickness_mode = 1"
*midsurfmesh solids 1 1 1 "dummy" "C:/crit/10mm.param"
To mesh a mid-surface with element size 12.0 (mixed elements type) using auto-generated element quality criteria and cleanup parameters, a minimum element size of 5.0, an elements feature angle of 15.0, and assigning element thickness using all solid geometry (no limits on the minimum and maximum thickness):
*createmark solids 1 all
*createstringarray 3 "elem_size = 12.0 min_elem_size = 5.0" "elem_feature_angle = 15.0" "thickness_mode = 1"
*midsurfmesh solids 1 1 3 "dummy" "dummy"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0.130