Improvement for non-orthogonality > 90 deg

This commit is contained in:
Hrvoje Jasak 2011-03-13 23:17:19 +00:00
parent a0d143ef21
commit a0e71d79bd
4 changed files with 5 additions and 17 deletions

View file

@ -56,7 +56,9 @@ void coupledFvPatch::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, 27/Feb/2011
cv = pos(n & patchDeltas)*(n - patchDeltas*patchDeltaCoeffs);
}

View file

@ -86,7 +86,7 @@ void Foam::overlapGgiFvPatch::makeCorrVecs(vectorField& cv) const
{
// Non-orthogonality correction on a ggi interface
// MB, 7/April/2009
// Calculate correction vectors on coupled patches
const scalarField& patchDeltaCoeffs = deltaCoeffs();

View file

@ -42,13 +42,6 @@ namespace Foam
void Foam::cohesiveFvPatch::makeCorrVecs(vectorField& cv) const
{
// Correction vector
// vectorField d = delta();
// vectorField n = nf();
// cv = n - d/(n & d);
// Old version: no non-orthogonal correction on the wall
// Testing. HJ, 9/Apr/2009
cv = vector::zero;
}

View file

@ -115,7 +115,7 @@ tmp<vectorField> fvPatch::Cn() const
const unallocLabelList& faceCells = this->faceCells();
// get reference to global cell centres
// Get reference to global cell centres
const vectorField& gcc = boundaryMesh().mesh().cellCentres();
forAll (faceCells, faceI)
@ -165,13 +165,6 @@ void fvPatch::makeDeltaCoeffs(scalarField& dc) const
void fvPatch::makeCorrVecs(vectorField& cv) const
{
// Correction vector
// vectorField d = delta();
// vectorField n = nf();
// cv = n - d/(n & d);
// Old version: no non-orthogonal correction on the wall
// Testing. HJ, 9/Apr/2009
cv = vector::zero;
}