Blog

Automatic Running of Multiple Jobs Sequentially

Automatic Running of multiple Jobs sequentially Banner

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:

Write Input for jobsRepeat 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:

Create txt fileNow, 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:

call abaqus to run jobs in txt fileThe 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

Disabling Hide ExtensionsNow 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…

Task Scheduler AppThen, 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.

Create Task General Tab SettingThen, switch to Triggers tab, select New and choose the desired day and time to Start running jobs automatically:

Create Task Triggers Tab SettingSwitch to Actions tab, select New and Browse for batch file we created before:

Create Task Actions Tab SettingAnd finally switch to Conditions tab and tick the Wake the computer to run this task option:

Create Task Condition Tab SettingWith 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:

Q&A: How can I run an (or several) Abaqus job automatically?

Related Posts

2 thoughts on “Automatic Running of Multiple Jobs Sequentially

  1. Katlyn Verna says:

    fabulous article

  2. Corene Ernst Whitney says:

    If you desire to grow your experience just keep visiting this website and be updated with the latest news posted here.

Leave a Reply