Commit 56be7ed6 authored by sergio's avatar sergio

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 271f6f6c
......@@ -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();
}
......
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