Non-orthogonality in invalid meshes

This commit is contained in:
Hrvoje Jasak 2012-01-29 11:45:06 +00:00
parent 10bcaab605
commit 5a5d968e49
2 changed files with 8 additions and 2 deletions

View file

@ -146,7 +146,10 @@ void Foam::ggiFvPatch::makeCorrVecs(vectorField& cv) const
vectorField patchDeltas = delta(); vectorField patchDeltas = delta();
vectorField n = nf(); vectorField n = nf();
cv = n - patchDeltas*patchDeltaCoeffs;
// If non-orthogonality is over 90 deg, kill correction vector
// HJ, 6/Jan/2011
cv = pos(patchDeltas & n)*(n - patchDeltas*patchDeltaCoeffs);
} }

View file

@ -157,7 +157,10 @@ void Foam::regionCoupleFvPatch::makeCorrVecs(vectorField& cv) const
vectorField patchDeltas = delta(); vectorField patchDeltas = delta();
vectorField n = nf(); vectorField n = nf();
cv = n - patchDeltas*patchDeltaCoeffs;
// If non-orthogonality is over 90 deg, kill correction vector
// HJ, 6/Jan/2011
cv = pos(patchDeltas & n)*(n - patchDeltas*patchDeltaCoeffs);
} }
else else
{ {