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!

Abaqus scripting

Status
Not open for further replies.

isok89

Civil/Environmental
Joined
May 9, 2016
Messages
37
Location
NL
Hi,


I have three questions considering the Abaqus scripting environment.
First let me give some background info

I am interested in ultimate loads of different types of beams, so the post-failure phase of load-displacement
doesn't interest me. I wrote a python script which delves into the ODB, reports the XY data with regards
to the reactionary force and based on what it reads it can terminate the job once the ultimate load has been reached (this is to save time, since a full analysis can take up to 9 hours).

1. the 'kill()' command doesn't work for me, the following is my complete line:
mdb.jobs['JOB-EXP-'+exp_id].kill()
The job just keeps running, whole idea was to save time and kill the job after ultimate load

2. I set up a while loop within my script to systematically check the ODB, however I sometimes get an error
if Abaqus is writing to the ODB, the script then crashes 'cannot access object because it is in use by another process'. How can I avoid this?
model_Odb_Path = 'JOB-EXP-'+str(exp_id)+'.odb'
odb_object = session.openOdb(name=model_Odb_Path)


3. Running from command line (so without opening Abaqus) isn't possible. For example I can't run simple
'print' commands, they aren't recognized. My whole analysis time reduction script part (checking for ultimate load) is ignored.
Is there module I have to import or is it simply not possible?
 
I'll add some more info, the following is what I have as a test:


mdb.jobs['JOB-EXP-'+exp_id].submit(consistencyChecking=OFF)

time.sleep(25)

mdb.jobs['JOB-EXP-'+exp_id].kill()


Everything works except the kill() is ignored, I can even use .waitforcompletion() and it works.
It doesn't make any sense to me why the kill() doesn't work. Abaqus clearly reads it since I changed
the kill() into something like terminate() and I get an error that it doesn't recognize this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top