Skip to main content

sets deffinition abaqus

Submitted by Liri_veny on

I have two questions regarding the Abaqus

1) if I use the getbyboundingbox function on elements (or nodes) I get a long tuple (or I think it's a tuple) when I convert it to a list I can work with the Python normal commands like: append, remove etc. my problem is to change the list back to something that the Abaqus can work with. for example if I use the set function it doesn't work. see below a code for example.

2) if I have two sets and I want there intersection how can I do that?

 

AllElemList=elem.getByBoundingBox(XMin,YMin,ZMin,XMax,YMax,ZMax)

AllList=list(ElemList)

inElemList=elem.getByBoundingBox(XMin+delta,YMin+delta,ZMin+delta,XMax-delta,YMax-delta,ZMax-delta)

inList=list(inElemList)

AllList=list(AllElemList)

outList=filter(lambda x:x not in inList,AllList)

part.Set(elements=outList, name='outer')

this is where I get the error