|
[Sponsors] |
what the meaning of incompressibleTurbulenceModel and IncompressibleTurbulenceModel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 17, 2024, 03:10 |
what the meaning of incompressibleTurbulenceModel and IncompressibleTurbulenceModel
|
#1 |
New Member
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2 |
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! |
|
July 18, 2024, 03:41 |
|
#2 |
New Member
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2 |
hi, is there anyone? haha
|
|
July 18, 2024, 10:21 |
|
#3 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14 |
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.
|
|
Tags |
incompressible, openfoam, turbulencemodel |
|
|
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 |