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:
parent
27e8b3d282
commit
5749c95ed6
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue