|
[Sponsors] |
September 19, 2012, 19:22 |
coding problem in Openfoam
|
#1 |
Member
Join Date: Jun 2012
Posts: 65
Rep Power: 14 |
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. |
|
September 20, 2012, 13:28 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 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. |
|
September 21, 2012, 01:57 |
|
#3 |
Member
Join Date: Jun 2012
Posts: 65
Rep Power: 14 |
Thanks man!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
problem with sampling Utility in openFOAM 1.6 | carmir | OpenFOAM Post-Processing | 10 | February 26, 2014 03:00 |
binutils-devel problem with Openfoam | abminternet | OpenFOAM | 1 | June 18, 2011 08:39 |
OpenFOAM 1.6 CreatePatch Problem | TarifaPirata | OpenFOAM Bugs | 1 | September 10, 2009 05:35 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |