×
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

extract data from odb file

extract data from odb file

extract data from odb file

(OP)
Dear all,

Is there any method to estract the data from an odb file? For example I would like to extract the stresses value along a certain path wich I have to define from the odb file. But I have to search for different step as well and that will be a very long process if I have to doit manually. The python script can help me i some way?

Thanks in advance,
Albert

RE: extract data from odb file

Yes, you can use ABAQUS Scripting Interface (both Python and C++ versions) to automatize post-processing tasks, including path definitions and data extraction along the defined paths.

RE: extract data from odb file

(OP)
Thanks a lot for the advice and the script example.
Since I am new to python I still have a couples of questions that could sound silly for you.

How can I run the script example? from the shell python GUI? The results were will be printed?

Thanks again!

RE: extract data from odb file

Yes, run from the command line 'abaqus python $scriptname' (see 8.4 in the scripting manual for more info). The scripts in the examples all return the data to the commandline, but you could easily edit the script to write them out into a file instead.
Or, if you're not confortable with python, you can redirect the out to a file using the '>' symbol.

Try this on a command line to see what I mean:

In windows:
'dir > test.txt'
'more test.txt'

In Unix-ish OS'es:
'ls > test.txt'
'more test.txt'

---

So there's nothing to stop you from running
'abaqus python myscript.py > myoutput.txt'

Personally, I use Matlab to analyse the output from my models, so I call the script directly from the Matlab command line and assign the output to a matrix:

>>myoutput=eval('!abaqus python myscript.py');

Hope that helped.

RE: extract data from odb file

(OP)
Rmettier, thanks a lot for the advice which have been usefull.

I run a similar script to print in output in a txt file the displacement of my odb file. It seems that it worked for one case but when I used another odb file the displacements are all zero. I used the same script changing the odb path but it seems that it can not read the displacement anynmore.
Do you know if there is any explanation about it?

Thanks again,

Albert

RE: extract data from odb file

(OP)
I was thinking about the above problem. Is there any way to clear the variable and the environment in python?

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