|August 28, 2013, 10:43||
Beginner needs some advice how to get into programming a solver
Join Date: Aug 2013
Posts: 45Rep Power: 4
I'm new to OpenFOAM and really need some advice. My job is to write a solver which is going to be about melting/solidification and a simple laminar flow of the fluid phase (which actually has been done by some persons here in the forum so I have some code to look at which is close to what I want to accomplish)...
My problem now is to get into the programming side of OpenFoam. In order to introduce myself I worked through the usual tutorials and e.g. created some custom geometry with in-/outlets and gave interFoam some work to do with it. So the general way of how to set up a project is clear to me. When diving into the code behind I'm facing huge problems though and I hope that someone here can help me with that...
1) Lack of comments / descriptions
Do things like solvers really have no real description? It seems like the source files don't give any more information than the wiki / user guide does. Let's have a look at interFoam's description:
2.) Understanding what the code does
Probably my worst problem right now. When e.g. looking at icoFoam there are things I'd like to know what exactly they do. There for example is:
HERE. I just can't figure out how to get to the actual implementation of the solve method. It's the same for e.g. this:
Is there some way to make use of some kind of IDE like Eclipse? I did use Qt for a while and enjoyed not only having things like proposals for what I want might to write right now in terms of e.g. class names or methods a class offers but one also can simply point at e.g. a function and jump to the position where it's defined...
|Thread||Thread Starter||Forum||Replies||Last Post|
|smoothSolver diverges - solution in using PBiCG solver?||makaveli_lcf||OpenFOAM Running, Solving & CFD||3||September 11, 2013 12:44|
|Looking for a solver (Mach 0.4, Turbulent, Heat Transfer, Second Order)||fredo490||OpenFOAM Running, Solving & CFD||3||March 27, 2013 05:07|
|Getting too many iterations by velocity solving (aborting). Changing U - Solver?||suitup||OpenFOAM Running, Solving & CFD||0||January 20, 2010 08:45|
|Advice needed in writing my own solver...||E. Turner||Main CFD Forum||1||September 2, 2006 06:25|
|Convergence with coupled implicit solver||Henrik Ström||FLUENT||1||October 29, 2005 03:57|