CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to write the journal file for the two-phase solver on cluster? (https://www.cfd-online.com/Forums/fluent/237432-how-write-journal-file-two-phase-solver-cluster.html)

zhaohb11_cfd July 17, 2021 09:48

How to write the journal file for the two-phase solver on cluster?
 
Dear,

I am a new user to fluent. Recently, I have met a problem. I want to use fluent on cluster to model two-phase flow. Thus, I have to write the command lines in a journal file to initialize the simulation. I know the regular command lines. But I have no idea writing the command line for multiphase solver. Especially how to patch a region and initialize the region.

I will appreciate it if someone could give me an example or hint. Thanks a lot

AlexanderZ July 19, 2021 21:24

to do it you need TUI commands and scheme
you may check TUI commands in fluent console
click in console and press enter, you will see the list of available options, for example
Code:

adapt/                  file/                  report/
define/                mesh/                  solve/
display/                parallel/              surface/
exit                    plot/                  views/

go to solve and press enter, and so on

you may initialize and patch using something like this
Code:

(ti-menu-load-string (format #f "solve initialize initialize-flow OK"))
(ti-menu-load-string (format #f "solve patch mixture zone-1 zone-2 () temperature no 300"))
(ti-menu-load-string (format #f "solve patch mixture zone-1 zone-2 () temperature no 400"))

mixture is a phase, zone-1 is a name of zone in your domain, instead of temperature you can use other parameter (from the list), value 300 is temperature in K

zhaohb11_cfd July 21, 2021 00:05

thanks a lot. AlexanderZ, I will try your method as soon as possiple


All times are GMT -4. The time now is 09:23.