yPlusRAS evaluation in OpenFOAM 2.2x
I have been trying to find out how OpenFOAM 2.2x calculates yPlus() in yPlusRAS.C. Can anyone specify which (included) file has the definition for yPlus in terms of wall shear velocity, wall distance, C_mu ...?
I saw in some other threads that the value of yPlus comes from RASModel.C in OpenFOAM 2.1x, where in it considers C_mu, y_, nu, k for the evaluation; but I don't think that's the case with OpenFOAM 2.2x.
When I was going through yPlusRAS.C in OF22x, I found that one of the included files is nutWallFunctionFvPatchScalarField.H, which defines a method yPlus() on line 156, as:
virtual tmp<scalarField> yPlus() const = 0;
Isn't that equivalent to setting yPlus equal to 0? This can't be the correct evaluation, I guess.
Ok, I figured out the answer. The yPlus() implementation is in the relevant wall Functions. The nutWallFunctionFvPatchScalarField.H merely creates a skeleton for yPlus evaluation and is hence equated to 0.
|All times are GMT -4. The time now is 14:06.|