CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

FLUENT Batch job

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2008, 01:44
Default FLUENT Batch job
  #1
Saravanan
Guest
 
Posts: n/a
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.

  Reply With Quote

Old   October 29, 2008, 02:13
Default Re: FLUENT Batch job
  #2
mAx
Guest
 
Posts: n/a
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)
  Reply With Quote

Old   October 29, 2008, 17:27
Default Re: FLUENT Batch job
  #3
rajesh
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   November 7, 2008, 16:23
Default Re: FLUENT Batch job
  #4
Saravanan
Guest
 
Posts: n/a
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

  Reply With Quote

Old   November 7, 2008, 18:17
Default Re: FLUENT Batch job
  #5
rajesh
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   November 7, 2008, 18:20
Default Re: FLUENT Batch job
  #6
rajesh
Guest
 
Posts: n/a
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]
  Reply With Quote

Old   November 7, 2008, 18:48
Default Re: FLUENT Batch job
  #7
S
Guest
 
Posts: n/a
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
  Reply With Quote

Old   November 8, 2008, 00:18
Default Re: FLUENT Batch job
  #8
rajesh
Guest
 
Posts: n/a
You got it right.

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

Old   November 8, 2008, 01:30
Default Re: FLUENT Batch job
  #9
S
Guest
 
Posts: n/a
Anyway Thanks
  Reply With Quote

Old   June 27, 2009, 02:35
Default hi there
  #10
New Member
 
Ali
Join Date: Apr 2009
Posts: 5
Rep Power: 17
ali_me84 is on a distinguished road
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]
ali_me84 is offline   Reply With Quote

Old   June 28, 2009, 20:13
Default
  #11
New Member
 
Join Date: Mar 2009
Location: Turkey
Posts: 15
Rep Power: 17
erkan is on a distinguished road
At the time you set the case file, just choose the write option in monitors>forces bar.
__________________
Timeo hominem unius libri
erkan is offline   Reply With Quote

Old   May 14, 2014, 17:47
Default Help on transient journal file
  #12
Azy
New Member
 
Azadeh Saeedi
Join Date: Mar 2014
Location: Canada
Posts: 23
Rep Power: 12
Azy is on a distinguished road
could any one help me with writing the journal file for transient simulation. or for running a case over transient?

thanks a lot
Azy is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pausing Fluent in batch Giles FLUENT 5 June 19, 2009 00:15
Batch processing in Fluent?! Mazyar FLUENT 1 April 29, 2006 01:33
Help!! Why I can't run fluent in batch mode? Cindy Jones FLUENT 0 April 9, 2003 00:39
Run Fluent in batch mode Shengping LUO FLUENT 2 October 24, 2000 06:42
Batch File fo Fluent & Fieldview Oliver FLUENT 0 July 14, 2000 14:12


All times are GMT -4. The time now is 16:15.