BUG: Corrected calculation of film wet/dry mask (alpha)

This commit is contained in:
andy
2012-12-07 16:29:40 +00:00
parent 2bb551bc85
commit 09ecb995d1
2 changed files with 6 additions and 4 deletions

View File

@ -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;
}

View File

@ -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_;