mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -82,7 +82,7 @@ int main(int argc, char *argv[])
|
||||
if (isA<wallFvPatch>(mesh.boundary()[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
|
||||
<< " convective: " << convFlux << endl
|
||||
@ -135,7 +135,7 @@ int main(int argc, char *argv[])
|
||||
forAll(totalWallHeatFlux.boundaryField(), patchi)
|
||||
{
|
||||
totalWallHeatFlux.boundaryField()[patchi] =
|
||||
patchHeatFlux[patchi] + patchRadHeatFlux[patchi];
|
||||
patchHeatFlux[patchi] - patchRadHeatFlux[patchi];
|
||||
}
|
||||
|
||||
totalWallHeatFlux.write();
|
||||
|
||||
Reference in New Issue
Block a user