CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Bugs

sampledPlane empty in OF-1.6 Bug?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 11, 2009, 07:41
Default sampledPlane empty in OF-1.6 Bug?
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 10
nikwin is on a distinguished road
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?

nikwin is offline   Reply With Quote

Old   January 7, 2010, 11:26
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 18
mattijs is on a distinguished road
In 1.6 you'll need to call the 'update()' function to have it (re)calculate so


before accessing meshCells.

Thanks for reporting,

mattijs is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
This mesh contains patches of type empty but is not 1D or 2D oric OpenFOAM Running, Solving & CFD 36 November 28, 2016 08:12
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 00:48
Serious bug in LES interface fs82 OpenFOAM Bugs 21 November 16, 2009 09:15
How to model the NR eqns in a domain with empty space Vasilis Main CFD Forum 1 April 14, 2009 04:35
Bug reports Mattijs Janssens (Mattijs) OpenFOAM 0 January 10, 2005 11:05

All times are GMT -4. The time now is 02:24.