CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Batch Processing and auto-save option (https://www.cfd-online.com/Forums/fluent/40853-batch-processing-auto-save-option.html)

Vimal May 6, 2006 21:54

Batch Processing and auto-save option
 
Hi,

I am trying to run an unsteady case with FLUENT using the batch processing option. I am having some trouble with the auto-save option when the run-script is used in the batch-mode (run-script attached below).

(1) Even though the auto-save frequency is set to 10, no case or data files are generated at the end of the simulation.

(2) I know there is a brute-force solution to this problem by writing a script

it 20 wc RT1_0020.cas wd RT1_0020.dat

it 20 wc RT1_0040.cas wd RT1_0040.dat

.... .... .... etc.

Is there a way of getting around this using loops?

Thanks

Vimal ================================================== ========== ; Read Case File rc RD234SL.cas

; Set Auto-save Options /file/autosave/case-frequency 10 /file/autosave/data-frequency 10 /file/autosave/overwrite-existing-file yes /file/autosave/root-name "RT1_"

/file/confirm-overwrite no

; Mark Region for VOF patch /adapt/mark-inout-rectangle yes no -0.5 +0.5 -0.5 +0.0

(rpsetvar 'patch/vof? #t)

; Initialize the Solution /solve/initialize/initialize-flow

; Patch Water Volume Fraction /solve/patch water () (0) mp 1

; Set time-step /solve/set/time-step 0.002

; Iterate it 400

; Exit Fluent exit yes ================================================== ==========


Vimal May 7, 2006 15:54

Re: Batch Processing and auto-save option
 
I was able to find a solution... Thanks

N Pattakos May 17, 2006 13:42

Re: Batch Processing and auto-save option
 
would you pls tell me what did you do? I have the same problem.

VV May 17, 2006 14:02

Re: Batch Processing and auto-save option
 
I have included the batch script that I used for an unsteady run. For a steady run, the batch-script given in the FLUENT user manual is sufficient. Hope this helps.

Regards

VV

; FLUENT RUN SCRIPT ; READ CASE FILE /file/read-case <case-name>

; AUTO-SAVE/BATCH OPTIONS file/autosave/case-frequency 25 file/autosave/data-frequency 25 file/autosave/overwrite-existing-file no

; STRING SPECIFYING FILE NAME : <string> ; AUTO-SAVE FILE : <string><iterationg count>.cas file/autosave/root-name "<string>"

/file/confirm-overwrite no

; INITIALIZE FLOW /solve/initialize/initialize-flow

; SET TIME-STEP /solve/set/time-step 0.002

; ITERATE (TAKES CARE OF AUTO-SAVING) /solve/dual-time-iterate 4000

; EXIT FLUENT exit yes

VV May 17, 2006 14:07

Re: Batch Processing and auto-save option
 
I have included the batch script that I used for an unsteady run. For a steady run, the batch-script given in the FLUENT user manual is sufficient. Hope this helps.

Regards

VV

; FLUENT RUN SCRIPT

; READ CASE FILE

/file/read-case <case-name>

; AUTO-SAVE/BATCH OPTIONS

file/autosave/case-frequency 25

file/autosave/data-frequency 25

file/autosave/overwrite-existing-file no

; STRING SPECIFYING FILE NAME : "string"

; AUTO-SAVE FILE : "string""iteration count".cas

file/autosave/root-name "<string>"

/file/confirm-overwrite no

; INITIALIZE FLOW

/solve/initialize/initialize-flow

; SET TIME-STEP

/solve/set/time-step 0.002

; ITERATE (TAKES CARE OF AUTO-SAVING)

/solve/dual-time-iterate 4000

; EXIT FLUENT

exit yes



All times are GMT -4. The time now is 21:36.