×
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

ODB reading Python scripting issues
2

ODB reading Python scripting issues

ODB reading Python scripting issues

(OP)
Hi everibody,

I'm trying to work on odb files via Python script. More in detail, I want to extract the E11 strain component value for each frame (61 frames) of a step (Implicit dynamic step) for some nodes which I'm interested in, and save these values into a file.

The script I've written works fine except for two things:
1) the odb reading is extremely slow: extracting the 61 values for the sets of interest (which are more or less 40) takes more than 1 hour (the odbs size is around 5 GB);

2) the odb increases its size while I'm reading data from it! It grows and shifts from 5GB to 200GB or more surprise! Once the reading is completed, I can open the odb and apparently nothing has changed, apart from the size . How can this be possible?

I'm new to python scripting, so I'm probably missing something! Attached you can find the script.

Kind regards,
Demetrio

RE: ODB reading Python scripting issues

2
1. Try to loop first through the frames and in that through the sets. With that you can longer hold the variable E and just have to modify the subset. That can improve the speed.

2. Check what's happening when using the readOnly parameter at openOdb.

RE: ODB reading Python scripting issues

(OP)
Dear Mustaine3,
thank you very much, I'll try to follow your advices!

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