Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Python script to run multiple adaptive meshing in Abaqus

Status
Not open for further replies.

mtranew

Mechanical
Nov 16, 2011
1
Hello,

I am new to the forum. I have some programming experience but I am new to python and abaqus. My OS is Fedora 13 Linux.

I am trying to run multiple adaptive meshing jobs by python script(s) from the terminal. (I can run python script for adaptive meshing inside abaqus cae window one by one. However, there are too many jobs to do this manually). Here are what I have tried

1. If I ran 'abaqus cae script=job_name.py', then abaqus would open up its cae window, run the job, and finish in about 3 to 7 iterations. This requires manually quitting abaqus and re-enter the new job at the terminal. I can write a shell script to kill the cae window and start a new job. However, upon reopening the cae window, abaqus asks if I want to recover the data (because I think terminating the cae window is not the proper way to exit). This has to be answered manually by clicking yes in the box.

2. If I ran 'abaqus cae noGUI=job_name.py', then abaqus would run and stop after the first iteration. I think adaptive meshing only works inside the abaqus cae window.

3. If I wrote a for loop in python to run multiple adaptive meshing jobs and run 'abaqus cae script=job_name.py' on the terminal, abaqus would complain that I run multiple jobs at the same time and give me an error. If I use '.waitForCompletion()', abaqus would complain that this does not work with adaptivity. If I use 'time.sleep(300)' at the end of the python script, abaqus would wait for 5 minutes before executing the first iteration, then it would go on a give me an error saying that I run multiple jobs at the same time. This was my last resort. I would prefer not to use 'time.sleep()' because I do not know in advance how long it would take to finish the adaptivity job.

Could someone please shed some light on this issue? Your help is deeply appreciated. Many thanks.
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor