*cleanupmodelfile

Cleans up model specific data after a box trim operation.

Syntax

*cleanupmodelfile mark_id x0 y0 z0 x1 y1 z1 operation

Type

HyperMesh Tcl Modify Command

Description

This command cleans up model specific data after a box trim operation.

Inputs

mark_id
The ID of the mark containing the input entities. The use depends on the operation argument. Valid values are 1 and 2. Supported entity types include:
  • Groups
  • Controlvols
  • Loads
x0
Lower bound x-coordinate.
y0
Lower bound y-coordinate.
z0
Lower bound z-coordinate.
x1
Upper bound x-coordinate.
y1
Upper bound y-coordinate.
z1
Upper bound z-coordinate.
operation
The operation to perform. Valid values are:
deleteoutsidebox
Deletes all elements, connectors, blocks and groups outside the specified box.
deleteemptyunused
Deletes all empty comps, assems, sets, contactsurfs, outputblocks, groups, plies and rigidwalls, and all unused mats, props, sets, beamsects, curves, systems, vectors, laminates, plies and tables. mark_id and x0 through z1 are ignored.
preservesolverdata
Preserves all control cards by adding them to mark_id. x0 through z1 are ignored.
postclean
Delete the rest of the items not on mark_id. x0 through z1 are ignored.

Examples

To cleanup model and solver data for LS-DYNA, using a box of 0, 0, 0 - 100,100,100:
*createmark elems 2 "by box" $x0 $y0 $z0 $x1 $y1 $z1 0 "outside" 1 0 0
*cleanupmodelfile 2 0 0 0 100 100 100 "deleteoutsidebox"
*cleanupmodelfile 2 0 0 0 0 0 0 "deleteemptyunused"*createmark comps 1 all
hm_getincludeisolationentitiesmark 1 2 1 1
*cleanupmodelfile 2 0 0 0 0 0 0 "preservesolverdata"
if { $template_type == "lsdyna" } {
*solverdeckcleanup LsDyna 2
*solverdeckcleanup LsDyna 2
}
*cleanupmodelfile 2 0 0 0 0 0 0 "deleteemptyunused"
*cleanupmodelfile 2 0 0 0 0 0 0 "postclean"

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