Commit 58f6258d authored by sergio's avatar sergio Committed by Andrew Heather
Browse files

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.
parent 92f288ca
...@@ -20,7 +20,7 @@ License ...@@ -20,7 +20,7 @@ License
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details. 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/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
...@@ -424,7 +424,8 @@ Foam::tmp<Foam::vectorField> Foam::faPatch::edgeFaceCentres() const ...@@ -424,7 +424,8 @@ Foam::tmp<Foam::vectorField> Foam::faPatch::edgeFaceCentres() const
Foam::tmp<Foam::vectorField> Foam::faPatch::delta() const Foam::tmp<Foam::vectorField> Foam::faPatch::delta() const
{ {
return edgeCentres() - edgeFaceCentres(); return edgeNormals()*(edgeNormals() & (edgeCentres() - edgeFaceCentres()));
//return edgeCentres() - edgeFaceCentres();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment