CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   understanding how turbulence models are called (http://www.cfd-online.com/Forums/openfoam-programming-development/98891-understanding-how-turbulence-models-called.html)

romant March 21, 2012 10:22

understanding how turbulence models are called
 
I have a simple question on how a turbulence model is called from the main code.

For example in the main code usually the UEqn.H file, a line like
Code:

turbulence->divDevReff(U)
appears. I can now take a look at a turbulence model and see, yes, there is a function divDevReff, which calculates the div(R). However, this function then needs only nuEff() from the turbulence model, which is just a function getting the private class variable nut_ plus nu() which comes from the transport model. At no point the actual member function RASModel.correct() is called.

This leaves me a little bit puzzled :confused:, I though that at some point this function should be called, since it solves the turbulence related equation for example k and epsilon. Therefore, how and when is the correct() function called?


All times are GMT -4. The time now is 07:47.