CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How hard is it to learn openFOAM?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree9Likes
  • 1 Post By elvis
  • 1 Post By elvis
  • 3 Post By Bernhard
  • 1 Post By marupio
  • 1 Post By djbungee
  • 1 Post By Bernhard
  • 1 Post By vkrastev

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2011, 08:05
Default How hard is it to learn openFOAM?
  #1
New Member
 
Tom
Join Date: Sep 2011
Posts: 4
Rep Power: 14
YourNameHere is on a distinguished road
Honestly, how much effort is required to get up and running with openFOAM? I see a lot of posts on forums suggesting that "you should use openFOAM". So far I have been able to download and install openFOAM on my linux OS. That in itself was a major ordeal. Now, I can rip out page after page of hand-calcs and MS Excel is my b*#@h, but I have no idea when it comes to C++ or any other programming language. As much as I'd like to dedicate the time I don't really want to invest months to learn how to manipulate numerous lines of code. All I want is to mesh my CAD model, enter some parameters and go get a cup of coffee while it solves. FYI the simulation I'm interested in is just a flame from the end of a vertical pipe (flare) and some contours of the resulting radiation. Is it reasonable to expect that I can achieve this with a small investment of time, without the expectation that the results will be in any way accurate? Base it on your first experience with openFOAM and add a factor of safety of 40% because I'm computer illiterate.
Cheers
YourNameHere is offline   Reply With Quote

Old   October 4, 2011, 08:35
Default
  #2
New Member
 
Robert Maier
Join Date: Apr 2011
Posts: 9
Rep Power: 14
robertmaier9 is on a distinguished road
It really helps to understand C++, and it is not advisable to go about using OpenFOAM without some understanding of C++ or any programming knowedge for that matter. The first the would be to try do the examples in user guide. This will kind of give you an idea of what OpenFOAM is like. If you're just going to run one case, it is easier to use a commercial software (if available). OpenFOAM simply allows you to control every aspect of the CFD process, unlike the commercial options that act much like a black box.

Depending on how computer savvy you are, you can expect it to take two weeks or several months to truly learn how to use OpenFOAM. I would say it's worth it as it'll give you a nice new set of knowledge that you can use for other things as well! If you're looking for the easy way out, maybe you should look elsewhere. But what do I know, I am still learning OpenFOAM myself (months into it).
robertmaier9 is offline   Reply With Quote


Old   October 4, 2011, 08:56
Default
  #4
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
If you want something GUI like.

You might give Discretizes a try http://www.discretizer.org/ a free gui tool!

of course there are commercial tools like

http://www.dhcae-tools.com/CastNet.htm
http://www.iconcfd.com/en/services/foampro

but the price tag for these is quite high!
YourNameHere likes this.

Last edited by elvis; October 4, 2011 at 11:15.
elvis is offline   Reply With Quote

Old   October 4, 2011, 09:01
Default
  #5
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
If you don't want to spend time on the problem, then OpenFOAM is not the way to go. Otherwise you should hire somebody to do this for you, or you could buy a license for a commercial package, which is usually easier to work at in the beginning. Only entering some parameters is not a really successfull way in CFD in general, also not in commercial tool.
djbungee, kingfaycel5 and sarodesr like this.
Bernhard is offline   Reply With Quote

Old   October 4, 2011, 11:20
Default
  #6
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21
marupio is on a distinguished road
I just checked my notes and was surprised to see it took me 4 months (full time) to learn it... but I learned it top to bottom. Also, I had minimal C++ background.

