Go to the documentation of this file.00001 {
00002 scalar Cmu25 = ::pow(Cmu.value(), 0.25);
00003 scalar kappa_ = kappa.value();
00004 scalar E_ = E.value();
00005 scalar nub_ = nub.value();
00006
00007 const fvPatchList& patches = mesh.boundary();
00008
00009 forAll(patches, patchi)
00010 {
00011 const fvPatch& currPatch = patches[patchi];
00012
00013 if (isA<wallFvPatch>(currPatch))
00014 {
00015 scalarField& nutw = nutb.boundaryField()[patchi];
00016
00017 forAll(currPatch, facei)
00018 {
00019 label faceCelli = currPatch.faceCells()[facei];
00020
00021
00022 scalar yPlus =
00023 Cmu25*y[patchi][facei]
00024 *::sqrt(k[faceCelli])
00025 /nub_;
00026
00027 if (yPlus > 11.6)
00028 {
00029 nutw[facei] =
00030 yPlus*nub_*kappa_
00031 /::log(E_*yPlus)
00032 - nub_;
00033 }
00034 else
00035 {
00036 nutw[facei] = 0.0;
00037 }
00038 }
00039 }
00040 }
00041 }
00042
00043