0% found this document useful (0 votes)
21 views

Notes

The document discusses running Fluent journal files from the command line and making modifications within journal files: 1) Journal files can be run from the command line by opening Fluent and using the "read-journal" command to specify the journal file. 2) Multiple journal files can be run sequentially by specifying each file after running the previous one. 3) Modifications within journal files include changing file names and directories used in the simulation.

Uploaded by

Mohammed Mashaqi
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Notes

The document discusses running Fluent journal files from the command line and making modifications within journal files: 1) Journal files can be run from the command line by opening Fluent and using the "read-journal" command to specify the journal file. 2) Multiple journal files can be run sequentially by specifying each file after running the previous one. 3) Modifications within journal files include changing file names and directories used in the simulation.

Uploaded by

Mohammed Mashaqi
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

\;batchfiletest.

jou works well,

\;i run fluent from start windows, and then in TUI:


pwd
chdir C:\Users\LENMAS~1\OneDrive\Desktop\Journal

\;then,
\;file-->read-->journal-->batchfiletest

\;Does if we add (chdir C:\Users\LENMAS~1\OneDrive\Desktop\Journal) at the begining


in the batchfiletest.jou works?
\;Answer: yes, it works well
...................................................................................
.............................................................................
\;in the command lin (cmd), we can run the same case with the same batchfile.jou as
follwoing:
\;1-open cmd
\;2-write the follwing
\;3-to open fluent ansys 2dn double precision, 8 processors, without showing the
GUI:
C:\Users\Len MASHAQI>fluent 2ddp -g -t8
/file> read-journal
journal file names [] "C:\Users\Len MASHAQI\OneDrive\Desktop\Journal\
batchfiletest.jou"
journal file names []
(press enter)

...................................................................................
.............................................................................
\;To run two journal files, the first journal file ran, fluent ask to save the
current case or Ok to discard
\; the first journal file with number of time steps 110
\; in cmd write:
fluent 2ddp -g -t8
/file> read-journal
journal file names [] "C:\Users\Len MASHAQI\OneDrive\Desktop\Journal\
batchfiletest.jou"
journal file names []
(press enter)
\; fluent will run the folowing 1st journal file with number of steps 110

chdir C:\Users\LENMAS~1\OneDrive\Desktop\Journal
file/read-case/tube.cas
solve/initialize/set-defaults/temperature/61
solve/initialize/initialize
solve/set/time-step/0.21
solve/dual-time-iterate 110 21
yes

\; then in cmd also, while we are opening fluent, write the folowing to run with
different time steps 90, which is 2nd journal file
/file> read-journal
journal file names [] "C:\Users\Len MASHAQI\OneDrive\Desktop\Journal\
batchfiletest2"
journal file names []
(press enter)
\; fluent will run the folowing 2nd journal file with number of steps 90
file/read-case/tube.cas
ok
solve/initialize/set-defaults/temperature/61
solve/initialize/initialize
solve/set/time-step/0.21
solve/dual-time-iterate 90 21
yes

\;note here (ok) after reading the case, because ok to discard saving the

...................................................................................
.............................................................................
journalfiletest3 works well, for making two different simulations conditions

...................................................................................
.............................................................................
\;To change file-name : for example we have a report file named by (report-def-0-
rfile), its file-name is (.\\data.out) we want to change its file name to (.\\
8h2p.out), we do following:

solve/report-files/edit/report-def-0-rfile
file-name
"8h2p"
q
...................................................................................
.............................................................................
\;To change directory from C:\MASAHQI to D:\Desktop, by adding(/d) bu without it if
we want to go other files in same directory we write the following:
cd /d D:\Desktop
...................................................................................
.............................................................................
\;to know the short names of directory folder, we write the follwoing:
dir /x

You might also like