CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Journal file for LES (https://www.cfd-online.com/Forums/fluent/251620-journal-file-les.html)

Vasanth Kumar G August 29, 2023 13:04

Journal file for LES
 
Hi all,

I have a fine mesh for LES simulation. According to Fluent tutorials, I have to run RANS like Realizable K-epsilon and then add turbulent fluctuations to initial conditions to run LES. The trouble is- i cannot run initial RANS in my system. I need to write journal file. I wrote one for SST k-omega like this:

module add ansys/2021

/define/user-defined/interpreted-functions "flength.c"
"cpp" 10000 no

;Reading in the case file
/rc FFF_33.cas.h5
;
; initialising the system
/solve/initialize/hyb-initialization
;
;Setting the number of iterations and solving
/solve/iterate 3000
;
;Writing the final data file (overwriting if required)
/wd FFF_33.dat.h5
;
;Exit Fluent
/exit ok

After 50 iterations, I have to add turb-fluctuations and then Smagorinski-Lilly model for 1000 iterations or so. I also need data for statistical analysis. How can I do that? I am really new to writing udf. Any help is appreciated.

LuckyTran August 29, 2023 23:01

Pro tip:
generate a coarse mesh that you can run on your system so you can write the journal file and then use the journal file on the fine mesh

Vasanth Kumar G August 31, 2023 07:07

Thats a neat idea. I will try and see if it works and update.


All times are GMT -4. The time now is 17:49.