Dear all

I want to specify random material to elements. for doing this first of all I want to create sets to elements then specify the materials tho them.

to create sets in script we should write the fallowing code I used For loop to identify all elements and define sets)

for i in range(1,(width*height)/(meshsize**2)):

mdb.models['Model-1'].parts['Part_1'].Set(elements=

mdb.models['Model-1'].parts['Biaxial'].elements..getSequenceFromMask(mask=(

'[#0 #10 ]', ), ), name='Set-'+str(i))

as you know we can not recognize masks so my question is that how can I identify Elements index(names or anything) to define sets?

special regards Sobhan

More Sobhan Abedin Nejad's questions See All
Similar questions and discussions