CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

How to extract Ax=B from solver for debugging

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2012, 02:04
Default How to extract Ax=B from solver for debugging
  #1
New Member
 
Join Date: Jan 2012
Posts: 4
Rep Power: 5
sontac is on a distinguished road
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!!!
sontac is offline   Reply With Quote

Old   January 29, 2012, 08:15
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 110
Rep Power: 8
vatavuk is on a distinguished road
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
vatavuk is offline   Reply With Quote

Old   January 30, 2012, 04:48
Default
  #3
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,
maybe pythonflu is a valuable tool for you

see this post why it might help you
Can someone tell me more about vulashaka
elvis is offline   Reply With Quote

Old   January 30, 2012, 09:32
Default
  #4
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
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!
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A New Solver for Supersonic Combustion nakul OpenFOAM 6 March 30, 2014 03:00
A New Solver for Supersonic Combustion nakul OpenFOAM Announcements from Other Sources 18 February 19, 2013 08:48
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08
Error during Solver cfd guy CFX 4 May 8, 2001 06:04


All times are GMT -4. The time now is 12:06.