|
[Sponsors] |
July 13, 2022, 10:15 |
Recompiling kOmegaSSTBase.C
|
#1 |
New Member
Anthony Man
Join Date: Apr 2020
Location: University of Manchester
Posts: 2
Rep Power: 0 |
Hi,
I've made a small modification in kOmegaSSTBase.C and would like to recompile the code. However, I can't find the Make folder which compiles this code. For example in src/TurbulenceModels/turbulenceModels, the Make/files does not contain Base/kOmegaSST/kOmegaSSTBase.C. I would like to ask which Make folder compiles the code in kOmegaSSTBase.C? I am using OpenFOAM v2006. Any help very much appreciated. Thanks Anthony |
|
July 14, 2022, 03:22 |
|
#2 | |
Member
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4 |
Quote:
The reason for that is, that all momentum transport models are compiled as a whole library (-lmomentumTransportProperties). Copy the whole folder momentumTransportModels into your own library folder and recompile it into FOAM_USER_LIBBIN. Normally you dont need to touch the other files. |
||
July 14, 2022, 04:34 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
If you take another look, you will notice that that file is actually a template file (the include is near the bottom of kOmegaSSTBase.H) so there will not be a compilation for it directly. If you search a bit further in the code base (eg, "git grep") for "public kOmegaSSTBase", you will find which other classes inherit from it. These are also templated and don't have a direct compilation file either. When you've descended far enough down the rabbit hole, you will finally discover the files "turbulentFluidThermoModels.C" and "turbulentTransportModels.C" which are where the things are actually (finally!) compiled. Welcome to C++ ! |
||
July 19, 2022, 09:37 |
|
#4 |
New Member
Anthony Man
Join Date: Apr 2020
Location: University of Manchester
Posts: 2
Rep Power: 0 |
Thank you both for your responses! It compiles now
|
|
Tags |
compile, komegasst, openfoam 2006, turbulence model |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] An Error in recompiling of openFoam-7 | alimea | OpenFOAM Installation | 0 | May 7, 2021 06:56 |
recompiling solver issue with wmake | joshmccraney | OpenFOAM Programming & Development | 8 | May 20, 2020 17:42 |
[OpenFOAM.com] An Error in recompiling of openFoam-4.0 | alimea | OpenFOAM Installation | 4 | April 8, 2020 15:44 |
adding a turbulence model without recompiling the core | sebastianweiper | OpenFOAM Programming & Development | 2 | February 19, 2011 15:04 |
Error encounterd while recompiling the solver | m.maneshi | OpenFOAM Running, Solving & CFD | 0 | October 21, 2010 17:17 |