From 09ecb995d1bf6dd0f7529923e15503b991ec6b65 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 7 Dec 2012 16:29:40 +0000 Subject: [PATCH] BUG: Corrected calculation of film wet/dry mask (alpha) --- .../surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.C | 4 ++-- .../surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.C b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.C index 07a70d651b..e6cee26e03 100644 --- a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.C +++ b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.C @@ -236,11 +236,11 @@ void thermoSingleLayer::correctAlpha() forAll(alpha_, i) { - if ((alpha_[i] < 0.5) && (delta_[i] > hydrophilicDry)) + if ((alpha_[i] < 0.5) && (delta_[i] > hydrophilicWet)) { alpha_[i] = 1.0; } - else if ((alpha_[i] > 0.5) && (delta_[i] < hydrophilicWet)) + else if ((alpha_[i] > 0.5) && (delta_[i] < hydrophilicDry)) { alpha_[i] = 0.0; } diff --git a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H index 696728e7f9..b13c8ac3b0 100644 --- a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H +++ b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H @@ -132,10 +132,12 @@ protected: //- Activation flag bool hydrophilic_; - //- Length scale applied to deltaWet_ for dry faces, typically 0.5 + //- Length scale applied to deltaWet_ to determine when a wet + // surface becomes dry, typically 0.5 scalar hydrophilicDryScale_; - //- Length scale applied to deltaWet_ for wet faces, typically 0.001 + //- Length scale applied to deltaWet_ to determine when a dry + // surface becomes wet, typically 0.001 scalar hydrophilicWetScale_;