mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: distinguish between face areaNormal/unitNormal in the code
This commit is contained in:
@ -425,9 +425,7 @@ void Foam::faMesh::calcFaceAreaNormals() const
|
||||
vectorField& nInternal = faceAreaNormals.ref();
|
||||
forAll(localFaces, faceI)
|
||||
{
|
||||
nInternal[faceI] =
|
||||
localFaces[faceI].normal(localPoints)/
|
||||
localFaces[faceI].mag(localPoints);
|
||||
nInternal[faceI] = localFaces[faceI].unitNormal(localPoints);
|
||||
}
|
||||
|
||||
forAll(boundary(), patchI)
|
||||
|
||||
@ -306,8 +306,8 @@ Foam::labelList Foam::faPatch::ngbPolyPatchFaces() const
|
||||
|
||||
Foam::tmp<Foam::vectorField> Foam::faPatch::ngbPolyPatchFaceNormals() const
|
||||
{
|
||||
tmp<vectorField> tfN(new vectorField());
|
||||
vectorField& fN = tfN.ref();
|
||||
auto tfN = tmp<vectorField>::New();
|
||||
auto& fN = tfN.ref();
|
||||
|
||||
if (ngbPolyPatchIndex() == -1)
|
||||
{
|
||||
@ -325,8 +325,7 @@ Foam::tmp<Foam::vectorField> Foam::faPatch::ngbPolyPatchFaceNormals() const
|
||||
|
||||
forAll(fN, faceI)
|
||||
{
|
||||
fN[faceI] = faces[ngbFaces[faceI]].normal(points)
|
||||
/faces[ngbFaces[faceI]].mag(points);
|
||||
fN[faceI] = faces[ngbFaces[faceI]].unitNormal(points);
|
||||
}
|
||||
|
||||
return tfN;
|
||||
|
||||
Reference in New Issue
Block a user