CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Compiling kOmegaSST in Openfoam 9 (https://www.cfd-online.com/Forums/openfoam-programming-development/242767-compiling-komegasst-openfoam-9-a.html)

_helix22_ May 10, 2022 09:24

Compiling kOmegaSST in Openfoam 9
 
Hi everyone,

I am currently working on modifying the kOmegaSST Turbulence model for a research project. I previously worked in Openfoam V2112 (so the ESI version) using
this tutorial and it worked nicely. However, because I need some features of Openfoam 9 I have to recompile the model for OF9. Due to significant differences between these versions, I decided to start with a clean slate, and, as an initial step, just copy and rename the kOmegaSST model (as suggested in most Tutorials). But here I already get lost in includes and dependencies, as a lot of files have been renamed since OF 6... My primary problem is setting up the Make folder and finding out which file to make... Does anyone here have experience with compiling turbulence models in OF9 or maybe knows of a tutorial which I was too stupid to find?

Thanks in advance,

All the best,
Alex

j-avdeev May 10, 2022 13:07

Hi,
maybe I am wrong, but you can try.

1. Use $FOAM_SRC/src/ThermophysicalTransportModels/

instead of
$FOAM_SRC/TurbulenceModels/turbulenceModels

from your tutorial.

2. Run
Code:

wmake libso

from copy of
ThermophysicalTransportModels folder to generate libfile.

Here README of lib generation and usage in OpenFOAM
as example.


All times are GMT -4. The time now is 14:27.