|
[Sponsors] |
August 14, 2016, 05:19 |
OpenSource but I cannot find
|
#1 |
Member
|
Hi, Foamers
Openfoam is an OpenSource CFD, but I cannot find the class members "MeshConstructorTablePtr_" and the relevant type "MeshConstructorTable::iterator" in surfaceInterpolationScheme.C Code:
typename MeshConstructorTable::iterator constructorIter = MeshConstructorTablePtr_->find(schemeName); Code:
typedef tmp<surfaceInterpolationScheme> (*MeshConstructorPtr) (const fvMesh& mesh, Istream& schemeData); typedef HashTable<MeshConstructorPtr, word, string::hash> MeshConstructorTable;
__________________
Kai |
|
August 15, 2016, 17:36 |
|
#2 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
The quick answer is that this is all performed through the runtime selection mechanism setup via c++ macros. Take a look at the wiki entry on the runTimeSelection mechanism
You will notice in other files there are things like Code:
defineRunTimeSelectionTable(GAMGAgglomeration, lduMesh); Code:
lduMeshConstructorTable::iterator cstrIter = lduMeshConstructorTablePtr_->find(agglomeratorType); Code:
src/OpenFOAM/db/runTimeSelection/construction/runTimeSelectionTables.H Last edited by chegdan; August 16, 2016 at 10:48. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
How to make a code parallel? | Bruno Machado | Fluent UDF and Scheme Programming | 15 | May 27, 2016 10:18 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |