|
[Sponsors] |
December 19, 2015, 20:57 |
Type of dictionaryConstructorTablePtr_
|
#1 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Dear all,
In many parts of OpenFOAM (e.g. src/combustionModels/psiCombustionModel/psiCombustionModel/psiCombustionModelNew.C) the variable dictionaryConstructorTablePtr_ occurs. I would like to know what the class of this variable is, and where on the code it is instantiated. Thanks! |
|
December 21, 2015, 11:07 |
|
#2 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
I found that the variable dictionaryConstructorTablePtr_ that occurs on src/combustionModels/psiCombustionModel/psiCombustionModel/psiCombustionModelNew.C
is of pointer type Foam::combustionModels:: psiCombustionModel::dictionaryConstructorTable* {aka Foam::HashTable<Foam::autoPtr<Foam::combustionMode ls:: psiCombustionModel> (*)(const Foam::word&, const Foam::fvMesh&), Foam::word, Foam::string::hash>*}. So I believe its type varies according to the scope of dictionaryConstructorTablePtr_. |
|
December 21, 2015, 11:32 |
|
#3 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
FYI: do not expect to read that stuff in 2 minutes and understand everything immediately - it's a complicated system that uses macros together with nested class templates to register stuff to class-static hash tables. It is not a cookie recipe Work over the source code examples (available on bitbucket ). If you find a bug in the examples, please submit an issue here
__________________
When asking a question, prepare a SSCCE. |
||
December 21, 2015, 18:27 |
|
#4 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17 |
Hello t.oliveira
found another place where it is explained in another way. http://openfoamwiki.net/index.php/Op...tion_mechanism Maybe it helps, Wouter |
|
December 28, 2015, 13:48 |
|
#5 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Thanks, Tomislav and Wouter.
Tomislav, the series on RTS on sourceflux blog is one of a kind. Please consider making a new chapter out of it to add to the next edition of your book (which has been very useful, by the way). |
|
March 2, 2021, 11:44 |
Need Help
|
#6 |
New Member
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5 |
what is dictionaryConstructorTablePtr_ and dictionaryConstructorTable??
|
|
Tags |
rts |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
Simulation of Radial Fan with simpleFoam MRF | nash | OpenFOAM Running, Solving & CFD | 2 | November 5, 2015 10:12 |
interFoam/kOmegaSST tank filling with printStackError/Mules | simpomann | OpenFOAM Running, Solving & CFD | 3 | February 17, 2014 17:06 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 14:16 |
pipe flow with heat transfer | Fabian | OpenFOAM | 2 | December 12, 2009 04:53 |