Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to solve OdbError in Abaqus Python script?

Status
Not open for further replies.

Mohsen_Abyani

Marine/Ocean
Sep 5, 2020
5
I am running a 3D solid model in Abaqus Python script, which is supposed to be analyzed for 200 times as the model has been arranged in a for loop (for i in range(0,199):). Sometimes, I receive the following error and then the analysis terminates. I can't realize the reason.
Odb_0=session.openOdb(name='Job-1'+'.odb')
"odberrror: the .lck file for the output database D:/abaqus/Model/Job-1.odb indicates that the analysis Input File Processor is currently modifying the database. The database cannot be opened at this time."
It is noted that all the variables including "Odb_0" and .... are deleted at the end of each step of the loop prior to starting the further one. I would be grateful if anyone could kindly advise.
 
Replies continue below

Recommended for you

Maybe your script tries to do something before the previous process is completely finished and the files (.lck) are deleted.

Consider adding a sleep-command at certain stages and catch issue with try-except.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor