CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Programing language (

martapajon August 2, 2007 10:10

I would like just to know if t
I would like just to know if to use Openfoam is necessary to program in C or C++ or any other language.
I know it is a basic question, but I haven't started to learn openfoam and CFD yet, and I will need it for doing a project.
I have not any knowledge about programming, so I need to know if I will need it.
Please, I would be very grateful if somebody answers this question as soon as possible, I know it is very easy for all of you. Thank you very much

sradl August 2, 2007 10:37

Depends on the project. I u
Depends on the project.

I use OF since several month and up to the point you have to solve "tutorial-like" problems, you can do it without any knowledge of C++. Also this forum can help you with a lot of stuff. So it is worth trying OpenFOAM, you soon become addicted to it :-)

Stefan Radl

grtabor August 2, 2007 10:58

Not completely necessary - but
Not completely necessary - but helpful to have some knowledge of C at least. OpenFOAM consists of a series of computer classes that essentially provide a `high-level' CFD coding language that could be learned separately if necessary. Its useful to have some knowledge of C to understand what is going on, but not necessary to learn the details of C++ unless you are aiming to extend the libraries themselves.

I am currently writing an `idiot's guide' to OpenFOAM for students here in Exeter who are in much your position - wanting to use OpenFOAM but with no/minimal programming experience. Email me if you would like a copy (


msrinath80 August 2, 2007 11:51

Gavin, Would you mind sending
Gavin, Would you mind sending me a copy of the guide. My email address is madhavan at ualberta dot ca

7islands August 2, 2007 20:44

Hi Gavin, Could I also have a
Hi Gavin,
Could I also have a copy of the guide? I'm interested.
My address is oshima at


lr103476 August 3, 2007 03:24

Well, apparently there is much
Well, apparently there is much interest in such a guide. Could you sent me a copy as well, it would be nice for our students.

Otherwise, you could just put a link to that guide in this topic.

Regards, Frank

alberto August 3, 2007 05:13

Or attach it to the wiki ;-)
Or attach it to the wiki ;-)


grtabor August 3, 2007 05:40

aargh - inundated. I'm away fr
aargh - inundated. I'm away from the office for a few days now - I've tried to send copies to as many people as I can manage, but won't be able to now until the middle of next week.

What I will do (when I get back to the office) is to put a copy on my teaching website that people can download directly. I will alert you when I've done that. I'm also planning a revised version - the current version is not as complete as I would like it to be (although I have a horrible idea that this is one of those jobs that will never come to a complete end, if only because I'm running to keep up with the OF developers), probably by the end of August; I'll post an alert then as well.


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