CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to extract Ax=B from solver for debugging (http://www.cfd-online.com/Forums/openfoam/96667-how-extract-ax-b-solver-debugging.html)

sontac January 29, 2012 02:04

How to extract Ax=B from solver for debugging
 
I'm current viewing through the source code for icoFOAM. However I'm really interest in the actually matrix A and B in the Ax=B. I'm planning on tweaking the solver a litle and want to see the actual change on the A and B matrix for debugging purpose. I'm a little stuck as writing the A, the x, the B matrix out to a ascii file for analysis..

Any help is appreciated!!!

vatavuk January 29, 2012 08:15

Hi sontac,
You can find some information in this page of the wiki:
http://openfoamwiki.net/index.php/Op...x_coefficients

I hope it helps,
Paulo

elvis January 30, 2012 04:48

Hi,
maybe pythonflu is a valuable tool for you

see this post why it might help you
http://www.cfd-online.com/Forums/ope...tml#post302921

santiagomarquezd January 30, 2012 09:32

Hi Sontac, I think the perfect tool for you is gdbOF

http://openfoamwiki.net/index.php/Contrib_gdbOF

it is a tool attachable to gdb that helps you to extract FOAM data from memory in a transparent way, in your case you have to use the gdbOF tool

pfvmatrixfull

which dumps the matrix to a file

Enjoy it!


All times are GMT -4. The time now is 21:53.