CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Erroneous result for min / max of volScalarField (http://www.cfd-online.com/Forums/openfoam-bugs/78937-erroneous-result-min-max-volscalarfield.html)

akidess August 6, 2010 08:16

Erroneous result for min / max of volScalarField
 
Hello,

does anybody have an idea why min() and max() would be returning values larger 1 and lower 0 for a volScalarField that only contains 0 & 1 values?

- Anton

CODE:
Code:

Info << "LF (MAX / MIN): " << max(lf) << "  " << min(lf) << endl;
Info << lf << endl;

OUTPUT:
Code:

LF (MAX / MIN): max(lf) [0 0 0 0 0 0 0] 2.21429  min(lf) [0 0 0 0 0 0 0] -15.6429
dimensions      [0 0 0 0 0 0 0];

internalField  uniform 1;

boundaryField
{
    bottom
    {
        type            zeroGradient;
    }
    top
    {
        type            zeroGradient;
    }
    left
    {
        type            zeroGradient;
    }
    right
    {
        type            zeroGradient;
    }
}



All times are GMT -4. The time now is 15:38.