|
[Sponsors] |
August 29, 2023, 14:04 |
Journal file for LES
|
#1 |
New Member
Vasanth Kumar G
Join Date: Jun 2021
Location: India
Posts: 3
Rep Power: 5 |
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. |
|
August 30, 2023, 00:01 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,758
Rep Power: 66 |
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 |
|
August 31, 2023, 08:07 |
|
#3 |
New Member
Vasanth Kumar G
Join Date: Jun 2021
Location: India
Posts: 3
Rep Power: 5 |
Thats a neat idea. I will try and see if it works and update.
|
|
Tags |
les, rans, rans les interface, turbulence, udf code |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |