*solverdeckcleanup
Deletes or retains certain solver specific entities, based on their validity in the current model.
Syntax
*solverdeckcleanup solver mark_id
Type
HyperMesh Tcl Modify Command
Description
Deletes or retains certain solver specific entities, based on their validity in the current model. This is useful after a box trim operation.
Inputs
- solver
- The source solver name. Currently only LS-DYNA is supported.
- mark_id
- The ID of the mark containing the entities to consider for cleanup. Valid values are 1 and 2.
The following operations are performed:
- * AIRBAG_ADVANCED_ALE (control volume): Delete if at least one bag ID is not defined.
- *AIRBAG_INTERACTION (control volume): Delete if the card image does not contain both AB1 and AB2 values. Both have to be present for the entity to be retained.
- *AIRBAG_PARTICLE (control volume): Delete if the card image does not reference either a part set ID or part ID corresponding to variables SID1 and SID2. Only one has to be present for the entity to be retained.
- *AIRBAG_<option> (control volume): Delete if the secondary definition is empty.
- *ALE_options (ALE group)
- *CONSTRAINED_EULER_IN_EULER (group)
- *CONSTRAINED_LAGRANGE_IN_SOLID (ALE group)
- *CONSTRAINED_RIGID_BODIES (group)
- *CONSTRAINED_TIE-BREAK (group)
- *CONTACT (group): Delete if either the main or secondary definition is missing or empty.
- *CONSTRAINED_EXTRA_NODE (group): Delete if no nodes or node set are associated. In its card image, remove the keyword if PSID is assigned as blank.
The following keywords, if defined, do not need explicit entity definitions as they
consider the entire model, and will be retained:
- *CONTACT (group): If main or secondary type is assigned a value of 5.
- *LOAD_BLAST
- *LOAD_BODY
- *LOAD_BRODE
- *INITIAL_VELOCITY_<option>
- *RIGIDWALL: If variable NSID is assigned a value of 0.
Example
To cleanup all relevant entities on mark
1:
*solverdeckcleanup LsDyna 1
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
11.0.130