turbulenceModel - class definition
Hi everyone!
I am relatively new at OpenFOAM (v2.2.0 on Ubuntu 12.04), and I have some problems understanding parts of the code. If you could help me a bit, I would really appreciate! I am mainly interested in the implementation of turbulence models. 1. If I go in "pimpleFoam.C", the file "createFields.C" is included. This file calls a function "incompressible::turbulenceModel::New(U, phi, laminarTransport)". First surprise, this function is actually defined in the file "turbulenceModel.C", but with four arguments instead of three (it also requires "const word& turbulenceModelName"). I initially thought that the function might be overloaded, but I could not find any other "New" function, that would only contain three arguments...Where is it defined?? 2. In the file "turbulenceModel.C", you can also read turbulenceModelConstructorTable::iterator cstrIter = turbulenceModelConstructorTablePtr_->find(modelType) where "modelType" is either "LES" or "RAS". However, I couldn't find anywhere in OpenFOAM the definitions of the other parameters! (using find/grep, etc). I thought "turbulenceModelConstructorTablePtr_" was a pointer pointing at an object of the class "turbulenceModelConstructorTable". This class should contain an iterator function called "find". Where are these classes being defined in the code?? (it has to be somewhere!). Thank you very much for your help! Joachim |
I can't give you a clear answer on the questions, but I can advise you to read this page: http://openfoamwiki.net/index.php/Op...tion_mechanism
|
Thanks Bernhard! That solves my second question.
I also found the answer to my first question. I actually forgot to check the turbulenceModel.H file. The fourth argument is given a default value if not specified by the user. |
All times are GMT -4. The time now is 21:14. |