×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

abaqus fieldoutput by python

abaqus fieldoutput by python

abaqus fieldoutput by python

(OP)
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

RE: abaqus fieldoutput by python

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources