Bugfix: remove bouCoeffs for explicit fringe
This commit is contained in:
parent
388ff4d914
commit
7d3ffd2f51
1 changed files with 8 additions and 1 deletions
|
@ -573,7 +573,7 @@ void oversetFvPatchField<Type>::correctOffDiag
|
||||||
|
|
||||||
// Record the coefficients into internal/boundary coeffs for AMG
|
// Record the coefficients into internal/boundary coeffs for AMG
|
||||||
// coarsening
|
// coarsening
|
||||||
|
|
||||||
Field<Type>& bouCoeffs = eqn.boundaryCoeffs()[this->patch().index()];
|
Field<Type>& bouCoeffs = eqn.boundaryCoeffs()[this->patch().index()];
|
||||||
|
|
||||||
bouCoeffs.setSize(fringeFaces.size());
|
bouCoeffs.setSize(fringeFaces.size());
|
||||||
|
@ -998,7 +998,11 @@ void oversetFvPatchField<Type>::manipulateMatrix
|
||||||
);
|
);
|
||||||
|
|
||||||
eqn.setValues(holeCells, holeCellsPsi);
|
eqn.setValues(holeCells, holeCellsPsi);
|
||||||
|
Field<Type>& bouCoeffs = eqn.boundaryCoeffs()[this->patch().index()];
|
||||||
|
Field<Type>& intCoeffs = eqn.internalCoeffs()[this->patch().index()];
|
||||||
|
|
||||||
|
Info<< "In manipulateMatrix: " << coupledFringe_
|
||||||
|
<< " bou: " << bouCoeffs.size() << " int: " << intCoeffs.size() << endl;
|
||||||
// If the fringe is not coupled, set values in acceptor cells and do not
|
// If the fringe is not coupled, set values in acceptor cells and do not
|
||||||
// perform overset interpolation during the solution process. Note that the
|
// perform overset interpolation during the solution process. Note that the
|
||||||
// fringeUpper/Lower coefficients are collected in correctOffDiag member
|
// fringeUpper/Lower coefficients are collected in correctOffDiag member
|
||||||
|
@ -1017,6 +1021,9 @@ void oversetFvPatchField<Type>::manipulateMatrix
|
||||||
const labelList& accCells = oversetPatch_.overset().acceptorCells();
|
const labelList& accCells = oversetPatch_.overset().acceptorCells();
|
||||||
|
|
||||||
eqn.setValues(accCells, accValues);
|
eqn.setValues(accCells, accValues);
|
||||||
|
|
||||||
|
// Kill boundary coefficients: explicit coupling
|
||||||
|
eqn.boundaryCoeffs()[this->patch().index()].setSize(0);;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue