|February 15, 2012, 06:16||
Explanation of "solve"-function
Join Date: May 2010
Blog Entries: 1Rep Power: 8
Hello out there in the big OpenFOAM-world.
Is there anybody who can really explain to me the solve-function?
If I look at
->solve(psiCmpt, sourceCmpt, 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!
|February 1, 2015, 01:41||
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 13Rep Power: 6
Hi Bernhard, did you find any information regarding the functionality of the solve() function? Thanks.
|February 2, 2015, 00:30||
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,910Rep Power: 28
The solve function you are looking at is a virtual function ( http://foam.sourceforge.net/docs/cpp/a02380.html ) which is redefined for each solver (diagonalSolver, GAMGSolver, ...).
If you want to solve a linear system directly in a cell or a limited number of cells, you probably want to follow a simpler way. You can, for example, use a scalarSquareMatrix and use LU decomposition on it (OF can do it).
GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats.
OpenQBMM - An open-source implementation of quadrature-based moment methods.
To obtain more accurate answers, please specify the version of OpenFOAM you are using.
Last edited by alberto; February 2, 2015 at 00:47. Reason: Corrected answer
|Thread||Thread Starter||Forum||Replies||Last Post|
|Compile problem||ivanyao||OpenFOAM Running, Solving & CFD||1||October 12, 2012 09:31|
|ParaView for OF-1.6-ext||Chrisi1984||OpenFOAM Installation||0||December 31, 2010 07:42|
|latest OpenFOAM-1.6.x from git failed to compile||phsieh2005||OpenFOAM Bugs||25||February 9, 2010 05:37|
|Error with Wmake||skabilan||OpenFOAM Installation||3||July 28, 2009 00:35|
|Axisymmetrical mesh||Rasmus Gjesing (Gjesing)||OpenFOAM Native Meshers: blockMesh||10||April 2, 2007 14:00|