CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   [Question]About batch job (http://www.cfd-online.com/Forums/fluent/67082-question-about-batch-job.html)

fluboy August 3, 2009 09:22

[Question]About batch job
 
Recently, I had a problem in using batch file. I put three files(*.cas,*.jou and *.bat) in the same folder.

The matter in the journal file is as below

(cx-gui-do cx-activate-item "MenuBar*ReadSubMenu*Case & Data...")
(cx-gui-do cx-set-text-entry "Select File*Text" "3dchannel.cas")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do cx-set-integer-entry "Iterate*Table1*Frame2(Iteration)*Table2(Iteration )*IntegerEntry1(Number of Iterations)" 2000)
(cx-gui-do cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do cx-activate-item "Iterate*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Case & Data...")
(cx-gui-do cx-set-text-entry "Select File*Text" "3dchannel.cas ")
(cx-gui-do cx-activate-item "Select File*OK")

The matter in batch file is just one line:

fluent 3d -g -i *.jou


When I execute the batch file, the warning('fluent' is not the inside or outside command...) would appear. So, please direct me the way to make the batch file running.

Micael August 3, 2009 16:54

With such a journal you also open 3dchannel.dat. Be sure it is there too.

Otherwise, that works for me (I'm with Windows ). This is what I put in the batch file (I used a 2D model):
fluent 2d -g -i journal.jou

Also, you can simplify your journal. This is equivalent to yours:

rc 3dchannel.cas y
rd 3dchannel.dat y
it 2000
wc 3dchannel.cas y
wd 3dchannel.dat y

MicaŽl

fluboy August 12, 2009 11:10

Dear MicaŽl :

Thanks for your guiding


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