Beginner needs some advice how to get into programming a solver
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...
|All times are GMT -4. The time now is 21:18.|