|
[Sponsors] |
December 11, 2009, 06:41 |
sampledPlane empty in OF-1.6 Bug?
|
#1 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
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 |
|
January 7, 2010, 10:26 |
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 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 |
|
|
|
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 |