|
[Sponsors] |
February 8, 2007, 07:17 |
Hi All,
Does anyone have exp
|
#1 |
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. |
|
February 8, 2007, 16:35 |
Last time I looked, debugging
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
February 8, 2007, 18:18 |
The doxygen-generated document
|
#3 |
Senior Member
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
On debugging a Womersley Profile UDF | david | FLUENT | 3 | August 7, 2017 03:49 |
UDF - Debugging techniques | PK | FLUENT | 2 | February 6, 2007 16:44 |
Debugging | Kali Sanjay | Phoenics | 1 | December 5, 2006 12:12 |
UDF debugging | david | FLUENT | 1 | August 11, 2005 12:43 |
Debugging 3d parabolic udf | david | FLUENT | 4 | June 13, 2005 14:20 |