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 1b3e4ce3d142d6d1536955a0e423e99b461a46fb..3f1ab4a2c221a5ec3f71bfdb49454fa4c8ae5cc2 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -464,6 +464,8 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs FieldType& epsilon = const_cast<FieldType&>(dimensionedInternalField()); + scalarField& epsilonf = *this; + // only set the values if the weights are < 1 - tolerance forAll(weights, faceI) { @@ -475,6 +477,7 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI]; epsilon[cellI] = w*epsilon[cellI] + (1.0 - w)*epsilon0[cellI]; + epsilonf[faceI] = epsilon[cellI]; } } 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 929ca24598248f2f0bc817e9a687df202b998093..2f4e11dc20f99ed3e0d25d7d51620139795f88f1 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -481,6 +481,8 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs FieldType& omega = const_cast<FieldType&>(dimensionedInternalField()); + scalarField& omegaf = *this; + // only set the values if the weights are < 1 - tolerance forAll(weights, faceI) { @@ -492,6 +494,7 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI]; omega[cellI] = w*omega[cellI] + (1.0 - w)*omega0[cellI]; + omegaf[faceI] = omega[cellI]; } } diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C index 7fb6fcfb96e1ebe727a59ffff566480f1f347d7c..dc08123d264a5f43a0e94c91dab6926b70d2489c 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -464,6 +464,8 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs FieldType& epsilon = const_cast<FieldType&>(dimensionedInternalField()); + scalarField& epsilonf = *this; + // only set the values if the weights are < 1 - tolerance forAll(weights, faceI) { @@ -475,6 +477,7 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI]; epsilon[cellI] = w*epsilon[cellI] + (1.0 - w)*epsilon0[cellI]; + epsilonf[faceI] = epsilon[cellI]; } } 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 6b8504a4e9b46ff4c6ca0de5a0adaba64dfaa9c0..69f8ffd170597e3a328c61c82d2d2a9d2df082c7 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -479,6 +479,8 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs FieldType& omega = const_cast<FieldType&>(dimensionedInternalField()); + scalarField& omegaf = *this; + // only set the values if the weights are < 1 - tolerance forAll(weights, faceI) { @@ -490,6 +492,7 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI]; omega[cellI] = w*omega[cellI] + (1.0 - w)*omega0[cellI]; + omegaf[faceI] = omega[cellI]; } }