Bugfix: addes support for dealing with zero-sized patch fields (immersed boundary)

This commit is contained in:
Hrvoje Jasak 2019-07-04 11:27:14 +01:00
parent 2a83c710b9
commit 7bc0c8b3d8

View file

@ -158,11 +158,19 @@ fvFieldDecomposer::decomposeField
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)
{
allFaceField[patchStart + i] = p[i];
}
}
}
// Create and map the patch field values
PtrList<fvsPatchField<Type> > patchFields(boundaryAddressing_.size());