diff --git a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C index cda78252e61e005dcfa2e479a5f15ae63c545dad..5f19867486addb856d61a48bd85910aedeec6de1 100644 --- a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -229,9 +229,6 @@ void Foam::epsilonWallFunctionFvPatchScalarField::calculate const scalarField magGradUw(mag(Uw.snGrad())); - typedef DimensionedField<scalar, volMesh> FieldType; - const FieldType& G = db().lookupObject<FieldType>(turbModel.GName()); - // Set epsilon and G forAll(nutw, facei) { diff --git a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C index b8633f62bf9bcc461fa0953ae20a754b6ac4f309..5bed4060c5f7f4ea5330e9051f357beaf275daa7 100644 --- a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -233,9 +233,6 @@ void omegaWallFunctionFvPatchScalarField::calculate const scalarField magGradUw(mag(Uw.snGrad())); - typedef DimensionedField<scalar, volMesh> FieldType; - const FieldType& G = db().lookupObject<FieldType>(turbModel.GName()); - // Set omega and G forAll(nutw, facei) {