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

OpenFoam vs Functions vs Maths Debate

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By akidess
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2013, 15:12
Default OpenFoam vs Functions vs Maths Debate
  #1
hhh
Senior Member
 
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 15
hhh is on a distinguished road
Hai friends,

Currently I get some knowledge in Open foam not too much.But I have little debate myself, open foam is a kind of tool that's all.If you want to become a open foam export,I think I have to concentrate on mathematical and functions(code) is its correct? Because for me its very difficult to understand the function (especially) in code (I am not computer science guy).

Is there any easy way in Open foam?
__________________
kunar
hhh is offline   Reply With Quote

Old   July 21, 2013, 16:53
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kumar,

It all depends on what you need to do:
  • Some kinds of simulations in OpenFOAM only need you to understand how to use the meshers and solvers, without having to look at the source code at all.
  • Other situations you can rely on swak4Foam and pyFoam, which do not require you to learn C++.
  • Then there is pythonFlu, which provides (full?) access to OpenFOAM's source code, but in Python, which is considered to be easier.
  • But in some cases, there is no escaping: learning to code in C++ is the only way.


In any case, it boils down to two premises:
  1. A problem is only as big as you let it be. You can always divide a problem into several tiny problems. And even those can be further divided.
  2. Last but not least, you have to ask yourself: Do you really want to use OpenFOAM? Do you really want do this work?
    Simply saying "I have to do this work" is not enough. There are always other solutions/options, so the real question is: What do you really want for yourself? What do you really want to do?
    OpenFOAM can help you unleash awesome simulations, but it all depends on what you want to do with it.


Because the only easy way to OpenFOAM I can really imagine is... to become a salesman?! Or in better words, become a person that helps to manage the company, to establish contacts with people and companies for giving your company more work... where the company you work at, they use OpenFOAM. So there you go, that's the easiest way to use OpenFOAM!

Best regards,
Bruno
hhh likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 22, 2013, 09:36
Default
  #3
hhh
Senior Member
 
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 15
hhh is on a distinguished road
Thanks Bruno for your brief explanation,

I 100% agree with you.Why I am asking this question myself is,the person have good stuff on maths and physics its really worth for CFD I think so. OK, let comes to my point,


1) Kindly let me know the difference B/W python, python flu and also pyFoam I thought all are same.Is it correct? (please be correct in case I am wrong) I don't Python, If I learn Python how its useful for OF.

2) How they are related (ie.usage)to open foam?
__________________
kunar
hhh is offline   Reply With Quote

Old   July 22, 2013, 09:48
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Python - A popular scripting language
pyFoam - An addon for OpenFOAM providing a range of useful tools to make your life easier
pythonFlu - A framework enabling the use of OpenFOAM functions within Python.

Also read: http://www.cfd-online.com/Forums/ope...ey-relate.html
hhh likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   July 22, 2013, 09:49
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: If you plan to use OpenFOAM, then you must know CFD properly.

As for the other stuff:
  • Python is a programming language. It's considered to be easier and more practical than C++ and you can use it in ParaView and Salome as well.
  • pythonFlu is basically a python wrapper that interconnects with OpenFOAM directly. In the sense that you can create OpenFOAM solvers directly in Python, without touching C++ code.
  • pyFoam is gives you the ability to control OpenFOAM, view residuals and so on. It's sort-of a command line assistant application, although I believe it's much more powerful than just that.
hhh likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 22, 2013, 16:14
Default
  #6
hhh
Senior Member
 
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 15
hhh is on a distinguished road
Thanks for your quick reply and kind information Anton and Bruno.

Have a nice Day
__________________
kunar
hhh is offline   Reply With Quote

Reply


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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
ESI-OpenCFD Releases OpenFOAM v2.2.0 opencfd OpenFOAM Announcements from ESI-OpenCFD 13 March 30, 2013 17:52
[Gmsh] gmsh 2.6.0 conversion to OpenFoam 160 rosswin OpenFOAM Meshing & Mesh Conversion 0 March 5, 2013 08:34
Comparison of axisymmetric case, Starccm+ and OpenFOAM linnemann OpenFOAM Running, Solving & CFD 12 June 16, 2011 06:43
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 06:33


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