Another thing to note is that the direction OpenFOAM is taking is towards more user-friendliness. Hrv Jasak demonstrated a working OpenFOAM variation that compiled natively in Windows format. Also, there are several companies that have developed GUI front ends to OpenFOAM... and I suspect there's an effort underway to do so as free software.
juzer_700 likes this.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   October 4, 2011, 11:44
Default
  #7
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
I think the first question to answer is if OpenFoam already has the functionality you require built in or not (check http://www.openfoam.com/features/standard-solvers.php as a starting point). If so, then OpenFoam might be what you are looking for. If not you will have to spend considerably more time getting to know some internals of OpenFoam.
akidess is offline   Reply With Quote

Old   October 5, 2011, 06:01
Default Effort to learn OpenFOAM
  #8
Member
 
djbungee's Avatar
 
Ulf Bunge
Join Date: Mar 2009
Location: Wolfsburg, Germany
Posts: 34
Rep Power: 17
djbungee is on a distinguished road
Hi,

everything that has been said can be confirmed from my side.

What is also important in my eyes is that you get support in learning OpenFOAM. From the starting point that you described I would strongly suggest that you participate in OpenFOAM courses for beginners offered by many institutions.

To solve your specific problem or case you might discuss it in detail on forums or user meetings of local user groups. There you will always get a lot of help from more experienced users.

We have several students here and they always need a lot of briefing in the beginning from our experienced engineers in the CFD team. To start OpenFOAM on your own does not make sense in my opinion. Use the community-based knowledge - your question here was a good start

However, if you do neither want to get into CFD, numerical simulation nor programming and just want to simulate a single case - forget it. Use a commercial code (test license), the help of an engineering-service provider (what is your budget?) or ask someone else to do the simulation for you.

Best regards
Ulf.
juzer_700 likes this.
djbungee is offline   Reply With Quote

Old   October 5, 2011, 08:15
Default
  #9
New Member
 
Tom
Join Date: Sep 2011
Posts: 4
Rep Power: 14
YourNameHere is on a distinguished road
Thanks everyone for the responses. I was quite interested to learn that OpenFOAM was offered with commercial GUIs. What are people's experiences with dhcae and Icon? When you say they are expensive are we talking ANSYS CFD expensive, FloEFD expensive or lower. Are SGI planning a commercial release. Sorry, I know these are probably annoying questions but I'm really interested.

I am keen to learn CFD but currently I only have access to FEA, and my work outsources our flare analysis to consultants (who use spreadsheeting, not CFD!!). I think we should start to handle some of the analysis in-house, but there is no budget and there won't be until I can show them the value of CFD. Catch22 Right?

Cheers
YourNameHere is offline   Reply With Quote

Old   October 5, 2011, 09:00
Default
  #10
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
That's not a catch 22. You can just show them the brochure of any CFD license or a random presentation by Hrv Jasak to show examples. If you want to learn CFD, you should attend some courses on CFD to learn all the basics. Just running some codes will disappoint you probably. You should be aware of what you are doing to get reliable results, that is something else then producing nice figures.
lakeat likes this.
Bernhard is offline   Reply With Quote

Old   October 6, 2011, 12:00
Default
  #11
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

the Open Source CFD International Conference
http://www.opensourcecfd.com/confere...id=3&Itemid=30 and later conferences
http://www.opensourcecfd.com/confere...itt-Gehrke.pdf
has some presentations so you might get a feeling how capable OF is. Or what it has been used for by some companies.

In one of the oscic-presentations one of the volkswagen employees mentions that making OF "work" @ volkwagen was quite a big investment for vw, but they gained huge productivity for their CFD-Department (=>lots of simulations with high grade of automation).
elvis is offline   Reply With Quote

Old   October 7, 2011, 10:51
Default
  #12
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Quote:
Originally Posted by YourNameHere View Post
Now, I can rip out page after page of hand-calcs and MS Excel is my b*#@h, but I have no idea when it comes to C++ or any other programming language. As much as I'd like to dedicate the time I don't really want to invest months to learn how to manipulate numerous lines of code.
Actually this is not the real problem when dealing with OF...I mean, a basic knowledge of C++ programming is obviously desirable, but a good background in Computational and Theoretical Fluid Dynamics is far more important: rather than developing excellent programming skills, most of the effort in becoming a good OF user (not a developer, which is quite different) should be put in learning the numerics under the Finite Volume method and the behavior of the physical models standing beside the solvers.


Quote:
Originally Posted by YourNameHere View Post
All I want is to mesh my CAD model, enter some parameters and go get a cup of coffee while it solves.
Well, to be honest, and taking also into account what I've said before, if you are not interested in learning CFD basics a bit deeper than this, I don't really think that OF is the right tool for you...Maybe commercial CFD packages should be a better choice.

V.
pokeng likes this.
vkrastev is offline   Reply With Quote

Old   October 8, 2011, 03:12
Default
  #13
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by YourNameHere View Post
Honestly, how much effort is required to get up and running with openFOAM? I see a lot of posts on forums suggesting that "you should use openFOAM". So far I have been able to download and install openFOAM on my linux OS. That in itself was a major ordeal. Now, I can rip out page after page of hand-calcs and MS Excel is my b*#@h, but I have no idea when it comes to C++ or any other programming language. As much as I'd like to dedicate the time I don't really want to invest months to learn how to manipulate numerous lines of code. All I want is to mesh my CAD model, enter some parameters and go get a cup of coffee while it solves. FYI the simulation I'm interested in is just a flame from the end of a vertical pipe (flare) and some contours of the resulting radiation. Is it reasonable to expect that I can achieve this with a small investment of time, without the expectation that the results will be in any way accurate? Base it on your first experience with openFOAM and add a factor of safety of 40% because I'm computer illiterate.
Cheers
You do not talk about your background on fluid mechanics. However, based on what you write, I think OpenFOAM is not the right tool for you.

I am not so convinced a commecial code will help you much more. It will be more friendly to use, however you will still need to have an understanding of the physics, of the models, of the numerics, and also have expertise in meshing. Do not trust who tells you CFD is a click & go process, because it's only marketing.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   October 8, 2011, 11:51
Default
  #14
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Quote:
Originally Posted by alberto View Post
Do not trust who tells you CFD is a click & go process, because it's only marketing.
I agree

V.
vkrastev is offline   Reply With Quote

Old   October 8, 2011, 23:56
Default
  #15
New Member
 
Tom
Join Date: Sep 2011
Posts: 4
Rep Power: 14
YourNameHere is on a distinguished road
Quote:
You do not talk about your background on fluid mechanics.
Actually my fluid mechanics is quite good, including advanced study from an engineering and applied mathematics standpoint. Experience-wise I design fluid systems daily using hand calcs and spread-sheeting, and progressively using matlab.

Quote:
Well, to be honest, and taking also into account what I've said before, if you are not interested in learning CFD basics a bit deeper than this, I don't really think that OF is the right tool for you...Maybe commercial CFD packages should be a better choice.
While I see my original post may have been poorly stated and maybe a little antagonistic (I do wonder how many of you set up your model and go and get a coffee while it solves?), responses have been helpful.

Quote:
Actually this is not the real problem when dealing with OF...I mean, a basic knowledge of C++ programming is obviously desirable, but a good background in Computational and Theoretical Fluid Dynamics is far more important: rather than developing excellent programming skills, most of the effort in becoming a good OF user (not a developer, which is quite different) should be put in learning the numerics under the Finite Volume method and the behavior of the physical models standing beside the solvers.
I guess what I wanted to know is: can I use OpenFOAM (with an adequate knowledge of the physics) as a tool, without the depth of programming knowledge required of a developer. The answer seems to be yes.

Quote:
That's not a catch 22. You can just show them the brochure of any CFD license or a random presentation by Hrv Jasak to show examples. If you want to learn CFD, you should attend some courses on CFD to learn all the basics. Just running some codes will disappoint you probably. You should be aware of what you are doing to get reliable results, that is something else then producing nice figures.
Of course its a catch 22. They won't pay for commercial software until its functionality is established, and it can't become established until they pay for it. Its interesting that you feel that just showing them a brochure will suffice to sway their opinion, but state that just running codes will disappoint. The problem is that more proof than colourful brochures is required before they part with 65K+. Of course I care about reliable results, but first one needs to get "a" result. I realize this isn't the place for this discussion, I just don't follow your logic.

Anyway, while working through the initial OpenFOAM tutorials over the last couple of days I'm starting to gain confidence that I might be able to use it. Don't think for a moment I don't appreciate that OF is free.

Regards
YourNameHere is offline   Reply With Quote

Old   October 9, 2011, 00:32
Default
  #16
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by YourNameHere View Post
Actually my fluid mechanics is quite good, including advanced study from an engineering and applied mathematics standpoint. Experience-wise I design fluid systems daily using hand calcs and spread-sheeting, and progressively using matlab.
This makes things much easier for you. If you know fluid mechanics, learning to use (not to develop) OpenFOAM consists in understanding what is the solver that answer your needs, and learn how to set a case up.

Quote:
While I see my original post may have been poorly stated and maybe a little antagonistic (I do wonder how many of you set up your model and go and get a coffee while it solves?), responses have been helpful.
I surely drink coffee... but my cases take longer than drinking a cup of espresso ;-)

