CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Source codes (http://www.cfd-online.com/Forums/openfoam-solving/60018-source-codes.html)

shuo September 11, 2006 23:14

Hi guys If I wanted to unde
 
Hi guys

If I wanted to understand a source code, which one is a good(easiest) place to start given i know very little of object orientated engineering?
SHuo

badri1979 September 12, 2006 09:05

I would not recommend going th
 
I would not recommend going through OpenFOAM source as a beginner. It
uses quite a bit of advanced concepts like templating (w, w/o
inheritance) and others. It would be preferable that you start of with a
book for e.g. Barton and Nackman's Scientific C++ book that introduces
the OO concepts well. Then start of with OpenFOAM source.

-Badri

shuo September 12, 2006 17:53

What about Doxygen, isn't that
 
What about Doxygen, isn't that supposed to help understand the class structure etc?

olwi September 13, 2006 08:05

Well... Did Doxygen help you?
 
Well... Did Doxygen help you? It's propably useful for someone who already knows OO basics.

I've had some help from the book "C++: The core language" by Gregory Satir and Doug Brown. I have the first edition from 1995, but maybe there's a later edition. It deals with the basics, while deliberately avoiding concepts that would only confuse you.

Why not start having a look at icoFoam, for example, having the user guide and programmers guide nearby. From there maybe you can start exploring.

/Ola

olesen September 13, 2006 08:34

If you are looking for a very
 
If you are looking for a very general intro, you might take a look at
Bruce Eckel's Thinking in C++

/mark


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