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

Understanding findCell-octree

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

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

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

Code:
// 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

Old   December 6, 2009, 15:27
Default
  #2
Member
 
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 95
Rep Power: 9
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:

$FOAM_SRC/meshTools/lnInclude/octreeDataCell.C
line 51

Regards, Hannes
hannes is offline   Reply With Quote

Old   December 6, 2009, 15:30
Default
  #3
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 8
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

Reply

Tags
mesh

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


All times are GMT -4. The time now is 08:57.