diff --git a/src/finiteArea/faMesh/faPatches/faPatch/faPatch.C b/src/finiteArea/faMesh/faPatches/faPatch/faPatch.C index b0f1692721..199c2bfc5c 100644 --- a/src/finiteArea/faMesh/faPatches/faPatch/faPatch.C +++ b/src/finiteArea/faMesh/faPatches/faPatch/faPatch.C @@ -20,7 +20,7 @@ License FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License +// You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ @@ -424,7 +424,8 @@ Foam::tmp Foam::faPatch::edgeFaceCentres() const Foam::tmp Foam::faPatch::delta() const { - return edgeCentres() - edgeFaceCentres(); + return edgeNormals()*(edgeNormals() & (edgeCentres() - edgeFaceCentres())); + //return edgeCentres() - edgeFaceCentres(); }