CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Recompiling kOmegaSSTBase.C

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By überschwupper
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2022, 09:15
Default Recompiling kOmegaSSTBase.C
  #1
New Member
 
Anthony Man
Join Date: Apr 2020
Location: University of Manchester
Posts: 2
Rep Power: 0
AnthonyMan is on a distinguished road
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
AnthonyMan is offline   Reply With Quote

Old   July 14, 2022, 02:22
Default
  #2
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4
überschwupper is on a distinguished road
Quote:
Originally Posted by AnthonyMan View Post
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

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.
AnthonyMan likes this.
überschwupper is offline   Reply With Quote

Old   July 14, 2022, 03:34
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by AnthonyMan View Post
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

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++ !
AnthonyMan likes this.
olesen is online now   Reply With Quote

Old   July 19, 2022, 08:37
Default
  #4
New Member
 
Anthony Man
Join Date: Apr 2020
Location: University of Manchester
Posts: 2
Rep Power: 0
AnthonyMan is on a distinguished road
Thank you both for your responses! It compiles now
AnthonyMan is offline   Reply With Quote

Reply

Tags
compile, komegasst, openfoam 2006, turbulence model


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 05:56
recompiling solver issue with wmake joshmccraney OpenFOAM Programming & Development 8 May 20, 2020 16:42
[OpenFOAM.com] An Error in recompiling of openFoam-4.0 alimea OpenFOAM Installation 4 April 8, 2020 14:44
adding a turbulence model without recompiling the core sebastianweiper OpenFOAM Programming & Development 2 February 19, 2011 14:04
Error encounterd while recompiling the solver m.maneshi OpenFOAM Running, Solving & CFD 0 October 21, 2010 16:17


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