From 09ecb995d1bf6dd0f7529923e15503b991ec6b65 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 7 Dec 2012 16:29:40 +0000 Subject: [PATCH 01/24] 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_; From 83cb3df56b06c85a434502bdb6d7e3b4907648aa Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 7 Dec 2012 16:35:18 +0000 Subject: [PATCH 02/24] ENH: Updated debug for parallel running --- .../dynamicRefineFvMesh/dynamicRefineFvMesh.C | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C b/src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C index b0f22f5f7e..c8819904ea 100644 --- a/src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C +++ b/src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -299,8 +299,7 @@ Foam::dynamicRefineFvMesh::refine } if (debug) { - Info<< "Found " << returnReduce(masterFaces.size(), sumOp