• Announcements

    • Rahul Ponginan

      Please click here for a short but important announcement   03/26/17

      Dear Users Our Commercial and Academic users around the world can use these same forums here as before i.e. the Altair Support Forum , Commercial users from India with solver queries can go to the Solver Forum for India Commercial Users , Academic Users from India and AOC India Participants are requested to go to the Forum for India Academic Users and AOC India Participants , We will be tending to all queries in all the forums promptly as before, thank you for your understanding. 
  • 0
Matthieu

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

Question

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

4 answers to this question

  • 0

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
  • 0

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
  • 0

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

tinh and Rahul R like this

Share this post


Link to post
Share on other sites
  • 0

Thank you for your help ! I will try the macro as soon as I get the time, as I am quite busy on other projects at the same time

 

Regards,

 

Matthieu

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now