From aa1c13c7edb65ff50737b52ca0c83967b8b9396c Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 14 Nov 2013 15:37:16 +0000 Subject: [PATCH] Infinite loop error fix. Henrik Rusche --- .../epsilonWallFunctionFvPatchScalarField.C | 3 ++- .../omegaWallFunction/omegaWallFunctionFvPatchScalarField.C | 1 + .../epsilonWallFunctionFvPatchScalarField.C | 1 + .../omegaWallFunction/omegaWallFunctionFvPatchScalarField.C | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) 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 83c58bdf5..a7c4e1db7 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -182,7 +182,8 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs() << patch().name() << ". Evaluating as zeroGradient" << endl; - zeroGradientFvPatchScalarField::updateCoeffs(); + fvPatchScalarField::updateCoeffs(); + zeroGradientFvPatchScalarField::evaluate(); return; } 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 7d5a3e489..ba3dd3788 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -187,6 +187,7 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs() << patch().name() << ". Evaluating as zeroGradient" << endl; + fvPatchScalarField::updateCoeffs(); zeroGradientFvPatchScalarField::evaluate(); return; 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 ffe975383..2a9be021f 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -177,6 +177,7 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs() << patch().name() << ". Evaluating as zeroGradient" << endl; + fvPatchScalarField::updateCoeffs(); zeroGradientFvPatchScalarField::evaluate(); return; 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 357e537c7..9b498fddc 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -182,6 +182,7 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs() << patch().name() << ". Evaluating as zeroGradient" << endl; + fvPatchScalarField::updateCoeffs(); zeroGradientFvPatchScalarField::evaluate(); return;