Added wet surface check for dry face

This commit is contained in:
Hrvoje Jasak 2019-03-15 10:47:56 +00:00
parent 85e0d4f65e
commit 7fc1abd4b7

View file

@ -272,19 +272,19 @@ void Foam::ImmersedFace<Distance>::createSubfaces
{ {
drySubface_.setSize(nDry); drySubface_.setSize(nDry);
// // Check area: if it is very small, reset the face // Check area: if it is very small, reset the face
// if if
// ( (
// drySubface_.mag(facePointsAndIntersections_) drySubface_.mag(facePointsAndIntersections_)
// < immersedPoly::liveFactor_()* < immersedPoly::liveFactor_()*
// localFace.mag(facePointsAndIntersections_) localFace.mag(facePointsAndIntersections_)
// ) )
// { {
// // The face is practically wet // The face is practically wet
// isAllWet_ = true; isAllWet_ = true;
// drySubface_.clear(); drySubface_.clear();
// } }
} }
if (nWet < 3) if (nWet < 3)
@ -299,21 +299,21 @@ void Foam::ImmersedFace<Distance>::createSubfaces
{ {
wetSubface_.setSize(nWet); wetSubface_.setSize(nWet);
// // Check area: if it is very small, reset the face // Check area: if it is very small, reset the face
// // Note: must use relative tolerance, ie divide with original face // Note: must use relative tolerance, ie divide with original face
// // area magnitude. HJ, 30/Aug/2018 // area magnitude. HJ, 30/Aug/2018
// if if
// ( (
// wetSubface_.mag(facePointsAndIntersections_) wetSubface_.mag(facePointsAndIntersections_)
// < immersedPoly::liveFactor_()* < immersedPoly::liveFactor_()*
// localFace.mag(facePointsAndIntersections_) localFace.mag(facePointsAndIntersections_)
// ) )
// { {
// // The face is practically dry // The face is practically dry
// isAllDry_ = true; isAllDry_ = true;
// wetSubface_.clear(); wetSubface_.clear();
// } }
} }
} }
} }