*sphgenerate_new
Generates SPH elements with various options.
Syntax
*sphgenerate_new entity_type mark_id string_array number_of_strings
Type
HyperMesh Tcl Modify Command
Description
Generates SPH particles within bounded, semi-watertight (some small gaps less than pitch size allowed), regions. The relative placement of these particles is specified using the pitch distance and the fill method parameters. The region(s) can be specified using elements, elements belonging to components, and either geometric surfaces or solids. The amount and direction of fill can also be specified. The mass of each resulting particle is calculated using either an input density or the total mass of the filled space. Full SPH functionality is available for Radioss, LS-DYNA and PAM-CRASH user profiles. Execution is supported in other profiles, without the creation of solver data.
Inputs
- entity_type
- The type of entity that defines the volumes. Valid values are elements, comps (elements only), surfs or solids.
- mark_id
- The ID of the mark containing the input entities. Valid values are 1 and 2.
- string_array
- The ID of the string array that contains the array of meshing 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. This must equal the number of columns in the table.
Example
*createmark components 1 all
*createstringarray 10 "PitchSize: 1" "Config: 0" "MassType: 0" "MassDensity: 1" "PartialFill: 1 1 50 0 1 0" "Reference: 1 35.0 11.0 -5.0 0" "VolumeType: 0 0 0 0" "WallClearance: 0.1" "WallOffset: 30" "ElemToComps: 1"
*sphgenerate_new components 1 1 10
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.110
2017 Execution in all user profiles now supported, without the creation of solver data.