I have (mid surface + elements) of CAD in one component and the CAD surfaces in other component. can anyone suggest a code to detect the elements within CAD surfaces with the condition (elements are independent i.e., not on surfaces)
I have created a script for our models, which will sort the FE-Components to a Part based if the FE-Mesh is within one solid (of one component) of the Part.
Procedure: Create a list with all components that contains solids Create a list with all components that contains mesh
Loop through all components with the mesh and pick 50 random nodes (to increase speed) from the mesh. Check with every solid, if a certain percentage of nodes are within a solid (command "set isInSolid [hm_ispointinsidesolid $x $y $z $solidId]"). If there are more then 30% of the nodes part of the solid I will organize the component to the part of the solid.
This takes quiet long to go through a bigger model, but I haven't found any other way so far.
Hello @ATLURI BHARATH KUMAR ,
I have created a script for our models, which will sort the FE-Components to a Part based if the FE-Mesh is within one solid (of one component) of the Part.
Procedure:
Create a list with all components that contains solids
Create a list with all components that contains mesh
Loop through all components with the mesh and pick 50 random nodes (to increase speed) from the mesh. Check with every solid, if a certain percentage of nodes are within a solid (command "set isInSolid [hm_ispointinsidesolid $x $y $z $solidId]"). If there are more then 30% of the nodes part of the solid I will organize the component to the part of the solid.
This takes quiet long to go through a bigger model, but I haven't found any other way so far.
BR
Andreas