Switches Controlling CLEANUP UNUSED
Switches Controlling CLEANUP UNUSED
Clearly PRIMER must search through the model(s) chosen to identify things that are no longer needed, and there are several switches which may be used to control this process.
CLEANUP_ITERATIVE Whether to use iterative searching for items.
Sometimes when an item is found to be redundant removing it can lead to other items becoming redundant. It may require multiple passes through the model to identify all these consequential deletions.
For example, if a model contains a part with no elements then in the first iteration the part will be flagged for removal. Iteration 2 will find that the section and material properties etc that this part referenced are also no longer required and will flag them for removal (unless other parts reference these). Iteration 3 will find any loadcurves etc used by the materials that have been flagged for removal (if these aren't used by other materials). And so on until nothing remains to be found.
By default this iterative process will be used, but you can turn it off in order to limit the extent of a clean-up operation to a single pass. This can give more control over what is removed in each CLEANUP operation.
Therefore PRIMER treats it as an error, and provides the following options for dealing with it:
.There is an exception in the last ( ) case in that where a reference to a set is optional, for example "set of nodes exempted from ..." where replacing the reference with a zero would be harmless, that solution is adopted instead and the "owner" definition is not marked for deletion. |
||||||||
EMPTY_PART_ACTION Dealing with empty Parts
As with empty sets this is not strictly illegal, but it can cause problems in Ansys LS-DYNA. |
Therefore PRIMER treats it as an error and provides the following options:
| No action | The part is not removed, and references to it remain. |
| Del Part, Owner = 0 | The part is marked for deletion, and any references to it are replaced with a zero. This can cause unexpected outcomes when < part id = 0 > implies "use the whole model", as is the case in some contexts - use with care! |
| Del Part & Owner | Both the part and the item referring to it are marked for deletion. This is the default setting, and generally the most useful. |
EMPTY_IFILE_ACTION Dealing with empty include files..
This can be a nuisance since if it is an *INCLUDE_TRANSFORM then any *DEFINE_TRANSFORMATION that it references will also be locked against deletion, as will any parameters used on either of these cards, even if these are legitimate subjects for a "clean up". |
|
|
From release 12 onwards there is now an " " option:
|
NON_STRUCT_ITEMS Dealing with items that have no structural purposeFollowing the removal of other things you can be left with valid and legal objects which are nevertheless "non-structural", meaning that they will not play any part in an analysis.
|
|
|
PRIMER can detect and mark for deletion the following:
Some of the seatbelt-related elements (sliprings, pretensioners, etc) can also be non-structural by the definitions above. However they may often be imported as part of pre-meshed dummy models, and will become structural when attached to a vehicle, thus it would be unfortunate if they were accidentally deleted. Therefore they are not included in these checks and will need to be deleted manually if required, but the overhead of leaving them is minimal. |
Other things marked for deletion during a cleanup operation.As well as items which are unused, plus those which meet the criteria above, the following things are also automatically checked and marked for deletion as required: CONSTRAINED definitions which have become redundant or invalid:
SEGMENTS that are no longer valid:
"Latent" definitions serving no useful purpose plus their referees:
|
When all the contents of a SET have been removed (following a
REMOVE
operation) the empty SET definition itself may remain.
If all the elements have been deleted from (or transferred out of) a
part then it will be empty.
If cleaning up of the model will leave empty include files the historic
behaviour has been not to remove these, but rather to leave the the