Skip to content
Snippets Groups Projects
Commit d7f3143a authored by Andrew Heather's avatar Andrew Heather
Browse files

Revert "bugfix for extra RASModel::yPlus() parameters"

This reverts commit 82e59fa1.
parent d28cf0f2
No related branches found
No related tags found
No related merge requests found
...@@ -94,26 +94,23 @@ int main(int argc, char *argv[]) ...@@ -94,26 +94,23 @@ int main(int argc, char *argv[])
singlePhaseTransportModel laminarTransport(U, phi); singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<incompressible::RASModel> rasModel autoPtr<incompressible::RASModel> RASModel
( (
incompressible::RASModel::New(U, phi, laminarTransport) incompressible::RASModel::New(U, phi, laminarTransport)
); );
const scalar Cmu =
rasModel->coeffDict().lookupOrDefault<scalar>("Cmu", 0.09);
const fvPatchList& patches = mesh.boundary(); 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)) if (typeid(currPatch) == typeid(wallFvPatch))
{ {
yPlus.boundaryField()[patchI] = rasModel->yPlus(patchI, Cmu); yPlus.boundaryField()[patchi] = RASModel->yPlus(patchi);
const scalarField& Yp = yPlus.boundaryField()[patchI]; const scalarField& Yp = yPlus.boundaryField()[patchi];
Info<< "Patch " << patchI Info<< "Patch " << patchi
<< " named " << currPatch.name() << " named " << currPatch.name()
<< " y+ : min: " << min(Yp) << " max: " << max(Yp) << " y+ : min: " << min(Yp) << " max: " << max(Yp)
<< " average: " << average(Yp) << nl << endl; << " average: " << average(Yp) << nl << endl;
......
...@@ -184,8 +184,7 @@ tmp<scalarField> RASModel::yPlus(const label patchNo, const scalar Cmu) const ...@@ -184,8 +184,7 @@ tmp<scalarField> RASModel::yPlus(const label patchNo, const scalar Cmu) const
{ {
WarningIn WarningIn
( (
"tmp<scalarField> RASModel::yPlus" "tmp<scalarField> RASModel::yPlus(const label patchNo) const"
"(const label patchNo, const scalar Cmu) const"
) << "Patch " << patchNo << " is not a wall. Returning null field" ) << "Patch " << patchNo << " is not a wall. Returning null field"
<< nl << endl; << nl << endl;
......
...@@ -176,8 +176,7 @@ tmp<scalarField> RASModel::yPlus(const label patchNo, const scalar Cmu) const ...@@ -176,8 +176,7 @@ tmp<scalarField> RASModel::yPlus(const label patchNo, const scalar Cmu) const
{ {
WarningIn WarningIn
( (
"tmp<scalarField> RASModel::yPlus" "tmp<scalarField> RASModel::yPlus(const label patchNo) const"
"(const label patchNo, const scalar Cmu) const"
) << "Patch " << patchNo << " is not a wall. Returning null field" ) << "Patch " << patchNo << " is not a wall. Returning null field"
<< nl << endl; << nl << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment