diff --git a/applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C b/applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C index 9653f0431f..a93712263e 100644 --- a/applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C +++ b/applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C @@ -94,26 +94,23 @@ int main(int argc, char *argv[]) singlePhaseTransportModel laminarTransport(U, phi); - autoPtr rasModel + autoPtr RASModel ( incompressible::RASModel::New(U, phi, laminarTransport) ); - const scalar Cmu = - rasModel->coeffDict().lookupOrDefault("Cmu", 0.09); - const fvPatchList& patches = mesh.boundary(); - forAll(patches, patchI) + forAll(patches, patchi) { - const fvPatch& currPatch = patches[patchI]; + const fvPatch& currPatch = patches[patchi]; if (typeid(currPatch) == typeid(wallFvPatch)) { - yPlus.boundaryField()[patchI] = rasModel->yPlus(patchI, Cmu); - const scalarField& Yp = yPlus.boundaryField()[patchI]; + yPlus.boundaryField()[patchi] = RASModel->yPlus(patchi); + const scalarField& Yp = yPlus.boundaryField()[patchi]; - Info<< "Patch " << patchI + Info<< "Patch " << patchi << " named " << currPatch.name() << " y+ : min: " << min(Yp) << " max: " << max(Yp) << " average: " << average(Yp) << nl << endl; diff --git a/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C b/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C index 087a1b578a..8d18cec8c5 100644 --- a/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C +++ b/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C @@ -184,8 +184,7 @@ tmp RASModel::yPlus(const label patchNo, const scalar Cmu) const { WarningIn ( - "tmp RASModel::yPlus" - "(const label patchNo, const scalar Cmu) const" + "tmp RASModel::yPlus(const label patchNo) const" ) << "Patch " << patchNo << " is not a wall. Returning null field" << nl << endl; diff --git a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C index e17dde609d..6b300390c9 100644 --- a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C +++ b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C @@ -176,8 +176,7 @@ tmp RASModel::yPlus(const label patchNo, const scalar Cmu) const { WarningIn ( - "tmp RASModel::yPlus" - "(const label patchNo, const scalar Cmu) const" + "tmp RASModel::yPlus(const label patchNo) const" ) << "Patch " << patchNo << " is not a wall. Returning null field" << nl << endl;