BUG: Correcting delta in fa consistent with fv.

Solve issue 1431 Gitlab. delta() calculation on the patch is consistent
with not applying non-orthogonality on the patch.
This commit is contained in:
sergio
2019-09-27 15:16:00 -07:00
committed by Andrew Heather
parent 92f288ca36
commit 58f6258d7a

View File

@ -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 <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
@ -424,7 +424,8 @@ Foam::tmp<Foam::vectorField> Foam::faPatch::edgeFaceCentres() const
Foam::tmp<Foam::vectorField> Foam::faPatch::delta() const
{
return edgeCentres() - edgeFaceCentres();
return edgeNormals()*(edgeNormals() & (edgeCentres() - edgeFaceCentres()));
//return edgeCentres() - edgeFaceCentres();
}