Porting bug fix
This commit is contained in:
parent
a8bc92b12a
commit
b6b47d1017
2 changed files with 6 additions and 5 deletions
|
@ -1127,7 +1127,7 @@ void Foam::immersedBoundaryFvPatch::makeIbCellCells() const
|
|||
// Note: the algorithm is originally written with inward-facing normals
|
||||
// and subsequently changed: IB surface normals point outwards
|
||||
// HJ, 21/May/2012
|
||||
const vectorField& ibn = ibNormals();
|
||||
// const vectorField& ibn = ibNormals();
|
||||
|
||||
forAll (cellCells, cellI)
|
||||
{
|
||||
|
@ -1152,8 +1152,8 @@ void Foam::immersedBoundaryFvPatch::makeIbCellCells() const
|
|||
// Collect the cells within rM of the fitting cell
|
||||
if (r <= rM[cellI])
|
||||
{
|
||||
scalar angleLimit =
|
||||
-Foam::cos(angleFactor_()*mathematicalConstant::pi/180);
|
||||
// scalar angleLimit =
|
||||
// -Foam::cos(angleFactor_()*mathematicalConstant::pi/180);
|
||||
|
||||
vector dir = (C[curCell] - ibp[cellI]);
|
||||
dir /= mag(dir) + SMALL;
|
||||
|
|
|
@ -39,7 +39,8 @@ template<class Type>
|
|||
const Foam::debug::optimisationSwitch
|
||||
immersedBoundaryFvPatchField<Type>::nBcIter_
|
||||
(
|
||||
debug::optimisationSwitch("immersedBoundaryNBCIter", 5)
|
||||
"immersedBoundaryNBCIter",
|
||||
5
|
||||
);
|
||||
|
||||
|
||||
|
@ -251,7 +252,7 @@ immersedBoundaryFvPatchField<Type>::imposeDirichletCondition() const
|
|||
|
||||
reduce(maxError, maxOp<scalar>());
|
||||
}
|
||||
while (maxError > bcTolerance_() && counter < nBcIter_());
|
||||
while (maxError > bcTolerance_ && counter < nBcIter_);
|
||||
|
||||
if (counter == nBcIter_() && debug)
|
||||
{
|
||||
|
|
Reference in a new issue