DrBwts
Mechanical
- Nov 4, 2012
- 297
I created a simple box and meshed it & I would like to create 2 sets one that contains the central elements & a second that contains all the surrounding elements.
I can calculate quite trivially which elements I want in each set but I'm having problems creating the sets. I created a few sets in CAE and then inspected the *.jnl files to find the method but I just don't understand what I'm seeing, for instance,
The above is what I get when I manually select elements in the CAE window, the numbers in no way match up with the element numbers that I picked.
I've been pouring over the Reference Manual but so far cant find a set generator method where I can just list the element numbers. I'm pretty sure there is one though.
Thanks
I can calculate quite trivially which elements I want in each set but I'm having problems creating the sets. I created a few sets in CAE and then inspected the *.jnl files to find the method but I just don't understand what I'm seeing, for instance,
Python:
mdb.models['Model-1'].parts['Part-1'].Set(elements=mdb.models['Model-1'].parts['Part-1'].elements.getSequenceFromMask(mask=('[#0:10 #4 #0:3 #12 ]', ), ), name='Set-1')
The above is what I get when I manually select elements in the CAE window, the numbers in no way match up with the element numbers that I picked.
I've been pouring over the Reference Manual but so far cant find a set generator method where I can just list the element numbers. I'm pretty sure there is one though.
Thanks