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

@ -76,7 +76,10 @@ void Foam::functionObjects::wallHeatFlux::calcHeatFlux
forAll(wallHeatFluxBf, patchi)
{
wallHeatFluxBf[patchi] = alphaBf[patchi]*heBf[patchi].snGrad();
if (!wallHeatFluxBf[patchi].coupled())
{
wallHeatFluxBf[patchi] = alphaBf[patchi]*heBf[patchi].snGrad();
}
}
if (foundObject<volScalarField>("qr"))
@ -88,7 +91,10 @@ void Foam::functionObjects::wallHeatFlux::calcHeatFlux
forAll(wallHeatFluxBf, patchi)
{
wallHeatFluxBf[patchi] -= radHeatFluxBf[patchi];
if (!wallHeatFluxBf[patchi].coupled())
{
wallHeatFluxBf[patchi] -= radHeatFluxBf[patchi];
}
}
}
}