CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   FLUENT Batch job (http://www.cfd-online.com/Forums/fluent/49647-fluent-batch-job.html)

Saravanan October 29, 2008 01:44

FLUENT Batch job
 
Hi If I am submitting a job through Batch file, is there any way to find out whether the job is finished or not? So that I can read the output (.out files) and again the start the process?

I am doing these two processes sequentially. I will run the Batch job in FLUENT and then once it gets over I will read the output and based upon it I will run another job. So i want to know the way to check whether the first job has been finished or not.


mAx October 29, 2008 02:13

Re: FLUENT Batch job
 
check the properties of the saved files. I always list all the files by date (the last saved files are always the first /last in the list)

rajesh October 29, 2008 17:27

Re: FLUENT Batch job
 
I don't know if you are using linux or windows. But in either OS you can specify the output (output that FLUENT would normally print to the screen) to be written to a file which can be read in a text editor. Whenever you want to check if the FLUENT job is completed or not, just read the output file (this can be done when the fluent is running and writing to the output files also) and see if the FLUENT exited out or not.

Let me know if this helps or I misunderstood any part of your question.

Saravanan November 7, 2008 16:23

Re: FLUENT Batch job
 
The question here is how can I check whether the output file-writing has been completed or not.

Here I am using Matlab to read the output files for post processing. Is there a way to check from Matlab whether the .out file has been created or whether the FLUENT exited or not?

Thanks in Advance


rajesh November 7, 2008 18:17

Re: FLUENT Batch job
 
Here is the command I use to run Fluent in batch mode in windows OS or Linux OS: fluent 3d -g -i journal-file.jou > outfile.txt

Before you read further...If you want something like, you need to get am automatic email message once the computation is finished, you need to write some scripts, which I have no idea. If you want to check whether the computation is finished or not by yourself, then this is the way to go.

Here is an example for journal file rc case-file.cas ; Initialize the solution /solve/initialize/initialize-flow ; Calculate 10 iterations it 10 ; Write data file wd data-file.dat ; Exit FLUENT exit yes

The out file (text format) will be written to the current working folder. Here are the messages copied right from the outfile I have as an example for you.

Welcome to Fluent 12.0.7

Copyright 2008 ANSYS Inc.

All Rights Reserved

Build Time: Jul 21 2008 23:50:39 Loading "c:\ANSYSI~1\v120\fluent\fluent12.0.7\lib\fl_s1119 .dmp" Done.

> rc case-file.cas

Reading "\"case-file.cas\""... 279816 mixed cells, zone 2, binary. 279816 cell partition ids, zone 2, 4 partitions, binary. 574451 mixed interior faces, zone 8, binary.

40146 mixed wall faces, zone 3, binary.

1182 triangular velocity-inlet faces, zone 6, binary.

302 triangular outflow faces, zone 4, binary.

302 triangular outflow faces, zone 5, binary.

83093 nodes, binary.

83093 node flags, binary.

Building...

mesh

materials,

interface,

domains,

mixture

zones,

default-interior

inlet

outlet1

outlet2

wall

fluid

shell conduction zones, Done.

> ; Initialize the solution /solve/initialize/initialize-flow

> ; Calculate 10 iterations it 10 iter continuity x-velocity y-velocity z-velocity energy po_gas time/iter

1 1.0000e+00 4.9535e-03 4.9711e-04 5.7628e-04 3.6885e-08 0.0000e+00 0:01:12 9

2 1.0000e+00 7.8322e-02 1.0942e-01 1.6425e-02 4.6919e-08 0.0000e+00 0:01:01 8

3 3.6211e-01 4.6805e-02 6.2344e-02 7.4703e-03 4.7153e-08 0.0000e+00 0:00:51 7

4 2.2951e-01 3.0005e-02 3.5095e-02 4.8470e-03 4.7114e-08 0.0000e+00 0:00:43 6

5 2.2502e-01 1.9648e-02 2.1207e-02 3.8623e-03 4.7001e-08 0.0000e+00 0:00:35 5

6 1.9712e-01 1.3748e-02 1.3700e-02 3.1940e-03 4.6995e-08 2.1808e-03 0:00:27 4

7 1.6179e-01 1.0005e-02 8.9547e-03 2.5840e-03 4.6908e-08 1.9908e-03 0:00:20 3

8 1.2798e-01 7.9521e-03 6.4749e-03 2.0665e-03 4.7096e-08 1.8643e-03 0:00:13 2

9 1.0686e-01 6.1101e-03 4.2998e-03 1.8272e-03 4.7034e-08 1.7583e-03 0:00:06 1

10 8.2273e-02 5.3189e-03 3.3953e-03 1.5129e-03 4.7007e-08 1.6664e-03 0:00:00 0

> ; Write data file wd data-file.dat

Writing "data-file.dat"... Done.

> ; Exit FLUENT exit The current case has not been saved. OK to discard? [no]

The outfile (text format file) can be opened using a text editor (notepad in Windows; gedit in Linux) while the computation is running or once it is finished. When you open and look at the outfile during computations, you will see how many more iterations are left, and how much time has elapsed for this computation and also estimate how much more time is needed for the computation to get finished.

If you need something specific to work with Matlab, I cant help you much.

let me know if this answers your question.

rajesh November 7, 2008 18:20

Re: FLUENT Batch job
 
Welcome to Fluent 12.0.7

Copyright 2008 ANSYS Inc.

All Rights Reserved

Build Time: Jul 21 2008 23:50:39 Loading "c:\ANSYSI~1\v120\fluent\fluent12.0.7\lib\fl_s1119 .dmp" Done.

WARNING: This is a prototype version that has not yet been tested and validated. Fluent Inc. makes no commitment to resolve defects reported against this prototype version. However, your feedback will help us improve the overall quality of the product.

> rc case-file.cas Reading "\"case-file.cas\""... 279816 mixed cells, zone 2, binary. 279816 cell partition ids, zone 2, 4 partitions, binary. 574451 mixed interior faces, zone 8, binary.

40146 mixed wall faces, zone 3, binary.

1182 triangular velocity-inlet faces, zone 6, binary.

302 triangular outflow faces, zone 4, binary.

302 triangular outflow faces, zone 5, binary.

83093 nodes, binary.

83093 node flags, binary.

Building...

mesh

materials,

interface,

domains,

mixture

zones,

default-interior

inlet

outlet1

outlet2

wall

fluid

shell conduction zones, Done.

> ; Initialize the solution /solve/initialize/initialize-flow

> ; Calculate 10 iterations it 10

iter continuity x-velocity y-velocity z-velocity energy po_gas time/iter

1 1.0000e+00 4.9535e-03 4.9711e-04 5.7628e-04 3.6885e-08 0.0000e+00 0:01:12 9

2 1.0000e+00 7.8322e-02 1.0942e-01 1.6425e-02 4.6919e-08 0.0000e+00 0:01:01 8

3 3.6211e-01 4.6805e-02 6.2344e-02 7.4703e-03 4.7153e-08 0.0000e+00 0:00:51 7

4 2.2951e-01 3.0005e-02 3.5095e-02 4.8470e-03 4.7114e-08 0.0000e+00 0:00:43 6

5 2.2502e-01 1.9648e-02 2.1207e-02 3.8623e-03 4.7001e-08 0.0000e+00 0:00:35 5

6 1.9712e-01 1.3748e-02 1.3700e-02 3.1940e-03 4.6995e-08 2.1808e-03 0:00:27 4

7 1.6179e-01 1.0005e-02 8.9547e-03 2.5840e-03 4.6908e-08 1.9908e-03 0:00:20 3

8 1.2798e-01 7.9521e-03 6.4749e-03 2.0665e-03 4.7096e-08 1.8643e-03 0:00:13 2

9 1.0686e-01 6.1101e-03 4.2998e-03 1.8272e-03 4.7034e-08 1.7583e-03 0:00:06 1

10 8.2273e-02 5.3189e-03 3.3953e-03 1.5129e-03 4.7007e-08 1.6664e-03 0:00:00 0

> ; Write data file wd data-file.dat Writing "data-file.dat"... Done.

> ; Exit FLUENT exit The current case has not been saved. OK to discard? [no]

S November 7, 2008 18:48

Re: FLUENT Batch job
 
Thanks for the response. Now I understood what you are saying, Read the file. Check the number of iterations(running/not running) If it is finished do next step Else pre calculate the time required to finish based on the number of current iteration.

I think this is the way you are trying to explain. Am I correct? I got your point. Are you familiar with Conjugate Heat transfer, I need some help in it.

Thanks Saravanan

rajesh November 8, 2008 00:18

Re: FLUENT Batch job
 
You got it right.

No, I am not familiar with conjugate heat transfer modeling. I am sorry.

S November 8, 2008 01:30

Re: FLUENT Batch job
 
Anyway Thanks

ali_me84 June 27, 2009 01:35

hi there
 
I want to execute Fluent in batch mode in XP,I want to have Cl and Cd as a result(file),but I have not any output file,I can only run my journal file by this command :
fluent 2d -g -i tast.jou
Please tell me how can I have output file(Cl & Cd).
please help me as soon as possible.

Quote:

Originally Posted by rajesh
;154619
Welcome to Fluent 12.0.7

Copyright 2008 ANSYS Inc.

All Rights Reserved

Build Time: Jul 21 2008 23:50:39 Loading "c:\ANSYSI~1\v120\fluent\fluent12.0.7\lib\fl_s1119 .dmp" Done.

WARNING: This is a prototype version that has not yet been tested and validated. Fluent Inc. makes no commitment to resolve defects reported against this prototype version. However, your feedback will help us improve the overall quality of the product.

> rc case-file.cas Reading "\"case-file.cas\""... 279816 mixed cells, zone 2, binary. 279816 cell partition ids, zone 2, 4 partitions, binary. 574451 mixed interior faces, zone 8, binary.

40146 mixed wall faces, zone 3, binary.

1182 triangular velocity-inlet faces, zone 6, binary.

302 triangular outflow faces, zone 4, binary.

302 triangular outflow faces, zone 5, binary.

83093 nodes, binary.

83093 node flags, binary.

Building...

mesh

materials,

interface,

domains,

mixture

zones,

default-interior

inlet

outlet1

outlet2

wall

fluid

shell conduction zones, Done.

> ; Initialize the solution /solve/initialize/initialize-flow

> ; Calculate 10 iterations it 10

iter continuity x-velocity y-velocity z-velocity energy po_gas time/iter

1 1.0000e+00 4.9535e-03 4.9711e-04 5.7628e-04 3.6885e-08 0.0000e+00 0:01:12 9

2 1.0000e+00 7.8322e-02 1.0942e-01 1.6425e-02 4.6919e-08 0.0000e+00 0:01:01 8

3 3.6211e-01 4.6805e-02 6.2344e-02 7.4703e-03 4.7153e-08 0.0000e+00 0:00:51 7

4 2.2951e-01 3.0005e-02 3.5095e-02 4.8470e-03 4.7114e-08 0.0000e+00 0:00:43 6

5 2.2502e-01 1.9648e-02 2.1207e-02 3.8623e-03 4.7001e-08 0.0000e+00 0:00:35 5

6 1.9712e-01 1.3748e-02 1.3700e-02 3.1940e-03 4.6995e-08 2.1808e-03 0:00:27 4

7 1.6179e-01 1.0005e-02 8.9547e-03 2.5840e-03 4.6908e-08 1.9908e-03 0:00:20 3

8 1.2798e-01 7.9521e-03 6.4749e-03 2.0665e-03 4.7096e-08 1.8643e-03 0:00:13 2

9 1.0686e-01 6.1101e-03 4.2998e-03 1.8272e-03 4.7034e-08 1.7583e-03 0:00:06 1

10 8.2273e-02 5.3189e-03 3.3953e-03 1.5129e-03 4.7007e-08 1.6664e-03 0:00:00 0

> ; Write data file wd data-file.dat Writing "data-file.dat"... Done.

> ; Exit FLUENT exit The current case has not been saved. OK to discard? [no]


erkan June 28, 2009 19:13

At the time you set the case file, just choose the write option in monitors>forces bar.

Azy May 14, 2014 16:47

Help on transient journal file
 
could any one help me with writing the journal file for transient simulation. or for running a case over transient?

thanks a lot


All times are GMT -4. The time now is 08:27.