CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Explanation of "solve"-function (http://www.cfd-online.com/Forums/openfoam-programming-development/97340-explanation-solve-function.html)

Linse February 15, 2012 06:16

Explanation of "solve"-function
 
Hello out there in the big OpenFOAM-world.

Is there anybody who can really explain to me the solve-function?
If I look at
Code:

->solve(psiCmpt, sourceCmpt, cmpt);
within finiteVolume/lnInclude/fvMatrixSolve.C at line 148 it seems to me there the real solver is pointed to, which uses the parameters psiCmpt, sourceCmpt and cmpt.
- But where is that solver really defined?
- Where can i find the actual definition of the function "solve()"?

And if there is somebody really knowing about that solve-function:
- Is there a way to call that solve() for a specific cell only?

I am kind of lost with the C++ stuff or at least inside the structure of OpenFOAM, so any help is welcome!


All times are GMT -4. The time now is 00:13.