×
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

Problem to extract stress components from .odb file with python: wrong stresses

Problem to extract stress components from .odb file with python: wrong stresses

Problem to extract stress components from .odb file with python: wrong stresses

(OP)
Dear all,

I have an .odb file 'cartilage.odb' and I want to extract all the stress components. I do it with the following python script. But I don't extract the stress components...in fact I don't know what I extracted from the obd file because I have 1294 nodes and I get results for way more than 1294 nodes.
So what exactly did I extract from the .odb file and what can I change to my code to extract the actual stress components?
Thanks in advance,

-------------
from odbAccess import *
from abaqusConstants import *
odb=openOdb(path='Cartilage.odb')
lastFrame=odb.steps['loading'].frames[-1]
displacement=lastFrame.fieldOutputs['S']
fieldValues=displacement.values
for v in fieldValues:
for component in v.data:
print '%.4g' % component,
print
------------



RE: Problem to extract stress components from .odb file with python: wrong stresses

you are probably getting all stress values (mises,tresca,max/mid/min principal,S11,S22....), just pick the one you want

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