BUG: overset: fix layerRelax input.Fixes #2670

This commit is contained in:
mattijs 2023-01-04 17:13:59 +00:00
parent 51ed7a6034
commit df808ad3f2
3 changed files with 7 additions and 5 deletions

View File

@ -411,7 +411,7 @@ void Foam::cellCellStencil::setUpFrontOnOversetPatch
void Foam::cellCellStencil::walkFront
(
const globalIndex& globalCells,
const label layerRelax,
const scalar layerRelax,
const labelListList& allStencil,
labelList& allCellTypes,
scalarField& allWeight,
@ -611,9 +611,11 @@ void Foam::cellCellStencil::walkFront
allWeightWork[nei] = fraction[facei];
allCellTypesWork[nei] = INTERPOLATED;
const label donorId = compactStencil[nei][0];
const label donorId =
compactStencil[nei][0];
volRatio[nei] = V[nei]/compactCellVol[donorId];
volRatio[nei] =
V[nei]/compactCellVol[donorId];
seedCell
(

View File

@ -276,7 +276,7 @@ public:
void walkFront
(
const globalIndex& globalCells,
const label layerRelax,
const scalar layerRelax,
const labelListList& allStencil,
labelList& allCellTypes,
scalarField& allWeight,

View File

@ -1798,7 +1798,7 @@ Foam::cellCellStencils::inverseDistance::~inverseDistance()
bool Foam::cellCellStencils::inverseDistance::update()
{
label layerRelax(dict_.getOrDefault("layerRelax", 1));
scalar layerRelax(dict_.getOrDefault("layerRelax", 1.0));
scalar tol = dict_.getOrDefault("tolerance", 1e-10);
smallVec_ = mesh_.bounds().span()*tol;