CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   OpenFoam code (http://www.cfd-online.com/Forums/openfoam-programming-development/82094-openfoam-code.html)

McCarra November 16, 2010 15:32

OpenFoam code
 
Hello

I'm trying to understand how OpenFoam code works. Where can I start? Are there some tutorials or bibliography to have a look at?

Thanks

Fransje November 19, 2010 08:16

Hi there!

Well, first of all, I'm going to wish you good luck with your new endeavor! It will require patience and a substantial time investment, but it's worth it.

Then:
  • First make sure your C++ programming knowledge is good/excellent, otherwise you will be wasting your time. If you do not have a decent C++ understanding/programming experience, it would be a very wise time investment to first sit down, and take the time to learn, understand, and be able to apply the primary C++ concepts, from simple object-oriented programming, to inheritance, templates and polymorphism.
  • Then read the User and Programming manuals, and try-out various OpenFOAM tutorials to see what they do.
  • Search the internet for tutorials. The tutorials from Chalmers are very good. Using google and typing:
    Code:

    chalmers tutorial openfoam
    should give you somewhere to start. The programming tutorial shows you how to implement your own solver and boundary conditions. This will also help you to understand how OpenFOAM works.
  • Use Doxygen! The most recent doxgen documentation can be found on the OpenFOAM website under C++ Source Guide.
    The 1.6.x documentation (which I found to be easier to read with my browser) can be found using this link:
    http://foam.sourceforge.net/doc/Doxygen/html/
Well, this should give you a head-start and keep you busy for some time I think!

Good luck!

Kind regards,

Francois.


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