CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Calculating YPLUS and Compiling Multiple C files (

sanjibdsharma August 10, 2009 07:07

Calculating YPLUS and Compiling Multiple C files

I am new to OpenFoam and trying to determine YPlus values from Turbulent flow. I found the yPlusRAS.C file. However, I do not know how to compile this along with any other flow solver, for eg. simpleFoam.C. I have tried to change the Make file in the solver as:


EXE = $(USER_APP_BIN)/ simpleFoam

But this did not work.

Can anyone suggest a way to determine YPlus and also how to compile multiple C files in OpenFoam.

Thanks a lot in advance.


l_r_mcglashan August 11, 2009 06:56

This doesn't really make sense. Do you want to calculate yPlus values for post processing, or do you need them during the calculation?

Look inside yPlusRAS.C. If you want to calculate a field of yPlus values, you'll see on line 54 that the field is declared and initialised. On line 99, the yPlus values are calculated. You'll see that they come from RASModel.

All times are GMT -4. The time now is 16:04.