Checking of penetration in HyperMesh with a TCL script.
Checking of penetration in HyperMesh with a TCL script.
(OP)
Hi,
I want to make a TCL script for HyperMesh to test my model for penetration.
I am using *checkpenetration command. HyperMesh checks my model but I do not know how to check from TCL do I have any penetration in the model or not.
How can I test penetration status from TCL, how I can get a list of elements with penetration from a script.
Thanks for any help.
Regards,
akaBarten
I want to make a TCL script for HyperMesh to test my model for penetration.
I am using *checkpenetration command. HyperMesh checks my model but I do not know how to check from TCL do I have any penetration in the model or not.
How can I test penetration status from TCL, how I can get a list of elements with penetration from a script.
Thanks for any help.
Regards,
akaBarten





RE: Checking of penetration in HyperMesh with a TCL script.
*checkpenetration is the "new" command feeding the penetration Tab. The commands to retrieve those results are not documented (yet) which usually is a sign for being under construction for the upcoming version(s).
If you use the "old" function *penetrationchecktwo,
you can easily save the results using *savefailednodesvectors
and then e.g. query the node mark
*createmark nodes 1 retrieve
and check for contents.
Is that ok or do zou explicitly need the new command?
Regards
Happy New year thought
HyperWerker
RE: Checking of penetration in HyperMesh with a TCL script.
Many thanks for anwser.
>>> Is that ok or do you explicitly need the new command?
I do not think so. I choose *checkpenetration option since I found it in command file.
By the way I got also anwser from Altair support with following workaround:
*checkpenetration elements 1 0 1 0 0 0 0 0
::hmCollisionGui::FindTreeSelection 0 0 0 0 0
*marktousermark elements 1
and it works as I wish.
Best Regards,
Barten