tcl command: nodes on surfaces of a solid

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi all,

I am facing a problem related to selection of nodes on surfaces of solid geometry. The problem can be reproduced by following these steps:

1. tetra meshing a solid geometry using a tcl script (*tetmesh)

2. select the nodes on a surface of solid (e.g. surface id=3) by using commands:

*createmark nodes 1 'by surfs ids' 3

hm_getmark nodes 1

the commands above 'should' return the nodes on surface #3.

However in this case, HyperMesh returns 'all nodes of the mesh' (even the nodes inside the solid) when the above commands query about nodes on surf id=1 , and it returns no nodes for the remaining surfaces when same commands are used about remaining surfaces.

I have tested the above commands on a wide range of solid models and have found this error exists in all cases. Is this a bug?

 

Secondly, if I use HyperMesh interactively, I can select the nodes on any surface of the solid, BUT HyperMesh does this process without revealing the corresponding tcl commands in command.cmf file.

In command.cmf file, HyperMesh just creates a mark on the nodes which are located on the desired surface id (without telling how does it get those nodes? there is no command recorded in .cmf file for this process).

 

I need the corresponding tcl commands because I have to write a script for automating the meshing process with various controls. Any advice from experienced users/experts wil lbe greatly appreciated!

 

Best regards,
Mubeen.

Tagged:

Answers