Jump to content
sonu kumar

HOW TO FIND INTERNAL FREE EDGES IN HYPERMESH BY MACRO

Recommended Posts

Hi everyone,

I have been trying lately to develop a macro to isolate or show internal free edges in a model. Lets say, i am modelling a surface with free edges, after modelling some components ( say 20-30), i would like to check if there are internal free edges or gaps within element in my models ( pls note, not the outside boundary free edges). There is ofcourse , shift+f3 function to check and it requires observing for ourselves. Is there a macro that can isolate the internal free edges as such. Like in FE Gate software, it shows the internal free edges. is it possible in hypermesh?

 

 

Thanks for answering in advance.

 

 

Share this post


Link to post
Share on other sites

hi tinh and johson, thank you for your response

However, i was more looking at an automated script for internal free edges alone. the script that you refer to is equivalent to the shift+f3 function when performed to the displayed functions. and tinh, intersections sometimes fail to show internal edges bcz, the internal elements may not be connected at all.

Is there an more accurate solution. I wish i could show you , how it works in FE Gate, there is a function itself called internal free edges that isolates only free edges within the components excluding the boundary edges.

 

May be my explaination to the question helped you understand my question.

 

 

thanks again in advance for the answers

Share this post


Link to post
Share on other sites

I am very much new to tcl .. It would be highly appreciable if anyone can help me with the logic

 

I have a model and it somewhat looks like the one shown in the figure. the free space shown at the centre is also not exactly as that shown in the pic. It can be of any shape. The shape of the free space can be an hole or in a zig zag manner also.

 

My OBJECTIVE is to fill this free space with MESH.


So my logic is to find the free edges and mesh the center free edge area. Can anyone please give me some clue how to proceed?

Is there any similar type of tcl available in script exchange?

Example.JPG

Share this post


Link to post
Share on other sites

Here's my test (shell mesh):

shell_holes.png.d9fc66de3c84319a9e52c9514817020b.png

 

From the Doc, testing code is:

hm_holedetectioninit
*createmark elems 1 all
hm_holedetectionsetentities elems 1
hm_holedetectionsetholeparams hole_shape=31
hm_holedetectionfindholes 1
set n [hm_holedetectiongetnumberofholes]

if { $n > 0 } {
    puts "Number of holes = $n"
    puts "Holes details"
    for {set i 0} {$i < $n} {incr i} {
        puts "i = $i [hm_holedetectiongetholedetails $i]"
    }
} else {
    puts "Holes not detected."
}
hm_holedetectionend

I got output:

Number of holes = 2
Holes details
i = 0 0 0 {-7.5 127.6883985209 -106.066017178} {1 0 0} {nodes 1139 1140 1141 1142 1143 1144 1145 1146} 0
i = 1 0 0 {-7.5 233.7544156988 -150} {1 0 0} {nodes 1187 1188 1189 1190 1191 1192 1193 1194} 0

So you have coordinates of each center and node list of hole.

HTH,

tinh likes this

Share this post


Link to post
Share on other sites

Hi Nguyen-Dai,

actually my objective is to close the holes. Not only holes but also what ever shape it has. I want to close the internal free edges i.e. not the free edges which is caused because of node equivalence, but all the free edges because of closed loop. 

 

can u please help me? 

Share this post


Link to post
Share on other sites
18 hours ago, Mahit said:

Hi Nguyen-Dai,

actually my objective is to close the holes. Not only holes but also what ever shape it has. I want to close the internal free edges i.e. not the free edges which is caused because of node equivalence, but all the free edges because of closed loop. 

 

can u please help me? 

 

give a try with *findloops

Hope this one solves your purpose.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...