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

Type of dictionaryConstructorTablePtr_

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 4 Post By tomislav_maric
  • 1 Post By wouter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2015, 20:57
Default Type of dictionaryConstructorTablePtr_
  #1
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
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!
t.oliveira is offline   Reply With Quote

Old   December 21, 2015, 11:07
Default
  #2
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
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_.
t.oliveira is offline   Reply With Quote

Old   December 21, 2015, 11:32
Default
  #3
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21
tomislav_maric is on a distinguished road
Quote:
Originally Posted by t.oliveira View Post
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!
Check out this blog post. There is an entire series on RTS that I wrote, you might want to read that if you want to understand the RTS mechanism.

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.
tomislav_maric is offline   Reply With Quote

Old   December 21, 2015, 18:27
Default
  #4
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
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
t.oliveira likes this.
wouter is offline   Reply With Quote

Old   December 28, 2015, 13:48
Default
  #5
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
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).
t.oliveira is offline   Reply With Quote

Old   March 2, 2021, 11:44
Default Need Help
  #6
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
what is dictionaryConstructorTablePtr_ and dictionaryConstructorTable??
Piyush25 is offline   Reply With Quote

Reply

Tags
rts


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


All times are GMT -4. The time now is 06:29.