BUG: overset: fix layerRelax input.Fixes #2670
This commit is contained in:
parent
51ed7a6034
commit
df808ad3f2
@ -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
|
||||
(
|
||||
|
@ -276,7 +276,7 @@ public:
|
||||
void walkFront
|
||||
(
|
||||
const globalIndex& globalCells,
|
||||
const label layerRelax,
|
||||
const scalar layerRelax,
|
||||
const labelListList& allStencil,
|
||||
labelList& allCellTypes,
|
||||
scalarField& allWeight,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user