mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fix mastercell calculation
This commit is contained in:
@ -134,16 +134,24 @@ void Foam::faceZone::calcCellLayers() const
|
||||
|
||||
forAll (mf, faceI)
|
||||
{
|
||||
label ownCellI = own[mf[faceI]];
|
||||
label neiCellI =
|
||||
(
|
||||
zoneMesh().mesh().isInternalFace(mf[faceI])
|
||||
? nei[mf[faceI]]
|
||||
: -1
|
||||
);
|
||||
|
||||
if (!faceFlip[faceI])
|
||||
{
|
||||
// Face is oriented correctly, no flip needed
|
||||
mc[faceI] = nei[mf[faceI]];
|
||||
sc[faceI] = own[mf[faceI]];
|
||||
mc[faceI] = neiCellI;
|
||||
sc[faceI] = ownCellI;
|
||||
}
|
||||
else
|
||||
{
|
||||
mc[faceI] = own[mf[faceI]];
|
||||
sc[faceI] = nei[mf[faceI]];
|
||||
mc[faceI] = ownCellI;
|
||||
sc[faceI] = neiCellI;
|
||||
}
|
||||
}
|
||||
//Info << "masterCells: " << mc << endl;
|
||||
|
||||
Reference in New Issue
Block a user