CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   sampledPlane empty in OF-1.6 Bug? (https://www.cfd-online.com/Forums/openfoam-bugs/70985-sampledplane-empty-1-6-bug.html)

nikwin December 11, 2009 06:41

sampledPlane empty in OF-1.6 Bug?
 
I'm trying to use sampledPlane to average interpolated data over a plane. The sampledPlane is used as follows, (compiles nicely!)

plane Pl(xP, n);
sampledPlane smpPl("smpPl", mesh, Pl, word::null);
Info << "smpPl.meshCells()=" << smpPl.meshCells() << endl;

with the following outcome,

smpPl.meshCells()=0()

However, it works in OF-1.5! (sampledPlane then constr. with 5 args)
A bug?

Regards
/NW

mattijs January 7, 2010 10:26

In 1.6 you'll need to call the 'update()' function to have it (re)calculate so

smpPl.update();

before accessing meshCells.

Thanks for reporting,

Mattijs


All times are GMT -4. The time now is 22:41.