wallHeatFlux: Filter out coupled patches

Resolves bug-report https://bugs.openfoam.org/view.php?id=2776
This commit is contained in:
Henry Weller
2017-11-30 19:56:39 +00:00
parent 2420963969
commit 9fb9dbe922

View File

@ -75,9 +75,12 @@ void Foam::functionObjects::wallHeatFlux::calcHeatFlux
alpha.boundaryField();
forAll(wallHeatFluxBf, patchi)
{
if (!wallHeatFluxBf[patchi].coupled())
{
wallHeatFluxBf[patchi] = alphaBf[patchi]*heBf[patchi].snGrad();
}
}
if (foundObject<volScalarField>("qr"))
{
@ -87,11 +90,14 @@ void Foam::functionObjects::wallHeatFlux::calcHeatFlux
qr.boundaryField();
forAll(wallHeatFluxBf, patchi)
{
if (!wallHeatFluxBf[patchi].coupled())
{
wallHeatFluxBf[patchi] -= radHeatFluxBf[patchi];
}
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //