ENH: advancing front AMI - use area in direction of face normal

This commit is contained in:
Andrew Heather
2022-12-12 18:07:31 +00:00
parent 7c235371ff
commit c3b0742e03

View File

@ -361,6 +361,8 @@ void Foam::advancingFrontAMI::triangulatePatch
tris.setSize(patch.size()); tris.setSize(patch.size());
magSf.setSize(patch.size()); magSf.setSize(patch.size());
const auto& faceNormals = patch.faceNormals();
// Using methods that index into existing points // Using methods that index into existing points
forAll(patch, facei) forAll(patch, facei)
{ {
@ -390,7 +392,8 @@ void Foam::advancingFrontAMI::triangulatePatch
points[f[0]], points[f[0]],
points[f[1]], points[f[1]],
points[f[2]] points[f[2]]
).mag(); ).areaNormal()
& faceNormals[facei];
} }
} }
} }