Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

abaqus fieldoutput by python

Status
Not open for further replies.

Renny1988

Automotive
May 31, 2013
1
Hi to everyone and thanks for your help in advance.

I ran a simulation in Abaqus and i need to get the nodal forces and the nodal coordinates to use it for my weld model. My model has a large number of elements, and so for this purpose, i tried to use a python script, but i have encountered some problems.

To obtain what i'm looking for, i found that in abaqus documentations and i can write:

data1 = myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[...].data


The problem is that i don't know what i must put in the brackets after 'values'.
If i put the number that identifies the node or the element, the data that return are uncorrect,
because they are different from the values i can see in the in the .odb file of my simulation.

If someone is able to help me please, i will very grateful.

Lorenzo
 
Replies continue below

Recommended for you

Hi Lorenzo,

Values object is similar to python list. In square bracket you need to put digit.
The digit is not a node/element number as you expected. This is just address in the list.

The easiest way to control object content is to use print statement:
Code:
 print myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[0]
print myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[1]

Then you will see methods you can use with object like "data", "nodeLabel, "elementLabel" and many others.

So if you want check what element is under address 10 just use:
Code:
 print myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[10].elementLabel
If the element id is what you are looking for then you can use:
Code:
 print myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[10].data
to get the output values for element

Best,
Bartosz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor