|
[Sponsors] |
June 29, 2016, 11:38 |
basic ChemistryModel Inheritance in OpenFOAM
|
#1 |
New Member
ali
Join Date: Feb 2011
Location: Austria
Posts: 4
Rep Power: 15 |
Dear Foamers,
The basic chemistryModel in OpenFOAM is inheritated from ODESystem and CompType as shown from figure below: The ODESystem Class implementation is clearly exist in the src (I mean the C and H files). However, there is not neither description nor the source file of CompType class definition?!? has any body some idea what is this class and what functionality it does?! I appreciate any help on this matter. Kind regards, Ali |
|
June 29, 2016, 15:47 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
CompType in this case is psiChemistryModel or rhoChemistryModel, I believe. It's CRTP (Curiously Recurring Template Pattern). You have to look up the instantiations.
ThermoType is worse. Around five levels of embedded CRTP. Hundreds of instantiations. Easiest way is to run a test case and set thermoType to 'banana'.
__________________
~~~ Follow me on twitter @DavidGaden |
|
June 29, 2016, 16:23 |
|
#3 |
New Member
ali
Join Date: Feb 2011
Location: Austria
Posts: 4
Rep Power: 15 |
Dear David,
now I got the idea behind (I hope so ). many thanks for your kind respond. BR, Ali |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
OpenFOAM Foundation Releases OpenFOAM v2.3.0 | opencfd | OpenFOAM Announcements from OpenFOAM Foundation | 3 | December 23, 2014 03:43 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 09:04 |
[mesh manipulation] Basic Of MovingMesh - OpenFoam! | ali jafari | OpenFOAM Meshing & Mesh Conversion | 0 | December 20, 2012 04:31 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |