Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

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

Status
Not open for further replies.

0198906s

Bioengineer
Oct 17, 2013
8
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
------------



 
Replies continue below

Recommended for you

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

Part and Inventory Search

Sponsor