From 469a8d85ca543b987e688e087decd29bb8bbf3e8 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Fri, 30 Oct 2015 14:01:20 +0000
Subject: [PATCH] createIncompressibleRadiationModel: Allow specification of
 value only for rhoRef and CpRef Patch provided by Daniel Jasinski:
 http://www.openfoam.org/mantisbt/view.php?id=1856

---
 .../createIncompressibleRadiationModel.H        | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/thermophysicalModels/radiation/include/createIncompressibleRadiationModel.H b/src/thermophysicalModels/radiation/include/createIncompressibleRadiationModel.H
index ab7466d0a79..8179b675534 100644
--- a/src/thermophysicalModels/radiation/include/createIncompressibleRadiationModel.H
+++ b/src/thermophysicalModels/radiation/include/createIncompressibleRadiationModel.H
@@ -21,12 +21,23 @@
                 runTime,
                 IOobject::MUST_READ,
                 IOobject::NO_WRITE,
-                false  // do not register!
+                false // Do not register
             )
         );
 
-        dimensionedScalar rhoRef(transportProperties.lookup("rhoRef"));
-        dimensionedScalar CpRef(transportProperties.lookup("CpRef"));
+        dimensionedScalar rhoRef
+        (
+            "rhoRef",
+            dimDensity,
+            transportProperties
+        );
+
+        dimensionedScalar CpRef
+        (
+            "CpRef",
+            dimSpecificHeatCapacity,
+            transportProperties
+        );
 
         rhoCpRef = rhoRef*CpRef;
     }
-- 
GitLab