CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   coding problem in Openfoam (https://www.cfd-online.com/Forums/openfoam/107187-coding-problem-openfoam.html)

conceptone September 19, 2012 18:22

coding problem in Openfoam
 
Hi everyone, right now I am reading the code in openfoam. I usually read this definition like this: const scalar time = this->owner().solution().trackTime();
so what does the owner mean? I mean is it a class or a file name? And I never found the definition for "TrackData". Any help? Thanks.

mturcios777 September 20, 2012 12:28

owner is a member function for the current dynamically allocated object. What class are you exploring? If you want better understanding of the inheritance that happens in OF, use the doxygen documentation:

http://www.openfoam.org/docs/cpp/

You can search for the member owner and see what the function is all about. Looks like the return type has a member named solution which has a member named trackTime.

Morpheus: This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland and I show you how deep the rabbit-hole goes.

conceptone September 21, 2012 00:57

Thanks man!


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