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

basic ChemistryModel Inheritance in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2016, 11:38
Post basic ChemistryModel Inheritance in OpenFOAM
  #1
New Member
 
ali
Join Date: Feb 2011
Location: Austria
Posts: 4
Rep Power: 15
Ali_CFD is on a distinguished road
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
Ali_CFD is offline   Reply With Quote

Old   June 29, 2016, 15:47
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
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
marupio is offline   Reply With Quote

Old   June 29, 2016, 16:23
Default
  #3
New Member
 
ali
Join Date: Feb 2011
Location: Austria
Posts: 4
Rep Power: 15
Ali_CFD is on a distinguished road
Dear David,

now I got the idea behind (I hope so ). many thanks for your kind respond.

BR,
Ali
Ali_CFD is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 10:52.