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
......@@ -94,26 +94,23 @@ int main(int argc, char *argv[])
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<incompressible::RASModel> rasModel
autoPtr<incompressible::RASModel> RASModel
(
incompressible::RASModel::New(U, phi, laminarTransport)
);
const scalar Cmu =
rasModel->coeffDict().lookupOrDefault<scalar>("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;
......
......@@ -184,8 +184,7 @@ tmp<scalarField> RASModel::yPlus(const label patchNo, const scalar Cmu) const
{
WarningIn
(
"tmp<scalarField> RASModel::yPlus"
"(const label patchNo, const scalar Cmu) const"
"tmp<scalarField> RASModel::yPlus(const label patchNo) const"
) << "Patch " << patchNo << " is not a wall. Returning null field"
<< nl << endl;
......
......@@ -176,8 +176,7 @@ tmp<scalarField> RASModel::yPlus(const label patchNo, const scalar Cmu) const
{
WarningIn
(
"tmp<scalarField> RASModel::yPlus"
"(const label patchNo, const scalar Cmu) const"
"tmp<scalarField> RASModel::yPlus(const label patchNo) const"
) << "Patch " << patchNo << " is not a wall. Returning null field"
<< nl << endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment