wallHeatFlux: Corrected sign of radiative heat-flux

Corrects feature-request http://www.openfoam.org/mantisbt/view.php?id=1856
Patch provided by Juho Peltola
This commit is contained in:
Henry Weller
2015-12-02 11:47:11 +00:00
parent 2c055f2b39
commit ac2a275a75

View File

@ -82,7 +82,7 @@ int main(int argc, char *argv[])
if (isA<wallFvPatch>(mesh.boundary()[patchi])) if (isA<wallFvPatch>(mesh.boundary()[patchi]))
{ {
scalar convFlux = gSum(magSf[patchi]*patchHeatFlux[patchi]); scalar convFlux = gSum(magSf[patchi]*patchHeatFlux[patchi]);
scalar radFlux = gSum(magSf[patchi]*patchRadHeatFlux[patchi]); scalar radFlux = -gSum(magSf[patchi]*patchRadHeatFlux[patchi]);
Info<< mesh.boundary()[patchi].name() << endl Info<< mesh.boundary()[patchi].name() << endl
<< " convective: " << convFlux << endl << " convective: " << convFlux << endl
@ -135,7 +135,7 @@ int main(int argc, char *argv[])
forAll(totalWallHeatFlux.boundaryField(), patchi) forAll(totalWallHeatFlux.boundaryField(), patchi)
{ {
totalWallHeatFlux.boundaryField()[patchi] = totalWallHeatFlux.boundaryField()[patchi] =
patchHeatFlux[patchi] + patchRadHeatFlux[patchi]; patchHeatFlux[patchi] - patchRadHeatFlux[patchi];
} }
totalWallHeatFlux.write(); totalWallHeatFlux.write();