×
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

Using Python to Create Assembly of 200 parts (Abaqus)

Using Python to Create Assembly of 200 parts (Abaqus)

Using Python to Create Assembly of 200 parts (Abaqus)

(OP)
Dear All,

I am using Python Script to create about 2000 parts and assemble them. Its taking a whole lot of time. Its taking data from a csv file and using that as reference for these parts. I get run out of memory at the end of long run and have to abandon it. Any general suggestions to how to optimise such script? I have tried modifying env file and allocating 100% memory but still does not work. Thank you in anticipation

Dee

RE: Using Python to Create Assembly of 200 parts (Abaqus)

I am assuming you are absolutely sure about using Python to create these many parts is your optimum option. If so, then you may need to clean up junk (temp) files from your disk, avoid firing up unnecessary services (Run->cmd->services.msc) [install AnVir Task Manager Free or Spybot or something similar], not run anything except ABAQUS (no explorer, browser, winword, etc.) .. You may also be better off with more RAM.

I am not sure if this is even possible in your case but here it is anyway: Can you dump the contents of the .csv in to the script? File I/O may very well be your bottleneck.

http://www.eng-tips.com/faqs.cfm?fid=376
http://www.eng-tips.com/faqs.cfm?fid=1083

RE: Using Python to Create Assembly of 200 parts (Abaqus)

If you are creating a separate object in you code for each part are you clearing out the objects after you are done with them? I am not familiar enough with Python but in other languages it helps the speed of the program if you keep any objects around only as long as you need them, then free up the memory before creating a new one.

Han primo incensus

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