Jump to content
Matthieu

Is there a way to split lots of 1-D elements all at once

Recommended Posts

Hello everyone,

 

I am currently working on a lattice structure made of beam elements and I would like to split all those elements into two, in order to increase the mesh's density. So far I have found how to split 1-D elements by drawing a line... but considering there are close to 26 000 elements, this method is definitely not ideal here !

 

So my question is: is there an easy way to select all the 1-D elements and split them into two "in one click" ?

 

Thank you in advance for your time.

 

Matthieu

Share this post


Link to post
Share on other sites

Hi

a simple Tcl script may help you:

*createmarkpanel elems 1 "Select 1d (bar2) elements:"
*createmark elems 2 "by config" bar2
*markintersection elems 1 elems 2
set ENum  [hm_marklength elems 1]
if {$ENum} {
     eval *createarray $ENum [lrepeat $ENum 2]
     *elementmarksplitwith1D 1 1 $ENum
}
*clearmark elems 1; *clearmark elems 2

     

Rahul R likes this

Share this post


Link to post
Share on other sites

Hello,

 

Thank you for your answer; I will look into it (might not be instantaneous since I started using HyperWorks only a month ago)

 

Regards,

 

Matthieu

Share this post


Link to post
Share on other sites

Hi Matthieu,

 

Here is a macro for splitting 1D elements in 2 in one shot . I hope it will solve your problem and time

 

*createmarkpanel elements 1 "select beams to split"
#set elem_list [hm_getmark elements 1]
set num [hm_marklength elements 1]

hm_commandfilestate 0
hm_blockerrormessages 1
hm_blockmessages 1
*entityhighlighting 0
hwbrowsermanager view flush false

eval *createarray $num [string repeat "2 " $num]
*elementmarksplitwith1D 1 1 $num

*entityhighlighting 1
hm_commandfilestate 1
hm_blockerrormessages 0
hm_blockmessages 0
hwbrowsermanager view flush true

Rahul R and tinh like this

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...