Quote:
Of course its a catch 22. They won't pay for commercial software until its functionality is established, and it can't become established until they pay for it. Its interesting that you feel that just showing them a brochure will suffice to sway their opinion, but state that just running codes will disappoint. The problem is that more proof than colourful brochures is required before they part with 65K+. Of course I care about reliable results, but first one needs to get "a" result. I realize this isn't the place for this discussion, I just don't follow your logic.
Just in case, training courses to learn how to use OpenFOAM are nowhere as expensive as the license of a commercial code, and they have a discount if you take both basic and advanced course together. You can see OpenCFD pricing here if you are interested: http://www.openfoam.com/training/schedule.php (Note: I don't work for them, but I tend to recommend them since I know people who was happy of their training, and they re-invest what they earn in extending OF).

Quote:
Anyway, while working through the initial OpenFOAM tutorials over the last couple of days I'm starting to gain confidence that I might be able to use it. Don't think for a moment I don't appreciate that OF is free.
If the company you work for is interested in using CFD more in the future, investing in OpenFOAM might be a good idea, especially if you have large cases, for clear advantages with licenses. Also, OpenFOAM is free, but it has commercial support from OpenCFD/SGI in case you need it.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   October 9, 2011, 17:05
Default
  #17
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Ok, things are much clearer now...I can say that Alberto's last post summarizes quite exactly my point of view: for introducing CFD in your company, the choice of OpenFOAM is probably a not so bad idea (and for sure it's better than buying some licenses as "black boxes"...). Of course, and as Alberto said, the main "sponsor" of the code is the free license, which becomes a serious "impact factor" once you start to use largely parallel computing features. And, for what about giving "A" result, don't worry: once you gain some basical experience whit the solvers, settings and mesh quality requirements, you will be able to get a "quick first attempt" result in most of the cases (but of course a carefully prepared OF run CAN give also accurate results ).
So, good luck for your attempt!

V.
vkrastev is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to learn OpenFoam for a new user lzgwhy OpenFOAM 5 September 26, 2019 13:34
Different flow pattern between OpenFOAM and CFX AirS OpenFOAM 0 January 12, 2010 08:08
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 10:33
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 08:14


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