isok89
Civil/Environmental
- May 9, 2016
- 37
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 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?