mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cellReduce: use boundary values. Fixes #3255
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2016 OpenFOAM Foundation
|
Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||||
|
Copyright (C) 2024 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -71,15 +72,27 @@ Foam::fvc::cellReduce
|
|||||||
|
|
||||||
forAll(own, i)
|
forAll(own, i)
|
||||||
{
|
{
|
||||||
label celli = own[i];
|
const label celli = own[i];
|
||||||
cop(result[celli], ssf[i]);
|
cop(result[celli], ssf[i]);
|
||||||
}
|
}
|
||||||
forAll(nbr, i)
|
forAll(nbr, i)
|
||||||
{
|
{
|
||||||
label celli = nbr[i];
|
const label celli = nbr[i];
|
||||||
cop(result[celli], ssf[i]);
|
cop(result[celli], ssf[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
forAll(mesh.boundary(), patchi)
|
||||||
|
{
|
||||||
|
const auto& pFaceCells = mesh.boundary()[patchi].faceCells();
|
||||||
|
const auto& pssf = ssf.boundaryField()[patchi];
|
||||||
|
|
||||||
|
forAll(pssf, i)
|
||||||
|
{
|
||||||
|
const label celli = pFaceCells[i];
|
||||||
|
cop(result[celli], pssf[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
result.correctBoundaryConditions();
|
result.correctBoundaryConditions();
|
||||||
|
|
||||||
return tresult;
|
return tresult;
|
||||||
|
|||||||
Reference in New Issue
Block a user