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

Debugging OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 8, 2007, 08:17
Default Hi All, Does anyone have exp
  #1
susana
Guest
 
Posts: n/a
Hi All,
Does anyone have experience debugging in the OpenFOAM environment? I need to get down to solver level, to understand the framework as well as to maybe write my own kind of solver. Any tips on what tools to use etc.

Thanks in advance,
Susan.
  Reply With Quote

Old   February 8, 2007, 17:35
Default Last time I looked, debugging
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Last time I looked, debugging C++-code that relied on a lot of templates with a source debugger like gdb was a rather painful experience (but thats some time ago, maybe things have gotten better). Foam relies on templates, so I never bothered to even try.

If you want to understand the structure of OF I wouldn't suggest a debugger, because you'll only get "an ants view" not "the big picture".

I'd suggest you get acquainted with the chapters 4 and 6 of the User Guide, the Programmers Guide, possibly http://www.mfix.org/mwiki/index.php/...d_Capabilities. Then single out an application that is similar to what you'll want to do and with all the stuff mentioned above in the left hand and the right hand on the sources and the Doxygen try to find out how what is done in there.

(if somebody knows an easier way, please let me know, I'm still struggeling)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 8, 2007, 19:18
Default The doxygen-generated document
  #3
Senior Member
 
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 8
grtabor is on a distinguished road
The doxygen-generated documentation is quite valuable for certain classes; not, unfortunately the templated ones, but you can get something of a feeling of the interrelation between the others by browsing through it. It could probably be improved further by sensible addition of comments to the source code; but that would require a major investment of time and effort by somebody (probably Henry + co) which is not likely to happen.

Gavin
grtabor is offline   Reply With Quote

Reply

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
On debugging a Womersley Profile UDF david FLUENT 1 December 2, 2011 05:56
UDF - Debugging techniques PK FLUENT 2 February 6, 2007 17:44
Debugging Kali Sanjay Phoenics 1 December 5, 2006 13:12
UDF debugging david FLUENT 1 August 11, 2005 12:43
Debugging 3d parabolic udf david FLUENT 4 June 13, 2005 14:20


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