×
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

Abaqus scripting

Abaqus scripting

Abaqus scripting

(OP)
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?

RE: Abaqus scripting

(OP)
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.

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