CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   OpenFoam code (

McCarra November 16, 2010 15:32

OpenFoam code

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


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.

  • 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:

    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:
Well, this should give you a head-start and keep you busy for some time I think!

Good luck!

Kind regards,


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