CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

coding problem in Openfoam

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

LinkBack Thread Tools Display Modes
Old   September 19, 2012, 18:22
Default coding problem in Openfoam
Join Date: Jun 2012
Posts: 65
Rep Power: 7
conceptone is on a distinguished road
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.
conceptone is offline   Reply With Quote

Old   September 20, 2012, 12:28
Senior Member
mturcios777's Avatar
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 735
Rep Power: 21
mturcios777 will become famous soon enough
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:

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.
mturcios777 is offline   Reply With Quote

Old   September 21, 2012, 00:57
Join Date: Jun 2012
Posts: 65
Rep Power: 7
conceptone is on a distinguished road
Thanks man!
conceptone 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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11: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 07:39
OpenFOAM 1.6 CreatePatch Problem TarifaPirata OpenFOAM Bugs 1 September 10, 2009 04:35
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25

All times are GMT -4. The time now is 04:33.