Bugfix: addes support for dealing with zero-sized patch fields (immersed boundary)
This commit is contained in:
parent
2a83c710b9
commit
7bc0c8b3d8
1 changed files with 10 additions and 2 deletions
|
@ -158,11 +158,19 @@ fvFieldDecomposer::decomposeField
|
||||||
|
|
||||||
const label patchStart = field.mesh().boundaryMesh()[patchI].start();
|
const label patchStart = field.mesh().boundaryMesh()[patchI].start();
|
||||||
|
|
||||||
|
// Bugfix
|
||||||
|
// Special patches soch as overset and immersed boundary have
|
||||||
|
// their faces and values in a separate list; the list of
|
||||||
|
// values does not correspond to faces. Skip such patches.
|
||||||
|
// HJ, 4/Jul/2019
|
||||||
|
if (p.size() == field.mesh().boundaryMesh()[patchI].size())
|
||||||
|
{
|
||||||
forAll (p, i)
|
forAll (p, i)
|
||||||
{
|
{
|
||||||
allFaceField[patchStart + i] = p[i];
|
allFaceField[patchStart + i] = p[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Create and map the patch field values
|
// Create and map the patch field values
|
||||||
PtrList<fvsPatchField<Type> > patchFields(boundaryAddressing_.size());
|
PtrList<fvsPatchField<Type> > patchFields(boundaryAddressing_.size());
|
||||||
|
|
Reference in a new issue