Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Sep 5, 2020
Messages
5
Location
DE
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.
 
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

Back
Top