CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Our own viscositymodel (https://www.cfd-online.com/Forums/openfoam-pre-processing/80560-our-own-viscositymodel.html)

T.D. September 29, 2010 10:57

Our own viscositymodel
 
Hi Foamers,

the problem is how to add the Field "T" to an existing viscosityModel.

I found in the threads that we need to add the code:

const volScalarField& T = U_.mesh().lookupObject<volscalarField>("T");

But where to add it exactly please? its not clear?

and in Private member Functions when calculating and returning the new calcNu() const

how must we use T in which form "T" or "T_", what is the difference?

thanks a lot


All times are GMT -4. The time now is 08:48.