|November 17, 2012, 19:10||
How is the turbulence model called in openfoam?
Join Date: Nov 2012
Posts: 168Rep Power: 6
I am looking into how the RAS models are called (for example how k and epsilon equations are called to be solved in pisofoam). I had some questions about this.
Take PISOFOAM as an example, I know that turbulence->correct(); is used to solve the k and epsilon equations and correct the turbulent viscosity. And then turbulence is defined in creatFields. H as follows:
00039 autoPtr<incompressible::turbulenceModel> turbulence
00041 incompressible::turbulenceModel::New(U, phi, laminarTransport)
in the class turbulenceModel, the function correct appears as follows:
00127 void turbulenceModel::correct()
In fact, in transportModel, there is no function defination for correction(). Thus I do not know how the main solver, PISOFOAM, continue to call the k and epsilon equations. I really appreciate it if anyone can give me some help with this problem.
|November 18, 2012, 01:11||
Join Date: Aug 2011
Posts: 11Rep Power: 7
Foam::incompressible::turbulenceModel is an abstract class where the function correct() is virtual, so the child class, e.g. RASmodel, has to redefine it.
RASmodel declares it also as a virtual method, so the next child, e.g. kEpsilon, has to redefine it as well.
In the definition of correct() in kEpsilon finally the additional two equations for k and epsilon are solved.
explanation of virtual functions:
(see Virtual Members)
|Thread||Thread Starter||Forum||Replies||Last Post|
|An error has occurred in cfx5solve:||volo87||CFX||5||June 14, 2013 17:44|
|zeta - F turbulence model||e_boesso||OpenFOAM Programming & Development||15||August 18, 2011 15:31|
|KOmega Turbulence model from wwwopenFOAMWikinet||philippose||OpenFOAM Running, Solving & CFD||30||August 4, 2010 10:26|
|turbulence model equation||Andy Chen||FLOW-3D||4||January 1, 2010 22:45|
|Recompile turbulence model in OpenFoam||qtian||OpenFOAM Running, Solving & CFD||7||November 26, 2007 16:51|