From f118d9a2a2d2cd5bace08dafcf885ea436dbb01c Mon Sep 17 00:00:00 2001
From: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
Date: Wed, 30 Mar 2022 10:21:49 +0100
Subject: [PATCH] BUG: humidityTemperature: fix dropwise condensation
 expression (fixes #2422)

---
 ...TemperatureCoupledMixedFvPatchScalarField.C |  7 ++++---
 ...TemperatureCoupledMixedFvPatchScalarField.H | 18 ++++++++++++------
 2 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C b/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C
index 1baf7faece9..61a150ce105 100644
--- a/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C
+++ b/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C
@@ -5,7 +5,7 @@
     \\  /    A nd           | www.openfoam.com
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
-    Copyright (C) 2015-2021 OpenCFD Ltd.
+    Copyright (C) 2015-2022 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
     This file is part of OpenFOAM.
@@ -77,9 +77,10 @@ Foam::humidityTemperatureCoupledMixedFvPatchScalarField::htcCondensation
     const scalar Re
 ) const
 {
-    if (Tsat > 295 && Tsat < 373)
+    // (BLID:Eq. 10.52-10.53)
+    if (Tsat > 295.15 && Tsat < 373.15)
     {
-        return 51104 + 2044*Tsat;
+        return 51104 + 2044*(Tsat - 273.15);
     }
     else
     {
diff --git a/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.H b/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.H
index bc5d081cdb6..64cfd0f070e 100644
--- a/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.H
+++ b/src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.H
@@ -5,7 +5,7 @@
     \\  /    A nd           | www.openfoam.com
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
-    Copyright (C) 2015-2021 OpenCFD Ltd.
+    Copyright (C) 2015-2022 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
     This file is part of OpenFOAM.
@@ -52,13 +52,19 @@ Description
     It assumes a drop-wise type of condensation, whereby its heat transfer
     Nusselt number is calculated using:
     \f{eqnarray*}{
-        51104 + 2044 T   & T > 295 & T < 373 \\
-        255510           & T > 373 &
+        51104 + 2044 (T - 273.15)   & T > 295 & T < 373 \\
+        255510                      & T > 373 &
     \f}
 
-    Reference:
-    - T. Bergam, A.Lavine, F. Incropera and D. Dewitt. Heat and Mass Transfer.
-      7th Edition. Chapter 10.
+    References:
+    \verbatim
+        Standard models (tag:BLID):
+            Bergman, T. L., Lavine, A. S.,
+            Incropera, F. P., & Dewitt, D. P. (2011).
+            Fundamentals of heat and mass transfer.
+            John Wiley & Sons. 7th Edition. Chapter 10.
+            ISBN:9780470501979
+    \endverbatim
 
     The mass transfer correlation used is:
 
-- 
GitLab