CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How to write the Coefficient Matrix in a file

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

LinkBack Thread Tools Display Modes
Old   October 8, 2014, 12:09
Default How to write the Coefficient Matrix in a file
New Member
Join Date: Sep 2014
Posts: 15
Rep Power: 3
And901 is on a distinguished road
Hi Foamers,

i'm pretty new to OpenFoam and i need to extract the Coefficient Matrix from icoFoam and write it in a file.
If i have understood how icoFoam works the Coefficient Matrix is UEqn.
So is there a command to write it in a file?



And901 is offline   Reply With Quote

Old   October 9, 2014, 10:28
Default How to write the Coefficient Matrix in a file
Manjunath Reddy
Join Date: Jun 2013
Posts: 38
Rep Power: 4
manju819 is on a distinguished road
Hiiiii Andrea,
You can print coefficient matrix on the terminal while solving the U equation using Info<< UEqn.upper() <<endl; , Info<< UEqn.diag() << endl;, Info<< UEqn.lower() << endl;

You can get more information on lower and diag and upper triangular matrices in here

manju819 is offline   Reply With Quote


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
OpenFOAM Installation for navalFoam sachinlb OpenFOAM Installation 21 June 23, 2014 08:07
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
2.0.x on Mac OSX niklas OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 74 March 28, 2012 16:46
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16

All times are GMT -4. The time now is 18:45.