CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Understanding findCell-octree (https://www.cfd-online.com/Forums/openfoam/70793-understanding-findcell-octree.html)

andrewryan December 6, 2009 09:37

Understanding findCell-octree
 
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 :confused:

Any help will be appreciated.

[1] Is in $FOAM_SRC/applications/test/findCell-octree

hannes December 6, 2009 14:27

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

andrewryan December 6, 2009 14:30

Ok seems that I know c++ still not good enough, so shapes is the object name and not a method. Thank you!


All times are GMT -4. The time now is 15:23.