diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C index 5e78e48c97..1b3e4ce3d1 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -237,9 +237,9 @@ void epsilonWallFunctionFvPatchScalarField::calculate scalar w = cornerWeights[faceI]; - epsilon[cellI] = w*Cmu75*pow(k[cellI], 1.5)/(kappa_*y[faceI]); + epsilon[cellI] += w*Cmu75*pow(k[cellI], 1.5)/(kappa_*y[faceI]); - G[cellI] = + G[cellI] += w *(mutw[faceI] + muw[faceI]) *magGradUw[faceI] diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C index fff165e15e..929ca24598 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -244,9 +244,9 @@ void omegaWallFunctionFvPatchScalarField::calculate scalar omegaLog = sqrt(k[cellI])/(Cmu25*kappa_*y[faceI]); - omega[cellI] = w*sqrt(sqr(omegaVis) + sqr(omegaLog)); + omega[cellI] += w*sqrt(sqr(omegaVis) + sqr(omegaLog)); - G[cellI] = + G[cellI] += w *(mutw[faceI] + muw[faceI]) *magGradUw[faceI] diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C index 554c18542d..6b8504a4e9 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -242,9 +242,9 @@ void omegaWallFunctionFvPatchScalarField::calculate scalar omegaLog = sqrt(k[cellI])/(Cmu25*kappa_*y[faceI]); - omega[cellI] = w*sqrt(sqr(omegaVis) + sqr(omegaLog)); + omega[cellI] += w*sqrt(sqr(omegaVis) + sqr(omegaLog)); - G[cellI] = + G[cellI] += w *(nutw[faceI] + nuw[faceI]) *magGradUw[faceI]