diff --git a/src/TurbulenceModels/turbulenceModels/eddyViscosity/eddyViscosity.C b/src/TurbulenceModels/turbulenceModels/eddyViscosity/eddyViscosity.C index 70307f645..641f012be 100644 --- a/src/TurbulenceModels/turbulenceModels/eddyViscosity/eddyViscosity.C +++ b/src/TurbulenceModels/turbulenceModels/eddyViscosity/eddyViscosity.C @@ -84,6 +84,23 @@ Foam::eddyViscosity::R() const { tmp tk(k()); + // Get list of patchField type names from k + wordList patchFieldTypes(tk().boundaryField().types()); + + // For k patchField types which do not have an equivalent for symmTensor + // set to calculated + forAll(patchFieldTypes, i) + { + if + ( + !fvPatchField::patchConstructorTablePtr_ + ->found(patchFieldTypes[i]) + ) + { + patchFieldTypes[i] = calculatedFvPatchField::typeName; + } + } + return tmp ( new volSymmTensorField @@ -98,7 +115,7 @@ Foam::eddyViscosity::R() const false ), ((2.0/3.0)*I)*tk() - (nut_)*dev(twoSymm(fvc::grad(this->U_))), - tk().boundaryField().types() + patchFieldTypes ) ); }