Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve Elements and Nodes from element set Object in ABAQUS

Status
Not open for further replies.

Sri Harsha

Aerospace
Jun 16, 2017
37
0
0
DE
Hello,

I have written the following code:

odb = openOdb('H:\MiniThessis\MaterialModelling\Job-2.odb')
assembly = odb.rootAssembly
elsetName = 'SET-4'
elemset = assembly.elementSets[elsetName]

With the help of above code,I am able to retrieve the element set object using a element set 'SET-4".
Now,I want to retrieve all the elements available in it.
Thereafter,I want to loop through each element,and also each node of that element

So,I am writing a pseudo code below:

for i=0:elementssize
elementLabel = element.Name
for j = 0:len(element[i).nodes)
node[j] = element[i).nodes
nodeLabel = node[j].label
end
end

Can someone help me achieve the above things,since I am still a beginner in terms of ABAQUS Python scripting
 
Status
Not open for further replies.
Back
Top