CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

sampledPlane empty in OF-1.6 Bug?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2009, 06:41
Default sampledPlane empty in OF-1.6 Bug?
  #1
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17
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,

smpPl.meshCells()=0()

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

Regards
/NW
nikwin is offline   Reply With Quote

Old   January 7, 2010, 10:26
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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
mattijs is offline   Reply With Quote

Reply


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 Off
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 07: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 08: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 10:05


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