From 7db1464e732207a736b6d7d07cfc6ad5461c11cf Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 2 Oct 2009 10:32:40 +0100 Subject: [PATCH] Corrected the initialisation of nut and mut for the solution and the application of the stability limiter. --- .../mutkRoughWallFunctionFvPatchScalarField.C | 2 +- .../nutkRoughWallFunctionFvPatchScalarField.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions/mutkRoughWallFunction/mutkRoughWallFunctionFvPatchScalarField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions/mutkRoughWallFunction/mutkRoughWallFunctionFvPatchScalarField.C index 67353e4319..3452692f0e 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions/mutkRoughWallFunction/mutkRoughWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions/mutkRoughWallFunction/mutkRoughWallFunctionFvPatchScalarField.C @@ -77,7 +77,7 @@ tmp mutkRoughWallFunctionFvPatchScalarField::calcMut() const const scalar Cmu25 = pow025(Cmu_); - tmp tmutw(new scalarField(patch().size(), 0.0)); + tmp tmutw(new scalarField(*this)); scalarField& mutw = tmutw(); forAll(mutw, faceI) diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C index fdd5428a71..ce9fe5465a 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C @@ -76,7 +76,7 @@ tmp nutkRoughWallFunctionFvPatchScalarField::calcNut() const const scalar Cmu25 = pow025(Cmu_); - tmp tnutw(new scalarField(patch().size(), 0.0)); + tmp tnutw(new scalarField(*this)); scalarField& nutw = tnutw(); forAll(nutw, faceI)