Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Using Python to Create Assembly of 200 parts (Abaqus)

Status
Not open for further replies.

herrD

Industrial
Apr 2, 2013
1
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
 
Replies continue below

Recommended for you

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.

 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor