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

Double sampling of cell label using cuttingPlane???

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Fransje
  • 1 Post By olesen

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 21, 2011, 19:15
Question Double sampling of cell label using cuttingPlane???
  #1
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 20
Fransje will become famous soon enough
Dear Foamers,

I'm using the cuttingPlane class to sample information on a plane during a simulation run. I then use the .cutCells() function to retrieve the cells cut by my plane. But in the labelList returned, every cell cut is sampled twice instead of once.. Any idea why??
My code is:
Code:
point pnt_1(1.5, 1, 2);
vector direction(1, 0, 0);
plane plane_1(pnt_1, direction);

cuttingPlane cutPlane_1(plane_1, mesh);

const labelList& cutCellsPlane_1 = cutPlane_1.cutCells();
And the output of the labelList is (with Info ):
Code:
cutCellsPlane_1   face-> 1
cutCellsPlane_1   face-> 1
cutCellsPlane_1   face-> 7
cutCellsPlane_1   face-> 7
cutCellsPlane_1   face-> 13
cutCellsPlane_1   face-> 13
etc.
Is this behaviour familiar to anybody?

Kind regards,

Francois.
Pagoda likes this.
Fransje is offline   Reply With Quote

 


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
Continuing User Defined Real Gas Model issues aeroman FLUENT 6 April 8, 2016 03:34
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 17:03.