BUG: regression in fluxSummary cellZoneAndDirection (fixes #1736)

- related to change c3571b7357 (does not affect 1912 or older).

  Remnant check for data() should have used valid() method instead.

TUT: add fluxSummary cellZoneAndDirection to angledDuct/implicit
This commit is contained in:
Mark Olesen
2020-06-19 12:15:11 +02:00
parent 2dcbc09b3e
commit 7065593b3f
3 changed files with 47 additions and 8 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -50,6 +50,7 @@ runTimeModifiable true;
functions
{
#include "sampling"
#include "fluxSummary"
}

View File

@ -0,0 +1,24 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
fluxSummary
{
type fluxSummary;
libs (fieldFunctionObjects);
scaleFactor 1.205;
write yes;
log yes;
mode cellZoneAndDirection;
cellZoneAndDirection
(
(porosity (1 1 0))
);
}
// ************************************************************************* //