Non-orthogonality in invalid meshes
This commit is contained in:
parent
10bcaab605
commit
5a5d968e49
2 changed files with 8 additions and 2 deletions
|
@ -146,7 +146,10 @@ void Foam::ggiFvPatch::makeCorrVecs(vectorField& cv) const
|
|||
|
||||
vectorField patchDeltas = delta();
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -157,7 +157,10 @@ void Foam::regionCoupleFvPatch::makeCorrVecs(vectorField& cv) const
|
|||
|
||||
vectorField patchDeltas = delta();
|
||||
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
|
||||
{
|
||||
|
|
Reference in a new issue