*compute_midmesh_thickness
Calculates the thickness of a midmesh and assigns properties.
Syntax
*compute_midmesh_thickness mesh_entity_type mesh_mark_id geom_entity_type geom_mark_id string_array number_of_strings
Type
HyperMesh Tcl Modify Command
Description
Computes the thickness of the midmesh elements based on the proximity with the geometry. New properties are created with thickness assigned. The command expects a baseline property with the name t0 to exist before execution. It estimates thickness and assigns the thicknesses to new properties, using the t0 property as a template. Optionally, an expected minimum and maximum thicknesses can be supplied, which will be used and a guide for the computation.
This functionality is currently supported for the OptiStruct, Radioss, Nastran, Abaqus, LS-DYNA and ANSYS user profiles.
Inputs
- mesh_entity_type
- Entity type used for mesh input. Valid values are:
- Elements
- Components
- mesh_mark_id
- The ID of the mark containing the mesh input. Valid values are 1 and 2.
- geom_entity_type
- Entity type used for geometry input. Valid values are:
- solids
- surfaces
- elements
- components
- geom_mark_id
- The ID of the mark containing the geometry input. 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.
Examples
*createmark elems 1 all
*createmark surfs 1 displayed
*createstringarray 2 {MinThickness: 0.1} {MaxThickness: 1.0}
*compute_midmesh_thickness elems 1 surfs 1 1 2
*createmark elems 1 all
*createmark surfs 1 displayed
*createstringarray 14 "ThicknessOutputOption : PROPERTYONCOMPONENTS" "NeedOffset : 0" \
"ThicknessCorrectionMethod : Interpolation" "ConnectionInterpolationFactor : 1.0" \
"LogFile : C:/Users/ Temp/__ThicknessCalculationLog263.log" \
"CardImage : SHELL63p" "GroupingTolerance : 0.2" "NumDecimals : Automatic" \
"NumDecimalsOffset : Automatic" "MaxInclinationOfMidMeshWithSolid : 35" "MaxThicknessGradient : 2.0" \
"ThicknessMeasurementLocation : Default" "SkipOutsideMeshFromCorrection : 0" \
"MaxRelativeChordalDeviation : 0.1"
*compute_midmesh_thickness elems 1 surfs 1 1 2
*createmark elems 1 all
*createmark surfs 1 displayed
*createstringarray 14 "ThicknessOutputOption : PROPERTYONCOMPONENTS" "NeedOffset : 0" \
"ThicknessCorrectionMethod : Interpolation" "ConnectionInterpolationFactor : 1.0" \
"LogFile : C:/Users/Temp/__ThicknessCalculationLog263.log" \
" CardImage : SECTYPE" "GroupingTolerance : 0.2" "NumDecimals : Automatic" \
"NumDecimalsOffset : Automatic" "MaxInclinationOfMidMeshWithSolid : 35" "MaxThicknessGradient : 2.0" \
"ThicknessMeasurementLocation : Default" "SkipOutsideMeshFromCorrection : 0" \
"MaxRelativeChordalDeviation : 0.1"
*compute_midmesh_thickness elems 1 surfs 1 1 2
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0.101
2017.1 - New options AssignMidIntervalAsThickness, FixedInterval and StartThickness added to support thickness grouping into intervals.
2021.1 - New options RegroupThicknessVariationFactor,RenameRetainedComponents, and ThicknessAssignMethod to enhance thickness grouping. Removed ThicknessOutputOption value PropertyOnComponents.