mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Corrected calculation of film wet/dry mask (alpha)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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_;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user