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

what the meaning of incompressibleTurbulenceModel and IncompressibleTurbulenceModel

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2024, 03:10
Default what the meaning of incompressibleTurbulenceModel and IncompressibleTurbulenceModel
  #1
New Member
 
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2
oaklet is on a distinguished road
Hi, everyone. I was confused that there are some classes which show a very similar class name and definition in the OpenFOAM. When I read the code about the incompressible turbulence model, I found that the class incompressibleTurbulenceModel and IncompressibleTurbulenceModel are very similar. Then, what is the difference and meaning? The related souce code was put bellow. Meanwhile, their parent classes are simliar too, i.e. turbulenceModel and TurbulenceModel. There are also a class named
incompressibleRhoTurbulenceModel whose definition is very close to incompressibleTurbulenceModel. (the souce code file is
$FOAM_SRC/TurbulenceModels/incompressible/incompressibleRhoTurbulenceModel.H)



$FOAM_SRC/TurbulenceModels/incompressible/incompressibleTurbulenceModel.H
class incompressibleTurbulenceModel
:
public turbulenceModel{

...

}




$FOAM_SRC/TurbulenceModels/incompressible/IncompressibleTurbulenceModel/IncompressibleTurbulenceModel.H
template<class TransportModel>
class IncompressibleTurbulenceModel
:
public TurbulenceModel
<
geometricOneField,
geometricOneField,
incompressibleTurbulenceModel,
TransportModel
>
{
...
}




if somebody can help me out, i will appreciate for it! thank you!
oaklet is offline   Reply With Quote

Old   July 18, 2024, 03:41
Default
  #2
New Member
 
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2
oaklet is on a distinguished road
hi, is there anyone? haha
oaklet is offline   Reply With Quote

Old   July 18, 2024, 10:21
Default
  #3
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
Short answer is that the classes that start with a capital letter are the templated abstract base classes, whilst the ones with lower case are just abstract base classes. What does that all mean? It's tied up in the templating and RTS functionality of OpenFOAM which requires a loooong answer.
oaklet likes this.
Tobermory is offline   Reply With Quote

Old   July 18, 2024, 11:38
Default
  #4
New Member
 
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2
oaklet is on a distinguished road
thank you, Tobermory. I got it!
oaklet is offline   Reply With Quote

Reply

Tags
incompressible, openfoam, turbulencemodel


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
meaning of this formula FluidKo Main CFD Forum 5 October 8, 2022 03:57
What's the meaning of 'w' in 'wmake'? random_ran OpenFOAM Programming & Development 1 February 11, 2019 17:53
Meaning of values in combustion kane OpenFOAM Running, Solving & CFD 1 May 14, 2018 06:13
What's meaning of UDF FUNCTION zhaoxinyu Fluent UDF and Scheme Programming 0 March 31, 2010 09:04
want to know meaning Sangamesh Siemens 0 May 15, 2007 06:15


All times are GMT -4. The time now is 16:20.