×
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

Extraction of deflection values

Extraction of deflection values

Extraction of deflection values

(OP)
I am trying to export my data from the .odb file for further processing. My approach looks something like this:
displacement = lastFrame.fieldOutputs['U'] #So far so good
fieldValues = displacement.values

But when I now tries to access the values as shown in the Scripting users manual
print fieldValues.data[0]
I get the error
AttributeError: 'FieldValueArray' object has no attribute 'data'
At this point I looked around a little and found that according to numpy fieldValues is an array with the shape (424L,). However when I tries to access these values the answer is always
print fieldValues[113]
openOdb(r'C:/.../outputdatabase.odb').steps['Step-1'].frames[1].fieldOutputs['U'].values[113]

Which is not for much help.
I am able to plot and probe the values using the gui, so I know they are there. So, can you help me accessing my deflection values?
I also tried recording a macro with the gui where I probed for the values I wanted, but the probe part did not get recorded in the macro.
My model is a three dimensonal model, while the approach I have used is from the users manual and is based off a 2d model, so that might be one cause for the errors.
Alternative solutions are also welcome, I don't need the deflection values at all points, but it would be an advantage.

RE: Extraction of deflection values

What is the output of these commands?

print fieldValues
print fieldValues.data

RE: Extraction of deflection values

(OP)
For print fieldValues i recieve
'FieldValue object' a lot of times. I'd guess once for every node but I haven't counted.
For print fieldValues.data abaqus returns
AttributeError: 'FieldValueArray' object has no attribute 'data' just like when I try to request a specific datapoint.

RE: Extraction of deflection values

(OP)
I found this post with a script accomplishing what I'm trying.
The only problem is that this is node based while I've tried, and made stresses work, in an element based method. But it should be possible to achieve my goal (objective function for optimisation) nonetheless.
However, I'm still wondering what I'm doing wrong, but the problem is no longer imminent for me.
Thanks for your help!

RE: Extraction of deflection values

Are you really trying to get the displacements from elements?

RE: Extraction of deflection values

(OP)
That sounds an awful lot like I shouldn't?
I am mostly concerned with reading both stresses and displacements in a fast and reliable way. It seems to me like reading the different outputs are not as simple as changing the argument in fieldOutputs['S'] between 'S' and 'U' which I would have expected. Do you know what the reason is for this?

RE: Extraction of deflection values

Displacements are nodal results. Everyone with basic knowledge of FEA should know that.

RE: Extraction of deflection values

Reference points are a nice way to pull deflection if you are just looking for a few points (with an mpc or coupling)
L

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