From c8f89b17a24dcb8dbd4c573fa5f8a85ad4df55c0 Mon Sep 17 00:00:00 2001
From: andy <a.heather@opencfd.co.uk>
Date: Thu, 10 Jul 2008 11:02:49 +0100
Subject: [PATCH] kappa and E now need read as scalars instead of
 dimensionedScalars

---
 .../muSgsWallFunctionFvPatchScalarField.C                  | 7 ++-----
 .../nuSgsWallFunctionFvPatchScalarField.C                  | 7 ++-----
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/turbulenceModels/LES/compressible/wallFunc/muSgsWallFunction/muSgsWallFunctionFvPatchScalarField.C b/src/turbulenceModels/LES/compressible/wallFunc/muSgsWallFunction/muSgsWallFunctionFvPatchScalarField.C
index ce0437f7266..ae40fddaf69 100644
--- a/src/turbulenceModels/LES/compressible/wallFunc/muSgsWallFunction/muSgsWallFunctionFvPatchScalarField.C
+++ b/src/turbulenceModels/LES/compressible/wallFunc/muSgsWallFunction/muSgsWallFunctionFvPatchScalarField.C
@@ -114,12 +114,9 @@ void muSgsWallFunctionFvPatchScalarField::evaluate
     const LESModel& sgsModel
         = db().lookupObject<LESModel>("LESProperties");
 
-    scalar kappa = dimensionedScalar(sgsModel.lookup("kappa")).value();
+    scalar kappa = readScalar(sgsModel.lookup("kappa"));
 
-    scalar E = dimensionedScalar
-    (
-        sgsModel.subDict("wallFunctionCoeffs").lookup("E")
-    ).value();
+    scalar E = readScalar(sgsModel.subDict("wallFunctionCoeffs"));
 
     const scalarField& ry = patch().deltaCoeffs();
 
diff --git a/src/turbulenceModels/LES/incompressible/wallFunc/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C b/src/turbulenceModels/LES/incompressible/wallFunc/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C
index f19a0def228..d7be3cf9f0d 100644
--- a/src/turbulenceModels/LES/incompressible/wallFunc/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C
+++ b/src/turbulenceModels/LES/incompressible/wallFunc/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C
@@ -103,12 +103,9 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
     const LESModel& sgsModel
         = db().lookupObject<LESModel>("LESProperties");
 
-    scalar kappa = dimensionedScalar(sgsModel.lookup("kappa")).value();
+    scalar kappa = readScalar(sgsModel.lookup("kappa"));
 
-    scalar E = dimensionedScalar
-    (
-        sgsModel.subDict("wallFunctionCoeffs").lookup("E")
-    ).value();
+    scalar E = readScalar(sgsModel.subDict("wallFunctionCoeffs").lookup("E"));
 
     const scalarField& ry = patch().deltaCoeffs();
 
-- 
GitLab