CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Understanding findCell-octree

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

LinkBack Thread Tools Display Modes
Old   December 6, 2009, 10:37
Default Understanding findCell-octree
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 10
andrewryan is on a distinguished road
Sponsored Links
Dear all

I'm trying to understand how findCell-octree.C [1] works. I'm stuck on line 72/73, which says:

// Wrap indices and mesh information into helper object
octreeDataCell shapes(mesh);
I cannot figure out which method gets called here and what it does.

First of all I could not find the concerning method, shapes. Then I also could not figure out what a shape actually is, according to the users guide it's actually a heaxahedron, wedge, prism, etc But I could not find a concerning class/method in the source documentation

Any help will be appreciated.

[1] Is in $FOAM_SRC/applications/test/findCell-octree
andrewryan is offline   Reply With Quote
Sponsored Links

Old   December 6, 2009, 15:27
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 96
Rep Power: 11
hannes is on a distinguished road
Hello Andrew,

this line of code causes the creation of an object named "shapes" of class "octreeDataCell". Only the constructor of octreeDataCell is called. The code is here:

line 51

Regards, Hannes
hannes is offline   Reply With Quote

Old   December 6, 2009, 15:30
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 10
andrewryan is on a distinguished road
Ok seems that I know c++ still not good enough, so shapes is the object name and not a method. Thank you!
andrewryan 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
Understanding of channelOodles and oodles solver fs82 OpenFOAM 1 September 23, 2009 10:36
Octree Grid Refinement Tristan CFX 3 September 26, 2008 05:33
Octree Vs Advancing Front tetra meshing techniques Sam CFX 4 February 18, 2008 09:54
AMR or Octree loic bretonnet Main CFD Forum 1 November 16, 2006 01:00
Octree Approach - ICEM Fred CFX 0 June 15, 2005 02:39

Sponsored Links

All times are GMT -4. The time now is 10:14.