mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: advancing front AMI - use area in direction of face normal
This commit is contained in:
@ -361,6 +361,8 @@ void Foam::advancingFrontAMI::triangulatePatch
|
||||
tris.setSize(patch.size());
|
||||
magSf.setSize(patch.size());
|
||||
|
||||
const auto& faceNormals = patch.faceNormals();
|
||||
|
||||
// Using methods that index into existing points
|
||||
forAll(patch, facei)
|
||||
{
|
||||
@ -390,7 +392,8 @@ void Foam::advancingFrontAMI::triangulatePatch
|
||||
points[f[0]],
|
||||
points[f[1]],
|
||||
points[f[2]]
|
||||
).mag();
|
||||
).areaNormal()
|
||||
& faceNormals[facei];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user