Bugfix when writing overset region index
The values at the coupled boundaries haven't been properly uninitialized and the coupled patches have been skipped from assignement to patch internal field.
This commit is contained in:
parent
02bc8b5f69
commit
c7cd6b09fd
1 changed files with 12 additions and 6 deletions
|
@ -18,7 +18,8 @@
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimless
|
dimless,
|
||||||
|
"zeroGradient"
|
||||||
);
|
);
|
||||||
scalarField& regionIndexIn = regionIndex.internalField();
|
scalarField& regionIndexIn = regionIndex.internalField();
|
||||||
|
|
||||||
|
@ -32,13 +33,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update boundary values
|
// Update boundary values, making sure that we skip the overset patch
|
||||||
forAll (regionIndex.boundaryField(), patchI)
|
volScalarField::GeometricBoundaryField& regionIndexb =
|
||||||
|
regionIndex.boundaryField();
|
||||||
|
|
||||||
|
forAll(regionIndexb, patchI)
|
||||||
{
|
{
|
||||||
if (!regionIndex.boundaryField()[patchI].coupled())
|
// Get the patch field
|
||||||
|
fvPatchScalarField& ripf = regionIndexb[patchI];
|
||||||
|
|
||||||
|
if (!isA<oversetFvPatchScalarField>(ripf))
|
||||||
{
|
{
|
||||||
regionIndex.boundaryField()[patchI] =
|
ripf = ripf.patchInternalField();
|
||||||
regionIndex.boundaryField()[patchI].patchInternalField();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue