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

sampledPlane empty in OF-1.6 Bug?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 11, 2009, 07: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: 8
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, 11:26
Default
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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

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 35 March 8, 2014 19:37
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:16.