CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   sampledPlane empty in OF-1.6 Bug? (

nikwin December 11, 2009 07: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,


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


mattijs January 7, 2010 11:26

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


before accessing meshCells.

Thanks for reporting,


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