Discussion:
How to run multiple jobs sequentially using windows?
pumpkinwiz1
2013-11-06 03:48:56 UTC
Permalink
Hello, I have two jobs I want to run, and I want to have it run overnight.
Therefore, I would like to have one job run, and after that is finished, run
the next job. Research for this method showed me that abaqus doesn't do
this automatically for non-unix machines.

I have heard of people using batch files or other programming languages to
interface with abaqus-but I am not familiar with that. If anybody can point
me to the right direction in what to do next, that will be great.

thanks!

sam



--
View this message in context: http://abaqus-users.1086179.n5.nabble.com/How-to-run-multiple-jobs-sequentially-using-windows-tp19313.html
Sent from the Abaqus Users mailing list archive at Nabble.com.
r***@eng.ox.ac.uk
2013-11-06 15:14:38 UTC
Permalink
In an editor write an executable bsh file (or whatever your system likes) , set it's attribute to executable. To make them run one after the other include the "INTERACTIVE" option - this sends the output of the message file to the screen as it works through, then it completes and moves onto the next job. Example file


abaqus job=job_1 interactive
abaqus job=job_2 interactive

abaqus job=job_3 interactive

...

abaqus job=job_last



In Windows write a separate batch file for each job - eg.
in file ab_job_1.bat

abaqus job=job_1 interactive


... and similar in ab_job_2.bat etc.
then write a file to call each one: ab_job_all.bat


call ab_job_1
call ab_job_2
call ab_job_3
...
call ab_job_last


These should be saved in the same directory as the input files, then in a terminal (or equivalent) change to the same directory and enter this overall batch file name (ab_job_all in the example) on the command line.


[By equivalent I mean a text editor that can run system commands, in a specific directory and capture the output - the 14 year old pfe101i (http://www.lancaster.ac.uk/people/steveb/cpaap/pfe/pfefiles.htm http://www.lancaster.ac.uk/people/steveb/cpaap/pfe/pfefiles.htm) can do it. I got used to it so this otherwise unimpressive program is still the fastest editor for me to use - good keyboard shortcuts - F11 in this case.]


A better windows programmer than me will probably tell you the "right way" to do it, but this does work.


Robert










---In ***@yahoogroups.com, <***@...> wrote:

Hello, I have two jobs I want to run, and I want to have it run overnight.
Therefore, I would like to have one job run, and after that is finished, run
the next job. Research for this method showed me that abaqus doesn't do
this automatically for non-unix machines.

I have heard of people using batch files or other programming languages to
interface with abaqus-but I am not familiar with that. If anybody can point
me to the right direction in what to do next, that will be great.

thanks!

sam



--
View this message in context: http://abaqus-users.1086179.n5.nabble.com/How-to-run-multiple-jobs-sequentially-using-windows-tp19313.html http://abaqus-users.1086179.n5.nabble.com/How-to-run-multiple-jobs-sequentially-using-windows-tp19313.html
Sent from the Abaqus Users mailing list archive at Nabble.com.
pumpkinwiz1
2013-11-24 02:45:27 UTC
Permalink
Hey guys, thanks for the earlier help- I want to extend from this help and
ask for some help in a different batch request. I am trying to extract out
the stresses and strains in a certain designated path in my model. Problem
is, doing this manually I have to click, set stress, save, and repeat that
for 6 stress, strains, and mises stress for each path- at the moment, I have
9 paths to deal with. I have a feeling that a batch file to do this
automatically will be beneficial. A way to do this (maybe a database with
all the commands in abaqus will also be helpful ) will be great.

So for me, I would have all the paths set up. Then

set path 1
extract mises stress
extract s11
save s11 to temp filename
attach saved data to output file
(repeat for s11, s12, s22, ...etc)
set path 2
...

Thanks again all!



--
View this message in context: http://abaqus-users.1086179.n5.nabble.com/How-to-run-multiple-jobs-sequentially-using-windows-tp19313p19608.html
Sent from the Abaqus Users mailing list archive at Nabble.com.
r***@eng.ox.ac.uk
2013-11-25 11:37:52 UTC
Permalink
That's a job for python in CAE viewer.
Use the Macro recorder:
- Start the recorder,
- do the set of repeated steps once
- Stop the recorder
Then, go to the macro file (abaqusMacros.py) and edit (pfe101i) what was recorded, mostly copying and pasting and editing s11 to s22 etc
Then when you reload the macro file you can do all with one command.
A alternative is to get abaqus to write all the salient data to the .dat file - most programming languages (I use Matlab) can deal with the result - it's a bit heavy on the headers. I find using CAE-viewer a very slow process so if I'm going through a sequence of conditions I get data to go to the .dat file and write separate code to handle it.
AFAIK: as stress is an element result to get stress data at nodes of a "path" into the .dat file you need to assign a name to the elements immediately neighbouring and ask for data at the nodes - this will of course include nodes you don't really want so you need a choosing method (the node data in the input file is useful here). That's as far as I know - perhaps there's a better way that may be suggested here.
If you talk to Simulia they will introduce you to iSight - you could try that.




---In ***@yahoogroups.com, <***@...> wrote:

Hey guys, thanks for the earlier help- I want to extend from this help and
ask for some help in a different batch request. I am trying to extract out
the stresses and strains in a certain designated path in my model. Problem
is, doing this manually I have to click, set stress, save, and repeat that
for 6 stress, strains, and mises stress for each path- at the moment, I have
9 paths to deal with. I have a feeling that a batch file to do this
automatically will be beneficial. A way to do this (maybe a database with
all the commands in abaqus will also be helpful ) will be great.

So for me, I would have all the paths set up. Then

set path 1
extract mises stress
extract s11
save s11 to temp filename
attach saved data to output file
(repeat for s11, s12, s22, ...etc)
set path 2
...

Thanks again all!



--
View this message in context: http://abaqus-users.1086179.n5.nabble.com/How-to-run-multiple-jobs-sequentially-using-windows-tp19313p19608.html http://abaqus-users.1086179.n5.nabble.com/How-to-run-multiple-jobs-sequentially-using-windows-tp19313p19608.html
Sent from the Abaqus Users mailing list archive at Nabble.com.

Continue reading on narkive:
Loading...