Sequential Job Automatic Runner for Abaqus
Send download link to:
Sometimes you may need to run several analyses on your Abaqus model. Therefore, you may change some parameters and create different job. It could take a lot of time and you may prefer to run all of the jobs when you are not using your computer like during the night. In this article we will present a comprehensive and graphical step-by-step instruction through that. The computer will be turned on automatically even if it has been turned off.
1. Generating .inp files
After changing any parameter of your model, create a job and then in Job Manager window, instead of selecting Submit, just press Write Input:
Repeat that for every job you defined.
Now, you can find as many .inp files in the Working Directory as jobs you defined before:
2. Creating a customized batch file
Then we need to create a .txt file (for example AutoJobRun.txt), enter some commands, and then save the file and change its ending to .bat. First, right click on any empty space and select New > New Text Document:
Now, Open the created file. You must enter a line like the following for each job:
call Abaqus job=job_name interactive
Where you replace job_name with your selected name for every job:
The phrase interactive is really important to run jobs sequentially and after completing the former job.
Close the file and Save it. Now we should change its extension to .bat. If you can not see extension of the files, (in Windows 8 and upper) just go to View tab > Options > Change folder and search options. Then in the opened window, go to View tab and uncheck the Hide extensions for known file types
Now we have a file named AutoJobRun.bat.
This .bat ending file is called a batch file. A batch file is a script file in Microsoft Windows. It consists of a series of commands to be executed by Windows, stored in a plain text file.
3. Using Windows Task Scheduler to automate running
Find Task Scheduler app in Windows and run it. On the left panel, choose Create Task…
Then, in the appeared window type a name for your task and a description if you wish. Also, select Run whether user is logged or not and tick Run with highest privileges. You should select Windows 10 in Configure for: menu.
Then, switch to Triggers tab, select New and choose the desired day and time to Start running jobs automatically:
Switch to Actions tab, select New and Browse for batch file we created before:
And finally switch to Conditions tab and tick the Wake the computer to run this task option:
With this selection, even if the computer is shut down, it will wake at the selected time. However, I suggest to Hibernate your computer and plugged it in.
Press OK. If program ask for your account Password, type it.
There is a more simple method to create the task. If you are sure that your computer will be turned on and you would logged in before the specified time, you can use that: