Added wet surface check for dry face
This commit is contained in:
parent
85e0d4f65e
commit
7fc1abd4b7
1 changed files with 26 additions and 26 deletions
|
@ -272,19 +272,19 @@ void Foam::ImmersedFace<Distance>::createSubfaces
|
|||
{
|
||||
drySubface_.setSize(nDry);
|
||||
|
||||
// // Check area: if it is very small, reset the face
|
||||
// if
|
||||
// (
|
||||
// drySubface_.mag(facePointsAndIntersections_)
|
||||
// < immersedPoly::liveFactor_()*
|
||||
// localFace.mag(facePointsAndIntersections_)
|
||||
// )
|
||||
// {
|
||||
// // The face is practically wet
|
||||
// isAllWet_ = true;
|
||||
// Check area: if it is very small, reset the face
|
||||
if
|
||||
(
|
||||
drySubface_.mag(facePointsAndIntersections_)
|
||||
< immersedPoly::liveFactor_()*
|
||||
localFace.mag(facePointsAndIntersections_)
|
||||
)
|
||||
{
|
||||
// The face is practically wet
|
||||
isAllWet_ = true;
|
||||
|
||||
// drySubface_.clear();
|
||||
// }
|
||||
drySubface_.clear();
|
||||
}
|
||||
}
|
||||
|
||||
if (nWet < 3)
|
||||
|
@ -299,21 +299,21 @@ void Foam::ImmersedFace<Distance>::createSubfaces
|
|||
{
|
||||
wetSubface_.setSize(nWet);
|
||||
|
||||
// // Check area: if it is very small, reset the face
|
||||
// // Note: must use relative tolerance, ie divide with original face
|
||||
// // area magnitude. HJ, 30/Aug/2018
|
||||
// if
|
||||
// (
|
||||
// wetSubface_.mag(facePointsAndIntersections_)
|
||||
// < immersedPoly::liveFactor_()*
|
||||
// localFace.mag(facePointsAndIntersections_)
|
||||
// )
|
||||
// {
|
||||
// // The face is practically dry
|
||||
// isAllDry_ = true;
|
||||
// Check area: if it is very small, reset the face
|
||||
// Note: must use relative tolerance, ie divide with original face
|
||||
// area magnitude. HJ, 30/Aug/2018
|
||||
if
|
||||
(
|
||||
wetSubface_.mag(facePointsAndIntersections_)
|
||||
< immersedPoly::liveFactor_()*
|
||||
localFace.mag(facePointsAndIntersections_)
|
||||
)
|
||||
{
|
||||
// The face is practically dry
|
||||
isAllDry_ = true;
|
||||
|
||||
// wetSubface_.clear();
|
||||
// }
|
||||
wetSubface_.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue